mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 03:53:20 +00:00
c1c2c3e60c
Suppress the `min_ident_chars` warning for items whose name we cannot control. Do not warn for `use a::b`, but warn for `use a::b as c`, since `c` is a local identifier. Fixes #12232
53 lines
1.2 KiB
Text
53 lines
1.2 KiB
Text
error: this ident is too short (1 <= 3)
|
|
--> $DIR/min_ident_chars.rs:6:41
|
|
|
|
|
LL | use extern_types::{Aaa, LONGER, M, N as W};
|
|
| ^
|
|
|
|
|
= note: `-D clippy::min-ident-chars` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::min_ident_chars)]`
|
|
|
|
error: this ident is too short (1 <= 3)
|
|
--> $DIR/min_ident_chars.rs:8:11
|
|
|
|
|
LL | pub const N: u32 = 0;
|
|
| ^
|
|
|
|
error: this ident is too short (3 <= 3)
|
|
--> $DIR/min_ident_chars.rs:13:5
|
|
|
|
|
LL | aaa: Aaa,
|
|
| ^^^
|
|
|
|
error: this ident is too short (3 <= 3)
|
|
--> $DIR/min_ident_chars.rs:18:9
|
|
|
|
|
LL | let vvv = 1;
|
|
| ^^^
|
|
|
|
error: this ident is too short (3 <= 3)
|
|
--> $DIR/min_ident_chars.rs:19:9
|
|
|
|
|
LL | let uuu = 1;
|
|
| ^^^
|
|
|
|
error: this ident is too short (1 <= 3)
|
|
--> $DIR/min_ident_chars.rs:20:14
|
|
|
|
|
LL | let (mut a, mut b) = (1, 2);
|
|
| ^
|
|
|
|
error: this ident is too short (1 <= 3)
|
|
--> $DIR/min_ident_chars.rs:20:21
|
|
|
|
|
LL | let (mut a, mut b) = (1, 2);
|
|
| ^
|
|
|
|
error: this ident is too short (1 <= 3)
|
|
--> $DIR/min_ident_chars.rs:21:9
|
|
|
|
|
LL | for i in 0..1000 {}
|
|
| ^
|
|
|
|
error: aborting due to 8 previous errors
|
|
|