Add issue links and blessed error files

This commit is contained in:
ujjwalVishwakarma2006
2026-04-12 20:43:28 +05:30
parent c9bfc85d1e
commit 9de8c8cf94
7 changed files with 14 additions and 9 deletions
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/29516>
//@ check-pass
#![feature(auto_traits)]
#![feature(negative_impls)]
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/3874>
//@ build-pass
#![allow(dead_code)]
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/32782>
macro_rules! bar (
() => ()
);
@@ -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()]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/5100>
//@ dont-require-annotations: NOTE
#![feature(box_patterns)]
@@ -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`
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/21033>
//@ run-pass
#![allow(unused_mut)]
#![allow(unused_variables)]