Improve error message for unassigned query provider
Fixes: 83122
This commit is contained in:
parent
cebc8fef5f
commit
688c857c56
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