1
Fork 0

rename a method

This commit is contained in:
Takayuki Maeda 2022-07-11 16:51:19 +09:00
parent 12d11e9a35
commit 018155c3a2
9 changed files with 10 additions and 10 deletions

View file

@ -432,7 +432,7 @@ impl<'p, 'tcx> MatchVisitor<'_, 'p, 'tcx> {
"`let` bindings require an \"irrefutable pattern\", like a `struct` or \
an `enum` with only one variant",
);
if self.tcx.sess.source_map().is_accessible_span(span) {
if self.tcx.sess.source_map().is_span_accessible(span) {
let semi_span = span.shrink_to_hi().with_lo(span.hi() - BytePos(1));
let start_span = span.shrink_to_lo();
let end_span = semi_span.shrink_to_lo();