Skip to content

Commit 8d31176

Browse files
committed
Ignore parents when comparing raw identifier spans.
1 parent 5ae59bb commit 8d31176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/late.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2908,7 +2908,7 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
29082908
.psess
29092909
.raw_identifier_spans
29102910
.iter()
2911-
.any(|span| span == param.span());
2911+
.any(|span| span == param.span().with_parent(None));
29122912

29132913
self.r
29142914
.dcx()

0 commit comments

Comments
 (0)