We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
was_remapped
1 parent 3b1641e commit 9e25221Copy full SHA for 9e25221
compiler/rustc_span/src/lib.rs
@@ -313,7 +313,7 @@ impl Hash for RealFileName {
313
// remapped path if that exists. This is because remapped paths to
314
// sysroot crates (/rust/$hash or /rust/$version) remain stable even
315
// if the corresponding local path changes.
316
- if !self.scopes.is_all() {
+ if self.was_remapped() {
317
self.local.hash(state);
318
}
319
self.maybe_remapped.hash(state);
@@ -390,6 +390,7 @@ impl RealFileName {
390
391
392
/// Returns whenever the filename was remapped.
393
+ #[inline]
394
pub(crate) fn was_remapped(&self) -> bool {
395
!self.scopes.is_empty()
396
0 commit comments