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 ac5cf76 commit 07c729eCopy full SHA for 07c729e
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);
@@ -382,6 +382,7 @@ impl RealFileName {
382
383
384
/// Returns whenever the filename was remapped.
385
+ #[inline]
386
pub(crate) fn was_remapped(&self) -> bool {
387
!self.scopes.is_empty()
388
0 commit comments