}
} else {
if tcx.is_const_fn(def_id) {
- tcx.item_body(def_id)
+ tcx.extern_const_body(def_id)
} else {
signal!(e, TypeckError)
}
tcx.mir_const_qualif(def_id);
tcx.hir.body(tcx.hir.body_owned_by(id))
} else {
- tcx.item_body(def_id)
+ tcx.extern_const_body(def_id)
};
ConstContext::new(tcx, key.param_env.and(substs), tables).eval(&body.value)
}