-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs for custom normalization of test output
- Loading branch information
1 parent
c3a7d36
commit 66bd53a
Showing
19 changed files
with
103 additions
and
67 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
File renamed without changes.
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,46 @@ | ||
warning: constant evaluation error: non-constant path in constant expression | ||
--> $DIR/const-fn-error.rs:27:19 | ||
| | ||
27 | let a : [i32; f(X)]; | ||
| ^^^^ | ||
| | ||
= note: #[warn(const_err)] on by default | ||
|
||
error[E0016]: blocks in constant functions are limited to items and tail expressions | ||
--> $DIR/const-fn-error.rs:16:19 | ||
| | ||
16 | let mut sum = 0; //~ ERROR blocks in constant functions are limited | ||
| ^ | ||
|
||
error[E0015]: calls in constant functions are limited to constant functions, struct and enum constructors | ||
--> $DIR/const-fn-error.rs:17:5 | ||
| | ||
17 | / for i in 0..x { //~ ERROR calls in constant functions | ||
18 | | //~| ERROR constant function contains unimplemented | ||
19 | | sum += i; | ||
20 | | } | ||
| |_____^ | ||
|
||
error[E0019]: constant function contains unimplemented expression type | ||
--> $DIR/const-fn-error.rs:17:5 | ||
| | ||
17 | / for i in 0..x { //~ ERROR calls in constant functions | ||
18 | | //~| ERROR constant function contains unimplemented | ||
19 | | sum += i; | ||
20 | | } | ||
| |_____^ | ||
|
||
error[E0080]: constant evaluation error | ||
--> $DIR/const-fn-error.rs:20:5 | ||
--> $DIR/const-fn-error.rs:21:5 | ||
| | ||
20 | sum //~ ERROR E0080 | ||
21 | sum //~ ERROR E0080 | ||
| ^^^ non-constant path in constant expression | ||
| | ||
note: for constant expression here | ||
--> $DIR/const-fn-error.rs:26:13 | ||
--> $DIR/const-fn-error.rs:27:13 | ||
| | ||
26 | let a : [i32; f(X)]; | ||
27 | let a : [i32; f(X)]; | ||
| ^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
error: aborting due to 4 previous errors | ||
|
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
This file was deleted.
Oops, something went wrong.
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,13 +1,11 @@ | ||
error[E0061]: this function takes 2 parameters but 1 parameter was supplied | ||
--> $DIR/issue-18819.rs:26:13 | ||
--> $DIR/issue-18819.rs:26:5 | ||
| | ||
21 | / fn print_x(_: &Foo<Item=bool>, extra: &str) { | ||
22 | | println!("{}", extra); | ||
23 | | } | ||
| |_- defined here | ||
21 | fn print_x(_: &Foo<Item=bool>, extra: &str) { | ||
| ------------------------------------------- defined here | ||
... | ||
26 | print_x(X); | ||
| ^ expected 2 parameters | ||
26 | print_x(X); | ||
| ^^^^^^^^^^ expected 2 parameters | ||
|
||
error: aborting due to previous error | ||
|
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 |
---|---|---|
|
@@ -30,3 +30,4 @@ fn h(a: &bool, b: bool, c: &S, d: &i32) -> &i32 { | |
panic!(); | ||
} | ||
|
||
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,10 +1,8 @@ | ||
error[E0061]: this function takes 2 parameters but 1 parameter was supplied | ||
--> $DIR/issue-3044.rs:14:28 | ||
--> $DIR/issue-3044.rs:14:23 | ||
| | ||
14 | needlesArr.iter().fold(|x, y| { | ||
| ____________________________^ | ||
15 | | }); | ||
| |_____^ expected 2 parameters | ||
14 | needlesArr.iter().fold(|x, y| { | ||
| ^^^^ expected 2 parameters | ||
|
||
error: aborting due to previous error | ||
|
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,11 +1,11 @@ | ||
error[E0061]: this function takes 1 parameter but 2 parameters were supplied | ||
--> $DIR/issue-4935.rs:15:17 | ||
--> $DIR/issue-4935.rs:15:13 | ||
| | ||
13 | fn foo(a: usize) {} | ||
| ------------------- defined here | ||
| ---------------- defined here | ||
14 | //~^ defined here | ||
15 | fn main() { foo(5, 6) } | ||
| ^^^^ expected 1 parameter | ||
| ^^^^^^^^^ expected 1 parameter | ||
|
||
error: aborting due to previous error | ||
|
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
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
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,13 +1,11 @@ | ||
error[E0061]: this function takes 4 parameters but 3 parameters were supplied | ||
--> $DIR/not-enough-arguments.rs:20:7 | ||
--> $DIR/not-enough-arguments.rs:20:3 | ||
| | ||
15 | / fn foo(a: isize, b: isize, c: isize, d:isize) { | ||
16 | | panic!(); | ||
17 | | } | ||
| |_- defined here | ||
15 | fn foo(a: isize, b: isize, c: isize, d:isize) { | ||
| --------------------------------------------- defined here | ||
... | ||
20 | foo(1, 2, 3); | ||
| ^^^^^^^ expected 4 parameters | ||
20 | foo(1, 2, 3); | ||
| ^^^^^^^^^^^^ expected 4 parameters | ||
|
||
error: aborting due to previous error | ||
|
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