Skip to content

Commit a861b19

Browse files
Wrap missing provider message correctly
1 parent 07c993e commit a861b19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_middle/src/ty/query.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,9 @@ macro_rules! define_callbacks {
328328

329329
Providers {
330330
$($name: |_, key| bug!(
331-
"`tcx.{}({:?})` is not supported for {} crate;\n
332-
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
331+
"`tcx.{}({:?})` is not supported for {} crate;\n\
332+
hint: Queries can be either made to the local crate, or the external crate. \
333+
This error means you tried to use it for one that's not supported.\n\
333334
If that's not the case, {} was likely never assigned to a provider function.\n",
334335
stringify!($name),
335336
key,

0 commit comments

Comments
 (0)