mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +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:21: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:22: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:22: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:22: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:23: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:23: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:23: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:23: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:24: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:25:13
|
|
|
|
|
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 | 1 => 1,
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:26:18
|
|
|
|
|
LL | _ => 2,
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:45:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:53:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:59:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:67:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:83:27
|
|
|
|
|
LL | let f = || -> _ { 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:87: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:101:21
|
|
|
|
|
LL | generic_arg(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:104: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:122:28
|
|
|
|
|
LL | GenericStruct { x: 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:125: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:143:24
|
|
|
|
|
LL | GenericEnum::X(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> tests/ui/default_numeric_fallback_i32.rs:163: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:173: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:215: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:215: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:215:35
|
|
|
|
|
LL | let data_i32 = vec![1, 2, 3];
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
error: aborting due to 28 previous errors
|
|
|