mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-23 19:43:20 +00:00
162 lines
5.4 KiB
Text
162 lines
5.4 KiB
Text
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:22:17
|
|
|
|
|
LL | let x = 22;
|
|
| ^^ help: consider adding suffix: `22_i32`
|
|
|
|
|
= note: `-D clippy::default-numeric-fallback` implied by `-D warnings`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:18
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:21
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:24
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:24:28
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:24:31
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:24:44
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:24:47
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
| ^ help: consider adding suffix: `4_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:25:23
|
|
|
|
|
LL | let x = match 1 {
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:26:13
|
|
|
|
|
LL | 1 => 1,
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:26:18
|
|
|
|
|
LL | 1 => 1,
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:27:18
|
|
|
|
|
LL | _ => 2,
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:46:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:54:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:60:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:68:21
|
|
|
|
|
LL | let y = 1;
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:80:9
|
|
|
|
|
LL | 1
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:86:27
|
|
|
|
|
LL | let f = || -> _ { 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:90:29
|
|
|
|
|
LL | let f = || -> i32 { 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:104:21
|
|
|
|
|
LL | generic_arg(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:107:32
|
|
|
|
|
LL | let x: _ = generic_arg(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:125:28
|
|
|
|
|
LL | GenericStruct { x: 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:128:36
|
|
|
|
|
LL | let _ = GenericStruct { x: 1 };
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:146:24
|
|
|
|
|
LL | GenericEnum::X(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:166:23
|
|
|
|
|
LL | s.generic_arg(1);
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback_i32.rs:176: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: aborting due to 26 previous errors
|
|
|