]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui-internal/unnecessary_def_path_hardcoded_path.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / src / tools / clippy / tests / ui-internal / unnecessary_def_path_hardcoded_path.stderr
CommitLineData
6522a427
EL
1error: hardcoded path to a diagnostic item
2 --> $DIR/unnecessary_def_path_hardcoded_path.rs:10:36
3 |
4LL | const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"];
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = help: convert all references to use `sym::Deref`
8 = note: `-D clippy::unnecessary-def-path` implied by `-D warnings`
9
2b03887a
FG
10error: hardcoded path to a language item
11 --> $DIR/unnecessary_def_path_hardcoded_path.rs:11:40
12 |
13LL | const DEREF_MUT_TRAIT: [&str; 4] = ["core", "ops", "deref", "DerefMut"];
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 |
16 = help: convert all references to use `LangItem::DerefMut`
2b03887a
FG
17
18error: hardcoded path to a diagnostic item
19 --> $DIR/unnecessary_def_path_hardcoded_path.rs:12:43
20 |
21LL | const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref", "deref"];
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 |
24 = help: convert all references to use `sym::deref_method`
25
2b03887a
FG
26error: aborting due to 3 previous errors
27