about summary refs log tree commit diff
path: root/tests/ui/test-attrs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-03-11 23:42:36 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-03-14 19:50:03 +0000
commitf0b8e13b59a68d63cf7083be5cd6dcca3abf18ff (patch)
tree08b7bd21fe99866e81f5f2ede1f6f4fb2ffcd4d7 /tests/ui/test-attrs
parentf7b43542838f0a4a6cfdb17fbeadf45002042a77 (diff)
downloadrust-f0b8e13b59a68d63cf7083be5cd6dcca3abf18ff.tar.gz
rust-f0b8e13b59a68d63cf7083be5cd6dcca3abf18ff.zip
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.
Diffstat (limited to 'tests/ui/test-attrs')
-rw-r--r--tests/ui/test-attrs/custom-test-frameworks/issue-107454.stderr1
-rw-r--r--tests/ui/test-attrs/issue-12997-2.stderr1
-rw-r--r--tests/ui/test-attrs/test-function-signature.stderr1
3 files changed, 0 insertions, 3 deletions
diff --git a/tests/ui/test-attrs/custom-test-frameworks/issue-107454.stderr b/tests/ui/test-attrs/custom-test-frameworks/issue-107454.stderr
index 6ac79924d80..1b1a59ec582 100644
--- a/tests/ui/test-attrs/custom-test-frameworks/issue-107454.stderr
+++ b/tests/ui/test-attrs/custom-test-frameworks/issue-107454.stderr
@@ -9,7 +9,6 @@ note: the lint level is defined here
    |
 LL | #![deny(unnameable_test_items)]
    |         ^^^^^^^^^^^^^^^^^^^^^
-   = note: this error originates in the attribute macro `test_case` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to 1 previous error
 
diff --git a/tests/ui/test-attrs/issue-12997-2.stderr b/tests/ui/test-attrs/issue-12997-2.stderr
index bc84ff413df..1123630a4a1 100644
--- a/tests/ui/test-attrs/issue-12997-2.stderr
+++ b/tests/ui/test-attrs/issue-12997-2.stderr
@@ -14,7 +14,6 @@ note: function defined here
    |
 LL | fn bar(x: isize) { }
    |    ^^^ --------
-   = note: this error originates in the attribute macro `bench` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to 1 previous error
 
diff --git a/tests/ui/test-attrs/test-function-signature.stderr b/tests/ui/test-attrs/test-function-signature.stderr
index abdb30dc931..c025163c0bd 100644
--- a/tests/ui/test-attrs/test-function-signature.stderr
+++ b/tests/ui/test-attrs/test-function-signature.stderr
@@ -32,7 +32,6 @@ LL | fn bar() -> i32 {
    |
 note: required by a bound in `assert_test_result`
   --> $SRC_DIR/test/src/lib.rs:LL:COL
-   = note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to 5 previous errors