diff options
| author | Ralf Jung <post@ralfj.de> | 2024-10-08 14:06:56 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-10-22 07:37:54 +0100 |
| commit | 46ce5cbf339e1ea84d2b28ac04369084b9f2d948 (patch) | |
| tree | 2feba5fd8bcd636d45364e65ebe0a32e6ba0f4fd /compiler/rustc_query_system | |
| parent | 3ec4308f6cb4bba3140d736d9ebd53b234fa7df8 (diff) | |
| download | rust-46ce5cbf339e1ea84d2b28ac04369084b9f2d948.tar.gz rust-46ce5cbf339e1ea84d2b28ac04369084b9f2d948.zip | |
terminology: #[feature] *enables* a feature (instead of "declaring" or "activating" it)
Diffstat (limited to 'compiler/rustc_query_system')
| -rw-r--r-- | compiler/rustc_query_system/src/ich/impls_syntax.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/ich/impls_syntax.rs b/compiler/rustc_query_system/src/ich/impls_syntax.rs index 5e450979273..797db3a17bd 100644 --- a/compiler/rustc_query_system/src/ich/impls_syntax.rs +++ b/compiler/rustc_query_system/src/ich/impls_syntax.rs @@ -112,10 +112,10 @@ impl<'tcx> HashStable<StableHashingContext<'tcx>> for rustc_feature::Features { fn hash_stable(&self, hcx: &mut StableHashingContext<'tcx>, hasher: &mut StableHasher) { // Unfortunately we cannot exhaustively list fields here, since the // struct is macro generated. - self.declared_lang_features.hash_stable(hcx, hasher); - self.declared_lib_features.hash_stable(hcx, hasher); + self.enabled_lang_features.hash_stable(hcx, hasher); + self.enabled_lib_features.hash_stable(hcx, hasher); - self.all_features()[..].hash_stable(hcx, hasher); + self.all_lang_features()[..].hash_stable(hcx, hasher); for feature in rustc_feature::UNSTABLE_FEATURES.iter() { feature.feature.name.hash_stable(hcx, hasher); } |
