You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #104675 - SarthakSingh31:issue-101666, r=jyn514
Unsupported query error now specifies if its unsupported for local or external crate
Fixes#101666.
I had to move `keys.rs` from `rustc_query_impl` to `rustc_middle`. I don't know if that is problematic. I couldn't think of any other way to get the needed information inside `rustc_middle`.
r? ```@jyn514```
"`tcx.{}({:?})` is not supported for external or local crate;\n
282
-
hint: Queries can be either made to the local crate, or the external crate. This error means you tried to use it for one that's not supported (likely the local crate).\n
283
+
"`tcx.{}({:?})` is not supported for {} crate;\n
284
+
hint: Queries can be either made to the local crate, or the external crate. This error means you tried to use it for one that's not supported.\n
283
285
If that's not the case, {} was likely never assigned to a provider function.\n",
284
286
stringify!($name),
285
287
key,
288
+
if key.query_crate_is_local(){"local"} else {"external"},
0 commit comments