-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-incr-compArea: Incremental compilationArea: Incremental compilationT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
In several places, we use #[stable_hasher(project(name))]
to skip hashing the Span
of an Ident
. For example:
rust/compiler/rustc_hir/src/hir.rs
Lines 205 to 209 in 404c847
#[derive(Debug, HashStable_Generic)] | |
pub struct PathSegment<'hir> { | |
/// The identifier portion of this path segment. | |
#[stable_hasher(project(name))] | |
pub ident: Ident, |
It's not obvious why this is correct. Assuming that this isn't causing any issues with incr comp invalidation, then we should add comments explaining why this is the right thing to do.
Metadata
Metadata
Assignees
Labels
A-incr-compArea: Incremental compilationArea: Incremental compilationT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.