mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-19 01:24:05 +00:00
175 lines
6.1 KiB
Text
175 lines
6.1 KiB
Text
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:20:17
|
|
|
|
|
LL | let x = 22;
|
|
| ^^ help: consider adding suffix: `22_i32`
|
|
|
|
|
= note: `-D clippy::default-numeric-fallback` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::default_numeric_fallback)]`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:21:18
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:21:21
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:21:24
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:22:28
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:22:31
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:22:44
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:22:47
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
| ^ help: consider adding suffix: `4_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:23:23
|
|
|
|
|
LL | let x = match 1 {
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:24:13
|
|
|
|
|
LL | 1 => 1,
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:24:18
|
|
|
|
|
LL | 1 => 1,
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:25:18
|
|
|
|
|
LL | _ => 2,
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:44:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:52:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:58:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:66:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:82:27
|
|
|
|
|
LL | let f = || -> _ { 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:86:29
|
|
|
|
|
LL | let f = || -> i32 { 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:100:21
|
|
|
|
|
LL | generic_arg(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:103:32
|
|
|
|
|
LL | let x: _ = generic_arg(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:121:28
|
|
|
|
|
LL | GenericStruct { x: 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:124:36
|
|
|
|
|
LL | let _ = GenericStruct { x: 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:142:24
|
|
|
|
|
LL | GenericEnum::X(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:162:23
|
|
|
|
|
LL | s.generic_arg(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:172:25
|
|
|
|
|
LL | inline!(let x = 22;);
|
|
| ^^ help: consider adding suffix: `22_i32`
|
|
|
|
|
= note: this error originates in the macro `__inline_mac_fn_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:214:29
|
|
|
|
|
LL | let data_i32 = vec![1, 2, 3];
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:214:32
|
|
|
|
|
LL | let data_i32 = vec![1, 2, 3];
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:214:35
|
|
|
|
|
LL | let data_i32 = vec![1, 2, 3];
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
error: aborting due to 28 previous errors
|
|
|