-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't elide shared parts of types in diagnostics when
--verbose
is …
…passed this also changes some parts of lifetime printing, which previously were not gated behind `-Z verbose`
- Loading branch information
Showing
8 changed files
with
72 additions
and
21 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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
error[E0308]: mismatched types | ||
--> $DIR/verbose.rs:7:28 | ||
| | ||
LL | let _: Foo<u32, i32> = Foo::<i32, i32> { x: 0, y: 0 }; | ||
| ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Foo<u32, i32>`, found `Foo<i32, i32>` | ||
| | | ||
| expected due to this | ||
| | ||
= note: expected struct `Foo<u32, _>` | ||
found struct `Foo<i32, _>` | ||
|
||
error: aborting due to 1 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// revisions:verbose normal | ||
// [verbose]compile-flags:--verbose | ||
#![crate_type = "lib"] | ||
|
||
struct Foo<T, U> { x: T, y: U } | ||
fn bar() { | ||
let _: Foo<u32, i32> = Foo::<i32, i32> { x: 0, y: 0 }; | ||
//~^ ERROR mismatched types | ||
//[verbose]~| NOTE expected struct `Foo<u32, i32>` | ||
//[normal]~| NOTE expected struct `Foo<u32, _>` | ||
//~| NOTE expected `Foo<u32, i32>` | ||
//~| NOTE expected due to this | ||
} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
error[E0308]: mismatched types | ||
--> $DIR/verbose.rs:7:28 | ||
| | ||
LL | let _: Foo<u32, i32> = Foo::<i32, i32> { x: 0, y: 0 }; | ||
| ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Foo<u32, i32>`, found `Foo<i32, i32>` | ||
| | | ||
| expected due to this | ||
| | ||
= note: expected struct `Foo<u32, i32>` | ||
found struct `Foo<i32, i32>` | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0308`. |