-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 #111289 - clubby789:fix-111280, r=jyn514
Check arguments length in trivial diagnostic lint Fixes #111280
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 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,8 @@ | ||
// compile-flags: -Zunstable-options | ||
|
||
pub fn issue_111280() { | ||
struct_span_err(msg).emit(); //~ ERROR cannot find value `msg` | ||
//~^ ERROR cannot find function `struct_span_err` | ||
} | ||
|
||
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
error[E0425]: cannot find value `msg` in this scope | ||
--> $DIR/trivial-diagnostics.rs:4:21 | ||
| | ||
LL | struct_span_err(msg).emit(); | ||
| ^^^ not found in this scope | ||
|
||
error[E0425]: cannot find function `struct_span_err` in this scope | ||
--> $DIR/trivial-diagnostics.rs:4:5 | ||
| | ||
LL | struct_span_err(msg).emit(); | ||
| ^^^^^^^^^^^^^^^ not found in this scope | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0425`. |