1
Fork 0

Store static initializers in metadata instead of the MIR of statics.

This commit is contained in:
Oli Scherer 2023-10-09 12:20:26 +00:00
parent 95004e5ae2
commit be6ccf13e3
6 changed files with 23 additions and 7 deletions

View file

@ -1079,6 +1079,7 @@ rustc_queries! {
tcx.def_path_str(key)
}
cache_on_disk_if { key.is_local() }
separate_provide_extern
}
/// Evaluates const items or anonymous constants

View file

@ -63,6 +63,7 @@ trivially_parameterized_over_tcx! {
crate::middle::lib_features::FeatureStability,
crate::middle::resolve_bound_vars::ObjectLifetimeDefault,
crate::mir::ConstQualifs,
crate::mir::interpret::AllocId,
ty::AssocItemContainer,
ty::Asyncness,
ty::DeducedParamAttrs,