diff options
| author | bors <bors@rust-lang.org> | 2025-03-21 04:59:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-21 04:59:08 +0000 |
| commit | 4f2ee8ca2ab3e76b5fe509358069904a58bf9083 (patch) | |
| tree | 288e05aaac5f250ee7a7c9341f52a0583c54b08e /tests/ui-internal/unnecessary_def_path_hardcoded_path.rs | |
| parent | 25f1f902f9054fd5405f76764825842f9339e9ab (diff) | |
| parent | c86216ebe708d88dec9772e1f84556f5f529c6c6 (diff) | |
Auto merge of #138761 - flip1995:clippy-subtree-update, r=Manishearth
Clippy subtree update r? `@Manishearth` Cargo.lock update is because of the `ui_test` dependency bump in Clippy.
Diffstat (limited to 'tests/ui-internal/unnecessary_def_path_hardcoded_path.rs')
| -rw-r--r-- | tests/ui-internal/unnecessary_def_path_hardcoded_path.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui-internal/unnecessary_def_path_hardcoded_path.rs b/tests/ui-internal/unnecessary_def_path_hardcoded_path.rs index f6abb3cc3d7..4801d76bd26 100644 --- a/tests/ui-internal/unnecessary_def_path_hardcoded_path.rs +++ b/tests/ui-internal/unnecessary_def_path_hardcoded_path.rs @@ -8,8 +8,11 @@ use rustc_hir::LangItem; fn main() { const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"]; + //~^ unnecessary_def_path const DEREF_MUT_TRAIT: [&str; 4] = ["core", "ops", "deref", "DerefMut"]; + //~^ unnecessary_def_path const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref", "deref"]; + //~^ unnecessary_def_path // Don't lint, not a diagnostic or language item const OPS_MOD: [&str; 2] = ["core", "ops"]; |
