Skip to content

Commit

Permalink
Update for latest nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jan 17, 2024
1 parent 1907e52 commit 6097f67
Show file tree
Hide file tree
Showing 30 changed files with 63 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ error[E0432]: unresolved import `basic_bin`
1 | use basic_bin::add;
| ^^^^^^^^^ use of undeclared crate or module `basic_bin`

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0432`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
40 changes: 24 additions & 16 deletions tests/integrations/basic-fail/Cargo.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.

Expand Down Expand Up @@ -88,7 +88,7 @@ Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/ex
+4 |
+ | ^
+
+error: aborting due to previous error
+error: aborting due to 1 previous error
+


Expand All @@ -108,7 +108,7 @@ error: this file contains an unclosed delimiter
4 |
| ^

error: aborting due to previous error
error: aborting due to 1 previous error


full stdout:
Expand Down Expand Up @@ -168,7 +168,7 @@ Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/fo
+ | ^^^

-error: aborting doo to previous error
+error: aborting due to previous error
+error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.

Expand All @@ -188,7 +188,7 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.

Expand Down Expand Up @@ -242,18 +242,26 @@ error: `mismatched types` not found in diagnostics on line 8
|

error: there were 1 unmatched diagnostics
--> tests/actual_tests/rustc_ice.rs:8:5
--> tests/actual_tests/rustc_ice.rs:8:9
|

Check failure on line 246 in tests/integrations/basic-fail/Cargo.stdout

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest, x86_64-unknown-linux-gnu)

actual output differs from expected

this line was expected to be ` --> tests/actual_tests/rustc_ice.rs:8:5`
8 | add("42", 3);
| ^^^^^^^^^^^^ Ice: no errors reported for args
| ^^^^ Ice: mismatched types
|

Check failure on line 249 in tests/integrations/basic-fail/Cargo.stdout

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest, x86_64-unknown-linux-gnu)

actual output differs from expected

this line was expected to be ` | ^^^^^^^^^^^^ Ice: no errors reported for args`

full stderr:
error: internal compiler error: no errors reported for args
--> tests/actual_tests/rustc_ice.rs:8:5
error: internal compiler error[E0308]: mismatched types
--> tests/actual_tests/rustc_ice.rs:8:9

Check failure on line 253 in tests/integrations/basic-fail/Cargo.stdout

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest, x86_64-unknown-linux-gnu)

actual output differs from expected

this line was expected to be `error: internal compiler error: no errors reported for args`
|
8 | add("42", 3);
| ^^^^^^^^^^^^
| --- ^^^^ expected `usize`, found `&str`
| |

Check failure on line 257 in tests/integrations/basic-fail/Cargo.stdout

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest, x86_64-unknown-linux-gnu)

actual output differs from expected

this line was expected to be ` | ^^^^^^^^^^^^`
| arguments to this function are incorrect
|
note: function defined here
--> $DIR/tests/integrations/basic-fail/src/lib.rs:LL:CC
|
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:
aborting due to `-Z treat-err-as-bug=1`
Expand Down Expand Up @@ -375,7 +383,7 @@ error: expected one of `!` or `::`, found `<eof>`
7 | thing!(cake);
| ^^^^ expected one of `!` or `::`

error: aborting due to previous error
error: aborting due to 1 previous error


full stdout:
Expand Down Expand Up @@ -627,7 +635,7 @@ error[E0601]: `main` function not found in crate `revisions_bad`
10 | }
| ^ consider adding a `main` function to `tests/actual_tests_bless/revisions_bad.rs`

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0601`.

Expand Down Expand Up @@ -657,7 +665,7 @@ help: consider cloning the value if the performance cost is acceptable
11 | x.clone();
| ++++++++

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0382`.

Expand Down Expand Up @@ -687,7 +695,7 @@ help: consider cloning the value if the performance cost is acceptable
11 | x.clone();
| ++++++++

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0382`.

Expand Down Expand Up @@ -717,7 +725,7 @@ help: consider cloning the value if the performance cost is acceptable
10 | x.clone();
| ++++++++

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0382`.

Expand Down Expand Up @@ -854,7 +862,7 @@ error[E0601]: `main` function not found in crate `revisions_bad`
10 | }
| ^ consider adding a `main` function to `tests/actual_tests_bless_yolo/revisions_bad.rs`

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0601`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
14 changes: 11 additions & 3 deletions tests/integrations/basic-fail/tests/actual_tests/rustc_ice.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
error: internal compiler error: no errors reported for args
--> tests/actual_tests/rustc_ice.rs:8:5
error: internal compiler error[E0308]: mismatched types
--> tests/actual_tests/rustc_ice.rs:8:9
|
8 | add("42", 3);
| ^^^^^^^^^^^^
| --- ^^^^ expected `usize`, found `&str`
| |
| arguments to this function are incorrect
|
note: function defined here
--> $DIR/tests/integrations/basic-fail/src/lib.rs:1:8
|
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

thread 'rustc' panicked
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ error: expected one of `!` or `::`, found `<eof>`
7 | thing!(cake);
| ^^^^ expected one of `!` or `::`

error: aborting due to previous error
error: aborting due to 1 previous error

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(_: u8, _: u8) {}
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ error[E0601]: `main` function not found in crate `revisions_bad`
10 | }
| ^ consider adding a `main` function to `tests/actual_tests_bless/revisions_bad.rs`

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0601`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ error: expected `,` following `match` arm
6 | 0 => String::new()
| ^ help: missing a comma here to end this `match` arm: `,`

error: aborting due to previous error
error: aborting due to 1 previous error

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ error: expected `,` following `match` arm
6 | 0 => String::new()
| ^ help: missing a comma here to end this `match` arm: `,`

error: aborting due to previous error
error: aborting due to 1 previous error

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ error: expected `,` following `match` arm
5 | 0 => String::new()
| ^ help: missing a comma here to end this `match` arm: `,`

error: aborting due to previous error
error: aborting due to 1 previous error

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ error[E0601]: `main` function not found in crate `revisions_bad`
10 | }
| ^ consider adding a `main` function to `tests/actual_tests_bless_yolo/revisions_bad.rs`

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0601`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ error[E0308]: mismatched types
| | expected `String`, found integer
| expected due to this

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ error[E0384]: cannot assign twice to immutable variable `x`
8 | x = Foo;
| ^^^^^^^ cannot assign twice to immutable variable

error: aborting due to previous error; 2 warnings emitted
error: aborting due to 1 previous error; 2 warnings emitted

For more information about this error, try `rustc --explain E0384`.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ error[E0425]: cannot find value `cake` in this scope
6 | thing!(cake);
| ^^^^ not found in this scope

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0425`.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ note: the lint level is defined here
| ^^^^^^^^
= note: `#[deny(unused_mut)]` implied by `#[deny(warnings)]`

error: aborting due to previous error
error: aborting due to 1 previous error

2 changes: 1 addition & 1 deletion tests/integrations/basic/tests/actual_tests/foomp.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ note: function defined here
1 | pub fn add(left: usize, right: usize) -> usize {
| ^^^

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ help: change the type of the numeric literal from `u32` to `i32`
2 | let _x: i32 = 0i32;
| ~~~

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ note: the lint level is defined here
| ^^^^^^^^
= note: `#[deny(unused_mut)]` implied by `#[deny(warnings)]`

error: aborting due to previous error
error: aborting due to 1 previous error

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ error[E0425]: cannot find value `cake` in this scope
6 | thing!(cake);
| ^^^^ not found in this scope

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0425`.

0 comments on commit 6097f67

Please sign in to comment.