about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-21 22:29:19 +0000
committerbors <bors@rust-lang.org>2023-07-21 22:29:19 +0000
commit58df1e64cb955c27eeab74b375b27678d6518216 (patch)
tree7e0c78617db91abb36a7ab8af1eedbc560c22a13 /compiler/rustc_codegen_gcc/example/alloc_example.rs
parentd2c9047a927758d6788c610d76695036ea7b57e2 (diff)
parent9cf1509b25889fad9743777602d472ffc8bd3ec2 (diff)
downloadrust-58df1e64cb955c27eeab74b375b27678d6518216.tar.gz
rust-58df1e64cb955c27eeab74b375b27678d6518216.zip
Auto merge of #11003 - Centri3:absolute_path, r=Alexendoo,blyxyas
New lint [`absolute_paths`]

Closes #10568

Maybe we should make the max segments allowed a configuration option? I see quite a bit of 3-segment paths in clippy, and while I think only really `<mod/type>::<item>` or `<item>` should be (usually) used but anything above may be too widespread :confused:

PS, despite this being "max segments allowed" it only lints if it's absolute, as is the point of the lint, e.g., `std::io::ErrorKind::etc` is linted but `io::ErrorKind::NotFound::etc` isn't

changelog: New lint [`absolute_paths`]
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions