]> git.lizzy.rs Git - rust.git/commit
Hash `Ident` spans in all HIR structures
authorAaron Hill <aa1ronham@gmail.com>
Mon, 3 Jan 2022 20:50:37 +0000 (15:50 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Mon, 3 Jan 2022 20:52:38 +0000 (15:52 -0500)
commit467b72607dcb1621ef960dd2179c876b0993b988
tree88ee5c48bdb65efad4e338d5391a2e64a1edfb92
parentddabe0775c5f5b551d5eb54e3c4366fb8bec0c92
Hash `Ident` spans in all HIR structures

This PR removes all of the `#[stable_hasher(project(name))]`
attributes used in HIR structs. While these attributes are not known
to be causing any issues in practice, we need to hash these in
order for the incremental system to work correctly -
a query could be otherwise be incorrectly marked green
when a change occures in one of the `Span`s that it uses.
compiler/rustc_hir/src/hir.rs
src/test/incremental/hashes/trait_defs.rs