forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
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 rust-lang#70352 - bishtpawan:doc/61137-add-long-error…
…-code-e0710, r=Dylan-DPC Add long error explanation for E0710 Add long explanation for the E0710 error code Part of rust-lang#61137 r? @GuillaumeGomez
- Loading branch information
Showing
4 changed files
with
37 additions
and
1 deletion.
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,34 @@ | ||
An unknown tool name found in scoped lint | ||
|
||
Erroneous code examples: | ||
|
||
```compile_fail,E0710 | ||
#[allow(clipp::filter_map)] // error!` | ||
fn main() { | ||
// business logic | ||
} | ||
``` | ||
|
||
```compile_fail,E0710 | ||
#[warn(clipp::filter_map)] // error!` | ||
fn main() { | ||
// business logic | ||
} | ||
``` | ||
|
||
Please verify you didn't misspell the tool's name or that you didn't | ||
forget to import it in you project: | ||
|
||
``` | ||
#[allow(clippy::filter_map)] // ok! | ||
fn main() { | ||
// business logic | ||
} | ||
``` | ||
|
||
``` | ||
#[warn(clippy::filter_map)] // ok! | ||
fn main() { | ||
// business logic | ||
} | ||
``` |
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