1
Fork 0

Avoid invoking the intrinsic query for DefKinds other than Fn or AssocFn

This commit is contained in:
Oli Scherer 2024-03-05 04:29:12 +00:00
parent c04f0caaff
commit b0f71f109e
4 changed files with 12 additions and 8 deletions

View file

@ -1760,7 +1760,7 @@ rustc_queries! {
separate_provide_extern
}
/// Whether the function is an intrinsic
query intrinsic(def_id: DefId) -> Option<rustc_middle::ty::IntrinsicDef> {
query intrinsic_raw(def_id: DefId) -> Option<rustc_middle::ty::IntrinsicDef> {
desc { |tcx| "fetch intrinsic name if `{}` is an intrinsic", tcx.def_path_str(def_id) }
separate_provide_extern
}