Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unrelated errors from parse stderr tests
- Loading branch information
Showing
12 changed files
with
35 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 4 additions & 13 deletions
17
src/test/ui/attrs-with-no-formal-in-generics/attrs-with-no-formal-in-generics-3.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
error: trailing attribute after lifetime parameters | ||
--> $DIR/attrs-with-no-formal-in-generics-3.rs:8:38 | ||
--> $DIR/attrs-with-no-formal-in-generics-3.rs:8:44 | ||
| | ||
LL | where Q: for <#[rustc_1] 'a, 'b, #[oops]> Fn(RefIntPair<'a,'b>) -> &'b u32 | ||
| ^^^^^^^ attributes must go before parameters | ||
LL | where Q: for <#[allow(unused)] 'a, 'b, #[oops]> Fn(RefIntPair<'a,'b>) -> &'b u32 | ||
| ^^^^^^^ attributes must go before parameters | ||
|
||
error[E0658]: unless otherwise specified, attributes with the prefix `rustc_` are reserved for internal compiler diagnostics (see issue #29642) | ||
--> $DIR/attrs-with-no-formal-in-generics-3.rs:8:19 | ||
| | ||
LL | where Q: for <#[rustc_1] 'a, 'b, #[oops]> Fn(RefIntPair<'a,'b>) -> &'b u32 | ||
| ^^^^^^^^^^ | ||
| | ||
= help: add #![feature(rustc_attrs)] to the crate attributes to enable | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
fn bar<'a, T>(x: mymodule::X<'a, T, 'b, 'c>) {} | ||
mod foo { | ||
pub struct X<'a, 'b, 'c, T> { | ||
a: &'a str, | ||
b: &'b str, | ||
c: &'c str, | ||
t: T, | ||
} | ||
} | ||
|
||
fn bar<'a, 'b, 'c, T>(x: foo::X<'a, T, 'b, 'c>) {} | ||
//~^ ERROR lifetime parameters must be declared prior to type parameters | ||
//~| ERROR lifetime parameters must be declared prior to type parameters | ||
//~| ERROR failed to resolve: use of undeclared type or module `mymodule` | ||
//~| ERROR use of undeclared lifetime name `'b` | ||
//~| ERROR use of undeclared lifetime name `'c` | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,14 @@ | ||
error: lifetime parameters must be declared prior to type parameters | ||
--> $DIR/issue-14303-path.rs:1:37 | ||
--> $DIR/issue-14303-path.rs:10:40 | ||
| | ||
LL | fn bar<'a, T>(x: mymodule::X<'a, T, 'b, 'c>) {} | ||
| ^^ must be declared prior to type parameters | ||
LL | fn bar<'a, 'b, 'c, T>(x: foo::X<'a, T, 'b, 'c>) {} | ||
| ^^ must be declared prior to type parameters | ||
|
||
error: lifetime parameters must be declared prior to type parameters | ||
--> $DIR/issue-14303-path.rs:1:41 | ||
--> $DIR/issue-14303-path.rs:10:44 | ||
| | ||
LL | fn bar<'a, T>(x: mymodule::X<'a, T, 'b, 'c>) {} | ||
| ^^ must be declared prior to type parameters | ||
LL | fn bar<'a, 'b, 'c, T>(x: foo::X<'a, T, 'b, 'c>) {} | ||
| ^^ must be declared prior to type parameters | ||
|
||
error[E0433]: failed to resolve: use of undeclared type or module `mymodule` | ||
--> $DIR/issue-14303-path.rs:1:18 | ||
| | ||
LL | fn bar<'a, T>(x: mymodule::X<'a, T, 'b, 'c>) {} | ||
| ^^^^^^^^ use of undeclared type or module `mymodule` | ||
|
||
error[E0261]: use of undeclared lifetime name `'b` | ||
--> $DIR/issue-14303-path.rs:1:37 | ||
| | ||
LL | fn bar<'a, T>(x: mymodule::X<'a, T, 'b, 'c>) {} | ||
| ^^ undeclared lifetime | ||
|
||
error[E0261]: use of undeclared lifetime name `'c` | ||
--> $DIR/issue-14303-path.rs:1:41 | ||
| | ||
LL | fn bar<'a, T>(x: mymodule::X<'a, T, 'b, 'c>) {} | ||
| ^^ undeclared lifetime | ||
|
||
error: aborting due to 5 previous errors | ||
error: aborting due to 2 previous errors | ||
|
||
Some errors occurred: E0261, E0433. | ||
For more information about an error, try `rustc --explain E0261`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
error: no valid digits found for number | ||
--> $DIR/issue-1802-2.rs:5:16 | ||
| | ||
LL | log(error, 0b_usize); | ||
| ^^^ | ||
LL | log(error, 0b); | ||
| ^^ | ||
|
||
error[E0308]: mismatched types | ||
--> $DIR/issue-1802-2.rs:5:16 | ||
| | ||
LL | log(error, 0b_usize); | ||
| ^^^^^^^^ expected i32, found usize | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0308`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
fn main() { | ||
match 0 { | ||
match (0, 1, 2) { | ||
(pat, ..,) => {} | ||
//~^ ERROR trailing comma is not permitted after `..` | ||
//~| ERROR mismatched types | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
fn main() { | ||
match 0 { | ||
match (0, 1, 2) { | ||
(.., pat, ..) => {} | ||
//~^ ERROR `..` can only be used once per tuple or tuple struct pattern | ||
//~| ERROR mismatched types | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
|
||
enum Color { | ||
Red = 0xff0000, | ||
//~^ ERROR discriminator values can only be used with a field-less enum | ||
Green = 0x00ff00, | ||
Blue = 0x0000ff, | ||
Black = 0x000000, | ||
White = 0xffffff, | ||
Other (str), | ||
//~^ ERROR the size for values of type | ||
// the above is kept in order to verify that we get beyond parse errors | ||
Other(usize), | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters