1 error: usage of `clippy_utils::ty::match_type()` on a type diagnostic item
2 --> $DIR/match_type_on_diag_item.rs:30:17
4 LL | let _ = match_type(cx, ty, &OPTION);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `clippy_utils::ty::is_type_diagnostic_item(cx, ty, sym::Option)`
7 note: the lint level is defined here
8 --> $DIR/match_type_on_diag_item.rs:1:9
10 LL | #![deny(clippy::internal)]
12 = note: `#[deny(clippy::match_type_on_diagnostic_item)]` implied by `#[deny(clippy::internal)]`
14 error: usage of `clippy_utils::ty::match_type()` on a type diagnostic item
15 --> $DIR/match_type_on_diag_item.rs:31:17
17 LL | let _ = match_type(cx, ty, &["core", "result", "Result"]);
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `clippy_utils::ty::is_type_diagnostic_item(cx, ty, sym::Result)`
20 error: usage of `clippy_utils::ty::match_type()` on a type diagnostic item
21 --> $DIR/match_type_on_diag_item.rs:34:17
23 LL | let _ = clippy_utils::ty::match_type(cx, ty, rc_path);
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `clippy_utils::ty::is_type_diagnostic_item(cx, ty, sym::Rc)`
26 error: aborting due to 3 previous errors