[ty] Discard Definitions when normalizing Signatures (#19615)

This commit is contained in:
Alex Waygood 2025-07-29 14:37:47 +01:00 committed by GitHub
parent a54061e757
commit 81867ea7ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -383,7 +383,9 @@ impl<'db> Signature<'db> {
inherited_generic_context: self
.inherited_generic_context
.map(|ctx| ctx.normalized_impl(db, visitor)),
definition: self.definition,
// Discard the definition when normalizing, so that two equivalent signatures
// with different `Definition`s share the same Salsa ID when normalized
definition: None,
parameters: self
.parameters
.iter()