rustc_span: Optimize syntax context comparisons
Including comparisons with root context
This commit is contained in:
parent
d2012259ca
commit
e10a05dff3
4 changed files with 4 additions and 4 deletions
|
|
@ -67,7 +67,7 @@ pub(super) fn check<'tcx>(
|
|||
}
|
||||
}
|
||||
|
||||
if unwrap_arg.span.ctxt() != map_span.ctxt() {
|
||||
if !unwrap_arg.span.eq_ctxt(map_span) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue