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 c37a10c

Browse files
committedMar 14, 2025
Do not suggest using -Zmacro-backtrace for builtin macros
For macros that are implemented on the compiler, we do *not* mention the `-Zmacro-backtrace` flag. This includes `derive`s and standard macros.
1 parent f7b4354 commit c37a10c

File tree

205 files changed

+37
-495
lines changed

Some content is hidden

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

205 files changed

+37
-495
lines changed
 

‎tests/ui/alloc-error/alloc-error-handler-bad-signature-1.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ LL | fn oom(
1818
| ^^^
1919
LL | info: &Layout,
2020
| -------------
21-
= note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
2221

2322
error[E0308]: mismatched types
2423
--> $DIR/alloc-error-handler-bad-signature-1.rs:10:1
@@ -35,7 +34,6 @@ LL | | }
3534
|
3635
= note: expected type `!`
3736
found unit type `()`
38-
= note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
3937

4038
error: aborting due to 2 previous errors
4139

‎tests/ui/alloc-error/alloc-error-handler-bad-signature-2.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ LL | fn oom(
2626
| ^^^
2727
LL | info: Layout,
2828
| ------------
29-
= note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
3029

3130
error[E0308]: mismatched types
3231
--> $DIR/alloc-error-handler-bad-signature-2.rs:10:1
@@ -43,7 +42,6 @@ LL | | }
4342
|
4443
= note: expected type `!`
4544
found unit type `()`
46-
= note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
4745

4846
error: aborting due to 2 previous errors
4947

‎tests/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ note: function defined here
1414
|
1515
LL | fn oom() -> ! {
1616
| ^^^
17-
= note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
1817

1918
error: aborting due to 1 previous error
2019

There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.