File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
compiler/rustc_query_system/src/ich Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -111,13 +111,8 @@ impl<'a> HashStable<StableHashingContext<'a>> for SourceFile {
111111impl < ' tcx > HashStable < StableHashingContext < ' tcx > > for rustc_feature:: Features {
112112 fn hash_stable ( & self , hcx : & mut StableHashingContext < ' tcx > , hasher : & mut StableHasher ) {
113113 // Unfortunately we cannot exhaustively list fields here, since the
114- // struct is macro generated.
114+ // struct has private fields (to ensure its invariant is maintained)
115115 self . enabled_lang_features ( ) . hash_stable ( hcx, hasher) ;
116116 self . enabled_lib_features ( ) . hash_stable ( hcx, hasher) ;
117-
118- // FIXME: why do we hash something that is a compile-time constant?
119- for feature in rustc_feature:: UNSTABLE_LANG_FEATURES . iter ( ) {
120- feature. name . hash_stable ( hcx, hasher) ;
121- }
122117 }
123118}
You can’t perform that action at this time.
0 commit comments