Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add long error explanation for E0710 #70352

Merged
merged 6 commits into from
Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ E0701: include_str!("./error_codes/E0701.md"),
E0704: include_str!("./error_codes/E0704.md"),
E0705: include_str!("./error_codes/E0705.md"),
E0706: include_str!("./error_codes/E0706.md"),
E0710: include_str!("./error_codes/E0710.md"),
E0712: include_str!("./error_codes/E0712.md"),
E0713: include_str!("./error_codes/E0713.md"),
E0714: include_str!("./error_codes/E0714.md"),
Expand Down Expand Up @@ -604,7 +605,6 @@ E0748: include_str!("./error_codes/E0748.md"),
E0708, // `async` non-`move` closures with parameters are not currently
// supported
// E0709, // multiple different lifetimes used in arguments of `async fn`
E0710, // an unknown tool name found in scoped lint
E0711, // a feature has been declared with conflicting stability attributes
E0717, // rustc_promotable without stability attribute
// E0721, // `await` keyword
Expand Down
34 changes: 34 additions & 0 deletions src/librustc_error_codes/error_codes/E0710.md
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
}
```
1 change: 1 addition & 0 deletions src/test/ui/tool_lints.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ LL | #[warn(foo::bar)]

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0710`.
1 change: 1 addition & 0 deletions src/test/ui/unknown-lint-tool-name.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ LL | #[allow(foo::bar)]

error: aborting due to 6 previous errors

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