2020-10-28 17:36:07 -05:00
|
|
|
#![warn(clippy::internal)]
|
2022-10-23 08:18:45 -05:00
|
|
|
#![allow(clippy::missing_clippy_version_attribute, clippy::unnecessary_def_path)]
|
2020-10-28 17:36:07 -05:00
|
|
|
|
|
|
|
mod paths {
|
|
|
|
// Good path
|
|
|
|
pub const ANY_TRAIT: [&str; 3] = ["std", "any", "Any"];
|
|
|
|
|
|
|
|
// Path to method on inherent impl of a primitive type
|
|
|
|
pub const F32_EPSILON: [&str; 4] = ["core", "f32", "<impl f32>", "EPSILON"];
|
|
|
|
|
|
|
|
// Path to method on inherent impl
|
|
|
|
pub const ARC_PTR_EQ: [&str; 4] = ["alloc", "sync", "Arc", "ptr_eq"];
|
|
|
|
|
|
|
|
// Path with empty segment
|
|
|
|
pub const TRANSMUTE: [&str; 4] = ["core", "intrinsics", "", "transmute"];
|
|
|
|
|
|
|
|
// Path with bad crate
|
|
|
|
pub const BAD_CRATE_PATH: [&str; 2] = ["bad", "path"];
|
|
|
|
|
|
|
|
// Path with bad module
|
|
|
|
pub const BAD_MOD_PATH: [&str; 2] = ["std", "xxx"];
|
2021-01-30 11:06:34 -06:00
|
|
|
|
|
|
|
// Path to method on an enum inherent impl
|
|
|
|
pub const OPTION_IS_SOME: [&str; 4] = ["core", "option", "Option", "is_some"];
|
2020-10-28 17:36:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|