Skip to content

Commit 1d1b6d8

Browse files
committed
Say that diagnostic items are preferred over paths
1 parent 97aa8dc commit 1d1b6d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clippy_lints/src/utils/paths.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//! This module contains paths to types and functions Clippy needs to know
22
//! about.
3+
//!
4+
//! Whenever possible, please consider diagnostic items over hardcoded paths.
5+
//! See <https://github.com/rust-lang/rust-clippy/issues/5393> for more information.
36
47
pub const ANY_TRAIT: [&str; 3] = ["std", "any", "Any"];
58
pub const ARC: [&str; 3] = ["alloc", "sync", "Arc"];

0 commit comments

Comments
 (0)