mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
f9509d3574
* Check the path length first * Use `is_from_proc_macro` * Use symbols instead of strings when checking crate names
16 lines
370 B
Rust
16 lines
370 B
Rust
//@revisions: default allow_crates
|
|
//@[default]rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/absolute_paths/default
|
|
//@[allow_crates]rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/absolute_paths/allow_crates
|
|
//@edition:2015
|
|
|
|
#![deny(clippy::absolute_paths)]
|
|
|
|
mod m1 {
|
|
pub mod m2 {
|
|
pub struct X;
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let _ = ::m1::m2::X; //~[default] absolute_paths
|
|
}
|