diff options
| author | Ralf Jung <post@ralfj.de> | 2024-10-09 08:30:43 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-10-22 07:37:55 +0100 |
| commit | 1381773e01210cc7f377a9ab1aa886e621ceafe4 (patch) | |
| tree | 1ca3498ed29b4da5d19b96265fa99ff5cc2e7283 /compiler/rustc_query_system/src/ich/impls_syntax.rs | |
| parent | 46ce5cbf339e1ea84d2b28ac04369084b9f2d948 (diff) | |
| download | rust-1381773e01210cc7f377a9ab1aa886e621ceafe4.tar.gz rust-1381773e01210cc7f377a9ab1aa886e621ceafe4.zip | |
make some rustc_feature internals private, and ensure invariants with debug assertions
Diffstat (limited to 'compiler/rustc_query_system/src/ich/impls_syntax.rs')
| -rw-r--r-- | compiler/rustc_query_system/src/ich/impls_syntax.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_query_system/src/ich/impls_syntax.rs b/compiler/rustc_query_system/src/ich/impls_syntax.rs index 797db3a17bd..78c37688d34 100644 --- a/compiler/rustc_query_system/src/ich/impls_syntax.rs +++ b/compiler/rustc_query_system/src/ich/impls_syntax.rs @@ -112,8 +112,8 @@ 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.enabled_lang_features.hash_stable(hcx, hasher); - self.enabled_lib_features.hash_stable(hcx, hasher); + self.enabled_lang_features().hash_stable(hcx, hasher); + self.enabled_lib_features().hash_stable(hcx, hasher); self.all_lang_features()[..].hash_stable(hcx, hasher); for feature in rustc_feature::UNSTABLE_FEATURES.iter() { |
