Remove impl_stable_hash_via_hash!() #96013
Labels
A-incr-comp
Area: Incremental compilation
C-bug
Category: This is a bug.
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-incr-comp
Working group: Incremental compilation
I came across
impl_stable_hash_via_hash!()
the other day and it seems very problematic because one can easily generate invalidHashStable
implementations without even noticing:I think we should just remove the macro (or keep it local to the module that implements
HashStable
for basic types).#[derive(HashStable_Generic)]
is available as a safe alternative.rustc_lint_defs::Level
looks like a case where this is already a problem because of theHirId
in the containedLintExpectationId
.cc @rust-lang/wg-incr-comp
The text was updated successfully, but these errors were encountered: