]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-internal/match_type_on_diag_item.stderr
Auto merge of #88354 - Jmc18134:hint-space-pauth-opt, r=nagisa
[rust.git] / src / tools / clippy / tests / ui-internal / match_type_on_diag_item.stderr
1 error: usage of `clippy_utils::ty::match_type()` on a type diagnostic item
2   --> $DIR/match_type_on_diag_item.rs:31:17
3    |
4 LL |         let _ = match_type(cx, ty, &OPTION);
5    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `clippy_utils::ty::is_type_diagnostic_item(cx, ty, sym::Option)`
6    |
7 note: the lint level is defined here
8   --> $DIR/match_type_on_diag_item.rs:1:9
9    |
10 LL | #![deny(clippy::internal)]
11    |         ^^^^^^^^^^^^^^^^
12    = note: `#[deny(clippy::match_type_on_diagnostic_item)]` implied by `#[deny(clippy::internal)]`
13
14 error: usage of `clippy_utils::ty::match_type()` on a type diagnostic item
15   --> $DIR/match_type_on_diag_item.rs:32:17
16    |
17 LL |         let _ = match_type(cx, ty, &["core", "result", "Result"]);
18    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `clippy_utils::ty::is_type_diagnostic_item(cx, ty, sym::Result)`
19
20 error: usage of `clippy_utils::ty::match_type()` on a type diagnostic item
21   --> $DIR/match_type_on_diag_item.rs:35:17
22    |
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)`
25
26 error: aborting due to 3 previous errors
27