error: usage of `utils::match_type()` on a type diagnostic item
  --> $DIR/match_type_on_diag_item.rs:41:17
   |
LL |         let _ = match_type(cx, ty, &paths::VEC);
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym::vec_type)`
   |
note: the lint level is defined here
  --> $DIR/match_type_on_diag_item.rs:1:9
   |
LL | #![deny(clippy::internal)]
   |         ^^^^^^^^^^^^^^^^
   = note: `#[deny(clippy::match_type_on_diagnostic_item)]` implied by `#[deny(clippy::internal)]`

error: usage of `utils::match_type()` on a type diagnostic item
  --> $DIR/match_type_on_diag_item.rs:42:17
   |
LL |         let _ = match_type(cx, ty, &OPTION);
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym::option_type)`

error: usage of `utils::match_type()` on a type diagnostic item
  --> $DIR/match_type_on_diag_item.rs:43:17
   |
LL |         let _ = match_type(cx, ty, &["core", "result", "Result"]);
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym::result_type)`

error: usage of `utils::match_type()` on a type diagnostic item
  --> $DIR/match_type_on_diag_item.rs:46:17
   |
LL |         let _ = utils::match_type(cx, ty, rc_path);
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym::Rc)`

error: aborting due to 4 previous errors

