Skip to content

Commit 03c5435

Browse files
committed
Hash discriminant of lifetime.name
1 parent ad63719 commit 03c5435

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/utils/hir_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
583583
}
584584

585585
pub fn hash_lifetime(&mut self, lifetime: &Lifetime) {
586+
std::mem::discriminant(&lifetime.name).hash(&mut self.s);
586587
if let LifetimeName::Param(ref name) = lifetime.name {
587588
std::mem::discriminant(&name).hash(&mut self.s);
588589
match name {

0 commit comments

Comments
 (0)