Ensure nested statics have a HIR node to prevent various queries from ICEing

This commit is contained in:
Oli Scherer 2024-03-19 09:00:57 +00:00
parent bdb682eda6
commit 3a09680671
3 changed files with 27 additions and 25 deletions

View file

@ -111,6 +111,8 @@ fn intern_as_new_static<'tcx>(
feed.generics_of(tcx.generics_of(static_id).clone());
feed.def_ident_span(tcx.def_ident_span(static_id));
feed.explicit_predicates_of(tcx.explicit_predicates_of(static_id));
feed.feed_hir()
}
/// How a constant value should be interned.