Skip to content

Commit 03bb3bd

Browse files
committed
Add long error explanation for E0710 #61137
1 parent 8ff7850 commit 03bb3bd

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

src/librustc_error_codes/error_codes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ E0701: include_str!("./error_codes/E0701.md"),
393393
E0704: include_str!("./error_codes/E0704.md"),
394394
E0705: include_str!("./error_codes/E0705.md"),
395395
E0706: include_str!("./error_codes/E0706.md"),
396+
E0710: include_str!("./error_codes/E0710.md"),
396397
E0712: include_str!("./error_codes/E0712.md"),
397398
E0713: include_str!("./error_codes/E0713.md"),
398399
E0714: include_str!("./error_codes/E0714.md"),
@@ -604,7 +605,6 @@ E0748: include_str!("./error_codes/E0748.md"),
604605
E0708, // `async` non-`move` closures with parameters are not currently
605606
// supported
606607
// E0709, // multiple different lifetimes used in arguments of `async fn`
607-
E0710, // an unknown tool name found in scoped lint
608608
E0711, // a feature has been declared with conflicting stability attributes
609609
E0717, // rustc_promotable without stability attribute
610610
// E0721, // `await` keyword
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
An unknown tool name found in scoped lint
2+
3+
Erroneous code example:
4+
5+
```compile_fail,E0710
6+
#[allow(clipp::filter_map)] // error: an unknown tool name found in scoped lint: `clipp::filter_map`
7+
8+
fn main() {
9+
/**
10+
*business logic
11+
*/
12+
}
13+
```
14+
15+
Please verify you didn't misspell the tool's name or that you didn't
16+
forget to import it in you project:
17+
18+
```
19+
#[allow(clippy::filter_map)] // ok!
20+
fn main() {
21+
/**
22+
*business logic
23+
*/
24+
}
25+
```

src/test/ui/unknown-lint-tool-name.stderr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ LL | #[allow(foo::bar)]
3636

3737
error: aborting due to 6 previous errors
3838

39+
For more information about this error, try `rustc --explain E0710`.
40+
41+

0 commit comments

Comments
 (0)