Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6a7ddb6

Browse files
committedMar 11, 2025
Do not suggest using -Zmacro-backtrace for builtin macros
For macros that are implemented on the compiler, or that are annotated with `rustc_diagnostic_item`, which have arbitrary implementations from the point of view of the user and might as well be intrinsics, we do *not* mention the `-Zmacro-backtrace` flag. This includes `derive`s and standard macros like `panic!` and `format!`.
1 parent 385970f commit 6a7ddb6

File tree

275 files changed

+40
-679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+40
-679
lines changed
 

‎tests/ui/asm/x86_64/type-check-2.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ LL | asm!("{}", in(reg) vec![0]);
2121
| ^^^^^^^
2222
|
2323
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
24-
= note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
2524

2625
error: cannot use value of type `(i32, i32, i32)` for inline assembly
2726
--> $DIR/type-check-2.rs:48:28

‎tests/ui/associated-consts/defaults-not-assumed-fail.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ note: erroneous constant encountered
2323
|
2424
LL | assert_eq!(<() as Tr>::B, 0); // causes the error above
2525
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26-
|
27-
= note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
2826

2927
note: erroneous constant encountered
3028
--> $DIR/defaults-not-assumed-fail.rs:33:5
@@ -33,7 +31,6 @@ LL | assert_eq!(<() as Tr>::B, 0); // causes the error above
3331
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3432
|
3533
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
36-
= note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
3734

3835
error: aborting due to 1 previous error
3936

There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.