Skip to content

Commit 7227bfe

Browse files
committed
Prefer using was_fully_remapped helper function
1 parent 230e91d commit 7227bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_span/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl Hash for RealFileName {
313313
// remapped path if that exists. This is because remapped paths to
314314
// sysroot crates (/rust/$hash or /rust/$version) remain stable even
315315
// if the corresponding local path changes.
316-
if !self.scopes.is_all() {
316+
if !self.was_fully_remapped() {
317317
self.local.hash(state);
318318
}
319319
self.maybe_remapped.hash(state);

0 commit comments

Comments
 (0)