diff --git a/tests/ui/auto-traits/distinct-type-tuple-by-negative-impl.rs b/tests/ui/auto-traits/distinct-type-tuple-by-negative-impl.rs index 52fd5ba8839d..229a5583199b 100644 --- a/tests/ui/auto-traits/distinct-type-tuple-by-negative-impl.rs +++ b/tests/ui/auto-traits/distinct-type-tuple-by-negative-impl.rs @@ -1,3 +1,4 @@ +//! Regression test for //@ check-pass #![feature(auto_traits)] #![feature(negative_impls)] diff --git a/tests/ui/binding/ref-in-let-lhs-in-field.rs b/tests/ui/binding/ref-in-let-lhs-in-field.rs index 251e8e1da6d3..1b859ccd80b4 100644 --- a/tests/ui/binding/ref-in-let-lhs-in-field.rs +++ b/tests/ui/binding/ref-in-let-lhs-in-field.rs @@ -1,3 +1,4 @@ +//! Regression test for //@ build-pass #![allow(dead_code)] diff --git a/tests/ui/feature-gates/feature-gate-check-nested-macro-invocation.rs b/tests/ui/feature-gates/feature-gate-check-nested-macro-invocation.rs index 1e99a25cec3a..c81d2e538c7f 100644 --- a/tests/ui/feature-gates/feature-gate-check-nested-macro-invocation.rs +++ b/tests/ui/feature-gates/feature-gate-check-nested-macro-invocation.rs @@ -1,3 +1,4 @@ +//! Regression test for macro_rules! bar ( () => () ); diff --git a/tests/ui/feature-gates/feature-gate-check-nested-macro-invocation.stderr b/tests/ui/feature-gates/feature-gate-check-nested-macro-invocation.stderr index 2a1183ab978d..cc3dda7c1f09 100644 --- a/tests/ui/feature-gates/feature-gate-check-nested-macro-invocation.stderr +++ b/tests/ui/feature-gates/feature-gate-check-nested-macro-invocation.stderr @@ -1,5 +1,5 @@ error[E0658]: allow_internal_unstable side-steps feature gating and stability checks - --> $DIR/issue-32782.rs:7:9 + --> $DIR/feature-gate-check-nested-macro-invocation.rs:8:9 | LL | #[allow_internal_unstable()] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -12,7 +12,7 @@ LL | foo!(); = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info) error: `#[allow_internal_unstable]` attribute cannot be used on macro calls - --> $DIR/issue-32782.rs:7:9 + --> $DIR/feature-gate-check-nested-macro-invocation.rs:8:9 | LL | #[allow_internal_unstable()] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/ui/pattern/match-errors-derived-error-suppression.rs b/tests/ui/pattern/match-errors-derived-error-suppression.rs index e9ae551bb77f..7d817167afcb 100644 --- a/tests/ui/pattern/match-errors-derived-error-suppression.rs +++ b/tests/ui/pattern/match-errors-derived-error-suppression.rs @@ -1,3 +1,4 @@ +//! Regression test for //@ dont-require-annotations: NOTE #![feature(box_patterns)] diff --git a/tests/ui/pattern/match-errors-derived-error-suppression.stderr b/tests/ui/pattern/match-errors-derived-error-suppression.stderr index c545f70415c1..6dc5e0eaca6b 100644 --- a/tests/ui/pattern/match-errors-derived-error-suppression.stderr +++ b/tests/ui/pattern/match-errors-derived-error-suppression.stderr @@ -1,5 +1,5 @@ error[E0308]: mismatched types - --> $DIR/issue-5100.rs:9:9 + --> $DIR/match-errors-derived-error-suppression.rs:10:9 | LL | match (true, false) { | ------------- this expression has type `(bool, bool)` @@ -10,7 +10,7 @@ LL | A::B => (), found enum `A` error[E0308]: mismatched types - --> $DIR/issue-5100.rs:18:9 + --> $DIR/match-errors-derived-error-suppression.rs:19:9 | LL | match (true, false) { | ------------- this expression has type `(bool, bool)` @@ -21,7 +21,7 @@ LL | (true, false, false) => () found tuple `(_, _, _)` error[E0308]: mismatched types - --> $DIR/issue-5100.rs:26:9 + --> $DIR/match-errors-derived-error-suppression.rs:27:9 | LL | match (true, false) { | ------------- this expression has type `(bool, bool)` @@ -32,7 +32,7 @@ LL | (true, false, false) => () found tuple `(_, _, _)` error[E0308]: mismatched types - --> $DIR/issue-5100.rs:34:9 + --> $DIR/match-errors-derived-error-suppression.rs:35:9 | LL | match (true, false) { | ------------- this expression has type `(bool, bool)` @@ -43,7 +43,7 @@ LL | box (true, false) => () found struct `Box<_>` error[E0308]: mismatched types - --> $DIR/issue-5100.rs:41:9 + --> $DIR/match-errors-derived-error-suppression.rs:42:9 | LL | match (true, false) { | ------------- this expression has type `(bool, bool)` @@ -54,13 +54,13 @@ LL | &(true, false) => () found reference `&_` error[E0618]: expected function, found `(char, char)` - --> $DIR/issue-5100.rs:49:14 + --> $DIR/match-errors-derived-error-suppression.rs:50:14 | LL | let v = [('a', 'b') | ^^^^^^^^^^- help: consider separating array elements with a comma: `,` error[E0308]: mismatched types - --> $DIR/issue-5100.rs:56:19 + --> $DIR/match-errors-derived-error-suppression.rs:57:19 | LL | let x: char = true; | ---- ^^^^ expected `char`, found `bool` diff --git a/tests/ui/pattern/match-struct-var-having-boxed-field.rs b/tests/ui/pattern/match-struct-var-having-boxed-field.rs index e6b13eb3f4b0..963fab4444ec 100644 --- a/tests/ui/pattern/match-struct-var-having-boxed-field.rs +++ b/tests/ui/pattern/match-struct-var-having-boxed-field.rs @@ -1,3 +1,4 @@ +//! Regression test for //@ run-pass #![allow(unused_mut)] #![allow(unused_variables)]