Cache Predicates' hash within themselves

This commit is contained in:
Oli Scherer
2022-03-14 16:54:31 +00:00
parent 8a75c5a9b5
commit 8582f9644b
3 changed files with 59 additions and 28 deletions

View File

@@ -89,7 +89,7 @@ macro_rules! arena_types {
// Interned types
[] tys: rustc_data_structures::intern::WithStableHash<rustc_middle::ty::TyS<'tcx>>,
[] predicates: rustc_middle::ty::PredicateS<'tcx>,
[] predicates: rustc_data_structures::intern::WithStableHash<rustc_middle::ty::PredicateS<'tcx>>,
[] consts: rustc_middle::ty::ConstS<'tcx>,
// Note that this deliberately duplicates items in the `rustc_hir::arena`,