about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-08-17 06:17:36 +0000
committerMichael Goulet <michael@errs.io>2022-08-21 02:35:11 +0000
commit6848ba2665d10380f259addbd9f60d0ab8d3542a (patch)
tree87a269ac4ba606b55f1c70d4bd911c56d04b66fb /src/test
parent292ab399b339154e77fef54efe8b975654259733 (diff)
downloadrust-6848ba2665d10380f259addbd9f60d0ab8d3542a.tar.gz
rust-6848ba2665d10380f259addbd9f60d0ab8d3542a.zip
Comment a bit, use find_ancestor_in_same_ctxt to suppress some weird macro notes
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/fmt/send-sync.stderr2
-rw-r--r--src/test/ui/issues/issue-60218.stderr1
-rw-r--r--src/test/ui/never_type/feature-gate-never_type_fallback.stderr1
3 files changed, 0 insertions, 4 deletions
diff --git a/src/test/ui/fmt/send-sync.stderr b/src/test/ui/fmt/send-sync.stderr
index 62bcf3175e2..3ed040c3ab3 100644
--- a/src/test/ui/fmt/send-sync.stderr
+++ b/src/test/ui/fmt/send-sync.stderr
@@ -17,7 +17,6 @@ note: required by a bound in `send`
    |
 LL | fn send<T: Send>(_: T) {}
    |            ^^^^ required by this bound in `send`
-   = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely
   --> $DIR/send-sync.rs:9:10
@@ -38,7 +37,6 @@ note: required by a bound in `sync`
    |
 LL | fn sync<T: Sync>(_: T) {}
    |            ^^^^ required by this bound in `sync`
-   = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to 2 previous errors
 
diff --git a/src/test/ui/issues/issue-60218.stderr b/src/test/ui/issues/issue-60218.stderr
index 9105492c9ad..dd72b6515dd 100644
--- a/src/test/ui/issues/issue-60218.stderr
+++ b/src/test/ui/issues/issue-60218.stderr
@@ -14,7 +14,6 @@ LL | pub fn trigger_error<I, F>(iterable: I, functor: F)
 ...
 LL | for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo,
    |                                                                        ^^^ required by this bound in `trigger_error`
-   = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to previous error
 
diff --git a/src/test/ui/never_type/feature-gate-never_type_fallback.stderr b/src/test/ui/never_type/feature-gate-never_type_fallback.stderr
index 6a4726a8cc9..6dc039fc35d 100644
--- a/src/test/ui/never_type/feature-gate-never_type_fallback.stderr
+++ b/src/test/ui/never_type/feature-gate-never_type_fallback.stderr
@@ -13,7 +13,6 @@ note: required by a bound in `foo`
    |
 LL | fn foo(_: impl T) {}
    |                ^ required by this bound in `foo`
-   = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to previous error