-
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.
Rollup merge of #107659 - bvanjoi:issue-107649, r=estebank
test: snapshot for derive suggestion in diff files fixed #107649
- Loading branch information
Showing
3 changed files
with
135 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// compile-flags: -Z ui-testing=no | ||
#[path = "auxiliary/dummy_lib.rs"] | ||
mod lib; | ||
|
||
/// The function needs to be long enough to | ||
/// ensure `max_line_num_len` to be large enough | ||
/// for no-ui-testing | ||
fn main() { | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
(); | ||
dbg!(lib::Dummy); //~ Error: `Dummy` doesn't implement `Debug` | ||
} |
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,18 @@ | ||
error[E0277]: `Dummy` doesn't implement `Debug` | ||
--> $DIR/issue-107649.rs:105:5 | ||
| | ||
105 | dbg!(lib::Dummy); | ||
| ^^^^^^^^^^^^^^^^ `Dummy` cannot be formatted using `{:?}` | ||
| | ||
= help: the trait `Debug` is not implemented for `Dummy` | ||
= note: add `#[derive(Debug)]` to `Dummy` or manually `impl Debug for Dummy` | ||
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
help: consider annotating `Dummy` with `#[derive(Debug)]` | ||
--> $DIR/auxiliary/dummy_lib.rs:2:1 | ||
| | ||
2 | #[derive(Debug)] | ||
| | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0277`. |