File tree 5 files changed +8
-7
lines changed
cross-crate-macro-backtrace
5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,8 @@ impl EmitterWriter {
473
473
if spans_updated {
474
474
children. push ( SubDiagnostic {
475
475
level : Level :: Note ,
476
- message : "this error originates in a macro from the standard library" . to_string ( ) ,
476
+ message : "this error originates in a macro outside of the current \
477
+ crate". to_string ( ) ,
477
478
span : MultiSpan :: new ( ) ,
478
479
render_span : None
479
480
} ) ;
Original file line number Diff line number Diff line change @@ -4,23 +4,23 @@ error: requires at least a format string argument
4
4
12 | format!();
5
5
| ^^^^^^^^^^
6
6
|
7
- = note: this error originates in a macro from the standard library
7
+ = note: this error originates in a macro outside of the current crate
8
8
9
9
error: expected token: `,`
10
10
--> $DIR/bad-format-args.rs:13:5
11
11
|
12
12
13 | format!("" 1);
13
13
| ^^^^^^^^^^^^^^
14
14
|
15
- = note: this error originates in a macro from the standard library
15
+ = note: this error originates in a macro outside of the current crate
16
16
17
17
error: expected token: `,`
18
18
--> $DIR/bad-format-args.rs:14:5
19
19
|
20
20
14 | format!("", 1 1);
21
21
| ^^^^^^^^^^^^^^^^^
22
22
|
23
- = note: this error originates in a macro from the standard library
23
+ = note: this error originates in a macro outside of the current crate
24
24
25
25
error: aborting due to 3 previous errors
26
26
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: cannot apply unary operator `!` to type `&'static str`
4
4
12 | assert!("foo");
5
5
| ^^^^^^^^^^^^^^^
6
6
|
7
- = note: this error originates in a macro from the standard library
7
+ = note: this error originates in a macro outside of the current crate
8
8
9
9
error: aborting due to previous error
10
10
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ error[E0282]: unable to infer enough type information about `_`
5
5
| ^^^^^^ cannot infer type for `_`
6
6
|
7
7
= note: type annotations or generic parameter binding required
8
- = note: this error originates in a macro from the standard library
8
+ = note: this error originates in a macro outside of the current crate
9
9
10
10
error: aborting due to previous error
11
11
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: invalid reference to argument `0` (no arguments given)
4
4
16 | myprintln!("{}"); //~ ERROR in this macro
5
5
| ^^^^^^^^^^^^^^^^^
6
6
|
7
- = note: this error originates in a macro from the standard library
7
+ = note: this error originates in a macro outside of the current crate
8
8
9
9
error: aborting due to previous error
10
10
You can’t perform that action at this time.
0 commit comments