Skip to content

Commit c3e5b3e

Browse files
committed
Fix a comment.
The explanation given for the non-derive use is incorrect.
1 parent c7b90c8 commit c3e5b3e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

compiler/rustc_type_ir/src/region_kind.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ impl<I: Interner> fmt::Debug for RegionKind<I> {
215215
}
216216
}
217217

218+
// This impl could be derived with `StableHash_NoContext`, but we instead write it by hand in order
219+
// to panic on `ReVar`.
218220
#[cfg(feature = "nightly")]
219-
// This is not a derived impl because a derive would require `I: StableHash`
220221
impl<I: Interner> StableHash for RegionKind<I>
221222
where
222223
I::EarlyParamRegion: StableHash,

0 commit comments

Comments
 (0)