diff options
| author | Michael Goulet <michael@errs.io> | 2023-02-24 18:46:24 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-02-24 18:46:29 +0000 |
| commit | a861b192da5426d20cfecf35f898aa642f87f9e6 (patch) | |
| tree | 528bbd974169437ebd1120b120623f900a3553dd | |
| parent | 07c993eba8b76eae497e98433ae075b00f01be10 (diff) | |
| download | rust-a861b192da5426d20cfecf35f898aa642f87f9e6.tar.gz rust-a861b192da5426d20cfecf35f898aa642f87f9e6.zip | |
Wrap missing provider message correctly
| -rw-r--r-- | compiler/rustc_middle/src/ty/query.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/query.rs b/compiler/rustc_middle/src/ty/query.rs index 5b3f3870429..3d9a5075d4a 100644 --- a/compiler/rustc_middle/src/ty/query.rs +++ b/compiler/rustc_middle/src/ty/query.rs @@ -328,8 +328,9 @@ macro_rules! define_callbacks { Providers { $($name: |_, key| bug!( - "`tcx.{}({:?})` is not supported for {} crate;\n - 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 + "`tcx.{}({:?})` is not supported for {} crate;\n\ + 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\ If that's not the case, {} was likely never assigned to a provider function.\n", stringify!($name), key, |
