1
- error: usage of `utils::match_type() on a type diagnostic item`
1
+ error: usage of `utils::match_type()` on a type diagnostic item
2
2
--> $DIR/match_type_on_diag_item.rs:41:17
3
3
|
4
4
LL | let _ = match_type(cx, ty, &paths::VEC);
@@ -11,19 +11,19 @@ LL | #![deny(clippy::internal)]
11
11
| ^^^^^^^^^^^^^^^^
12
12
= note: `#[deny(clippy::match_type_on_diagnostic_item)]` implied by `#[deny(clippy::internal)]`
13
13
14
- error: usage of `utils::match_type() on a type diagnostic item`
14
+ error: usage of `utils::match_type()` on a type diagnostic item
15
15
--> $DIR/match_type_on_diag_item.rs:42:17
16
16
|
17
17
LL | let _ = match_type(cx, ty, &OPTION);
18
18
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym!(option_type))`
19
19
20
- error: usage of `utils::match_type() on a type diagnostic item`
20
+ error: usage of `utils::match_type()` on a type diagnostic item
21
21
--> $DIR/match_type_on_diag_item.rs:43:17
22
22
|
23
23
LL | let _ = match_type(cx, ty, &["core", "result", "Result"]);
24
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym!(result_type))`
25
25
26
- error: usage of `utils::match_type() on a type diagnostic item`
26
+ error: usage of `utils::match_type()` on a type diagnostic item
27
27
--> $DIR/match_type_on_diag_item.rs:46:17
28
28
|
29
29
LL | let _ = utils::match_type(cx, ty, rc_path);
0 commit comments