Rollup merge of #83367 - richkadel:query-err-msg, r=jyn514
Improve error message for unassigned query provider Fixes: #83122 r? `@jyn514` This implements the change we agreed on. Thanks!
This commit is contained in:
commit
014a4ee9f5
1 changed files with 5 additions and 2 deletions
|
@ -217,8 +217,11 @@ macro_rules! define_callbacks {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Providers {
|
Providers {
|
||||||
$($name: |_, key| bug!(
|
$($name: |_, key| bug!(
|
||||||
"`tcx.{}({:?})` unsupported by its crate",
|
"`tcx.{}({:?})` unsupported by its crate; \
|
||||||
stringify!($name), key
|
perhaps the `{}` query was never assigned a provider function",
|
||||||
|
stringify!($name),
|
||||||
|
key,
|
||||||
|
stringify!($name),
|
||||||
),)*
|
),)*
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue