initial working state
This commit is contained in:
@@ -552,6 +552,20 @@ pub fn provide(providers: &mut ty::query::Providers) {
|
||||
vtable_methods,
|
||||
type_implements_trait,
|
||||
subst_and_check_impossible_predicates,
|
||||
mir_abstract_const: |tcx, def_id| {
|
||||
let def_id = def_id.as_local()?; // We do not store failed AbstractConst's.
|
||||
if let Some(def) = ty::WithOptConstParam::try_lookup(def_id, tcx) {
|
||||
tcx.mir_abstract_const_of_const_arg(def)
|
||||
} else {
|
||||
const_evaluatable::mir_abstract_const(tcx, ty::WithOptConstParam::unknown(def_id))
|
||||
}
|
||||
},
|
||||
mir_abstract_const_of_const_arg: |tcx, (did, param_did)| {
|
||||
const_evaluatable::mir_abstract_const(
|
||||
tcx,
|
||||
ty::WithOptConstParam { did, const_param_did: Some(param_did) },
|
||||
)
|
||||
},
|
||||
..*providers
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user