1
Fork 0

Use Span::eq_ctxt method instead of .ctxt() == .ctxt()

This commit is contained in:
Michael Goulet 2022-06-19 16:27:29 -07:00
parent 2c3bb42ebd
commit 52c9906c4b
7 changed files with 12 additions and 9 deletions

View file

@ -1875,7 +1875,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
let names = rib
.bindings
.iter()
.filter(|(id, _)| id.span.ctxt() == label.span.ctxt())
.filter(|(id, _)| id.span.eq_ctxt(label.span))
.map(|(id, _)| id.name)
.collect::<Vec<Symbol>>();