File tree Expand file tree Collapse file tree 1 file changed +35
-7
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 1 file changed +35
-7
lines changed Original file line number Diff line number Diff line change 1
1
An unknown tool name found in scoped lint
2
2
3
- Erroneous code example :
3
+ Erroneous code examples :
4
4
5
5
``` compile_fail,E0710
6
6
#[allow(clipp::filter_map)] // error!`
7
7
fn main() {
8
- /**
9
- *business logic
10
- */
8
+ // business logic
9
+ }
10
+ ```
11
+
12
+ ``` compile_fail,E0710
13
+ #[warn(clipp::filter_map)] // error!`
14
+ fn main() {
15
+ // business logic
16
+ }
17
+ ```
18
+
19
+ ``` compile_fail,E0710
20
+ fn main() {
21
+ #![deny(clipp::filter_map)] //error!
22
+ fn filter() {
23
+ //logic
24
+ }
11
25
}
12
26
```
13
27
@@ -17,8 +31,22 @@ forget to import it in you project:
17
31
```
18
32
#[allow(clippy::filter_map)] // ok!
19
33
fn main() {
20
- /**
21
- *business logic
22
- */
34
+ // business logic
35
+ }
36
+ ```
37
+
38
+ ```
39
+ #[warn(clippy::filter_map)] // ok!
40
+ fn main() {
41
+ // business logic
42
+ }
43
+ ```
44
+
45
+ ```
46
+ fn main() {
47
+ #![deny(clippy::filter_map)] // ok!
48
+ fn filter() {
49
+ //logic
50
+ }
23
51
}
24
52
```
You can’t perform that action at this time.
0 commit comments