diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/endian_bytes.rs | 16 | ||||
| -rw-r--r-- | tests/ui/endian_bytes.stderr | 384 |
2 files changed, 200 insertions, 200 deletions
diff --git a/tests/ui/endian_bytes.rs b/tests/ui/endian_bytes.rs index ccee8e20a3c..6bf014fc809 100644 --- a/tests/ui/endian_bytes.rs +++ b/tests/ui/endian_bytes.rs @@ -65,7 +65,7 @@ macro_rules! fn_body { } // bless breaks if I use fn_body too much (oops) -macro_rules! fn_body_small { +macro_rules! fn_body_smol { () => { 2u8.to_ne_bytes(); u8::from_ne_bytes(todo!()); @@ -93,35 +93,35 @@ fn big() { fn_body!(); } #[rustfmt::skip] #[warn(clippy::host_endian_bytes)] #[warn(clippy::big_endian_bytes)] -fn host_encourage_little() { fn_body_small!(); } +fn host_encourage_little() { fn_body_smol!(); } #[rustfmt::skip] #[warn(clippy::host_endian_bytes)] #[warn(clippy::little_endian_bytes)] -fn host_encourage_big() { fn_body_small!(); } +fn host_encourage_big() { fn_body_smol!(); } #[rustfmt::skip] #[warn(clippy::host_endian_bytes)] #[warn(clippy::little_endian_bytes)] #[warn(clippy::big_endian_bytes)] -fn no_help() { fn_body_small!(); } +fn no_help() { fn_body_smol!(); } #[rustfmt::skip] #[warn(clippy::little_endian_bytes)] #[warn(clippy::big_endian_bytes)] -fn little_encourage_host() { fn_body_small!(); } +fn little_encourage_host() { fn_body_smol!(); } #[rustfmt::skip] #[warn(clippy::host_endian_bytes)] #[warn(clippy::little_endian_bytes)] -fn little_encourage_big() { fn_body_small!(); } +fn little_encourage_big() { fn_body_smol!(); } #[rustfmt::skip] #[warn(clippy::big_endian_bytes)] #[warn(clippy::little_endian_bytes)] -fn big_encourage_host() { fn_body_small!(); } +fn big_encourage_host() { fn_body_smol!(); } #[rustfmt::skip] #[warn(clippy::host_endian_bytes)] #[warn(clippy::big_endian_bytes)] -fn big_encourage_little() { fn_body_small!(); } +fn big_encourage_little() { fn_body_smol!(); } diff --git a/tests/ui/endian_bytes.stderr b/tests/ui/endian_bytes.stderr index ff8d1a98f4f..5e64ea5b5ab 100644 --- a/tests/ui/endian_bytes.stderr +++ b/tests/ui/endian_bytes.stderr @@ -1,4 +1,4 @@ -error: usage of the method `to_ne_bytes` +error: usage of the `u8::to_ne_bytes` method --> $DIR/endian_bytes.rs:7:9 | LL | 2u8.to_ne_bytes(); @@ -11,7 +11,7 @@ LL | fn host() { fn_body!(); } = note: `-D clippy::host-endian-bytes` implied by `-D warnings` = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `i8::to_ne_bytes` method --> $DIR/endian_bytes.rs:8:9 | LL | 2i8.to_ne_bytes(); @@ -23,7 +23,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `u16::to_ne_bytes` method --> $DIR/endian_bytes.rs:9:9 | LL | 2u16.to_ne_bytes(); @@ -35,7 +35,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `i16::to_ne_bytes` method --> $DIR/endian_bytes.rs:10:9 | LL | 2i16.to_ne_bytes(); @@ -47,7 +47,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `u32::to_ne_bytes` method --> $DIR/endian_bytes.rs:11:9 | LL | 2u32.to_ne_bytes(); @@ -59,7 +59,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `i32::to_ne_bytes` method --> $DIR/endian_bytes.rs:12:9 | LL | 2i32.to_ne_bytes(); @@ -71,7 +71,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `u64::to_ne_bytes` method --> $DIR/endian_bytes.rs:13:9 | LL | 2u64.to_ne_bytes(); @@ -83,7 +83,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `i64::to_ne_bytes` method --> $DIR/endian_bytes.rs:14:9 | LL | 2i64.to_ne_bytes(); @@ -95,7 +95,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `u128::to_ne_bytes` method --> $DIR/endian_bytes.rs:15:9 | LL | 2u128.to_ne_bytes(); @@ -107,7 +107,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `i128::to_ne_bytes` method --> $DIR/endian_bytes.rs:16:9 | LL | 2i128.to_ne_bytes(); @@ -119,7 +119,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `f32::to_ne_bytes` method --> $DIR/endian_bytes.rs:17:9 | LL | 2.0f32.to_ne_bytes(); @@ -131,7 +131,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `f64::to_ne_bytes` method --> $DIR/endian_bytes.rs:18:9 | LL | 2.0f64.to_ne_bytes(); @@ -143,7 +143,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `usize::to_ne_bytes` method --> $DIR/endian_bytes.rs:19:9 | LL | 2usize.to_ne_bytes(); @@ -155,7 +155,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `isize::to_ne_bytes` method --> $DIR/endian_bytes.rs:20:9 | LL | 2isize.to_ne_bytes(); @@ -167,7 +167,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u8::from_ne_bytes` --> $DIR/endian_bytes.rs:21:9 | LL | u8::from_ne_bytes(todo!()); @@ -179,7 +179,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `i8::from_ne_bytes` --> $DIR/endian_bytes.rs:22:9 | LL | i8::from_ne_bytes(todo!()); @@ -191,7 +191,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u16::from_ne_bytes` --> $DIR/endian_bytes.rs:23:9 | LL | u16::from_ne_bytes(todo!()); @@ -203,7 +203,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `i16::from_ne_bytes` --> $DIR/endian_bytes.rs:24:9 | LL | i16::from_ne_bytes(todo!()); @@ -215,7 +215,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u32::from_ne_bytes` --> $DIR/endian_bytes.rs:25:9 | LL | u32::from_ne_bytes(todo!()); @@ -227,7 +227,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `i32::from_ne_bytes` --> $DIR/endian_bytes.rs:26:9 | LL | i32::from_ne_bytes(todo!()); @@ -239,7 +239,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u64::from_ne_bytes` --> $DIR/endian_bytes.rs:27:9 | LL | u64::from_ne_bytes(todo!()); @@ -251,7 +251,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `i64::from_ne_bytes` --> $DIR/endian_bytes.rs:28:9 | LL | i64::from_ne_bytes(todo!()); @@ -263,7 +263,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u128::from_ne_bytes` --> $DIR/endian_bytes.rs:29:9 | LL | u128::from_ne_bytes(todo!()); @@ -275,7 +275,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `i128::from_ne_bytes` --> $DIR/endian_bytes.rs:30:9 | LL | i128::from_ne_bytes(todo!()); @@ -287,7 +287,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `usize::from_ne_bytes` --> $DIR/endian_bytes.rs:31:9 | LL | usize::from_ne_bytes(todo!()); @@ -299,7 +299,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `isize::from_ne_bytes` --> $DIR/endian_bytes.rs:32:9 | LL | isize::from_ne_bytes(todo!()); @@ -311,7 +311,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `f32::from_ne_bytes` --> $DIR/endian_bytes.rs:33:9 | LL | f32::from_ne_bytes(todo!()); @@ -323,7 +323,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `f64::from_ne_bytes` --> $DIR/endian_bytes.rs:34:9 | LL | f64::from_ne_bytes(todo!()); @@ -335,7 +335,7 @@ LL | fn host() { fn_body!(); } = help: specify the desired endianness explicitly = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u8::to_le_bytes` method --> $DIR/endian_bytes.rs:36:9 | LL | 2u8.to_le_bytes(); @@ -348,7 +348,7 @@ LL | fn little() { fn_body!(); } = note: `-D clippy::little-endian-bytes` implied by `-D warnings` = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `i8::to_le_bytes` method --> $DIR/endian_bytes.rs:37:9 | LL | 2i8.to_le_bytes(); @@ -360,7 +360,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u16::to_le_bytes` method --> $DIR/endian_bytes.rs:38:9 | LL | 2u16.to_le_bytes(); @@ -372,7 +372,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `i16::to_le_bytes` method --> $DIR/endian_bytes.rs:39:9 | LL | 2i16.to_le_bytes(); @@ -384,7 +384,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u32::to_le_bytes` method --> $DIR/endian_bytes.rs:40:9 | LL | 2u32.to_le_bytes(); @@ -396,7 +396,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `i32::to_le_bytes` method --> $DIR/endian_bytes.rs:41:9 | LL | 2i32.to_le_bytes(); @@ -408,7 +408,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u64::to_le_bytes` method --> $DIR/endian_bytes.rs:42:9 | LL | 2u64.to_le_bytes(); @@ -420,7 +420,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `i64::to_le_bytes` method --> $DIR/endian_bytes.rs:43:9 | LL | 2i64.to_le_bytes(); @@ -432,7 +432,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u128::to_le_bytes` method --> $DIR/endian_bytes.rs:44:9 | LL | 2u128.to_le_bytes(); @@ -444,7 +444,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `i128::to_le_bytes` method --> $DIR/endian_bytes.rs:45:9 | LL | 2i128.to_le_bytes(); @@ -456,7 +456,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `f32::to_le_bytes` method --> $DIR/endian_bytes.rs:46:9 | LL | 2.0f32.to_le_bytes(); @@ -468,7 +468,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `f64::to_le_bytes` method --> $DIR/endian_bytes.rs:47:9 | LL | 2.0f64.to_le_bytes(); @@ -480,7 +480,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `usize::to_le_bytes` method --> $DIR/endian_bytes.rs:48:9 | LL | 2usize.to_le_bytes(); @@ -492,7 +492,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `isize::to_le_bytes` method --> $DIR/endian_bytes.rs:49:9 | LL | 2isize.to_le_bytes(); @@ -504,7 +504,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u8::from_le_bytes` --> $DIR/endian_bytes.rs:50:9 | LL | u8::from_le_bytes(todo!()); @@ -516,7 +516,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `i8::from_le_bytes` --> $DIR/endian_bytes.rs:51:9 | LL | i8::from_le_bytes(todo!()); @@ -528,7 +528,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u16::from_le_bytes` --> $DIR/endian_bytes.rs:52:9 | LL | u16::from_le_bytes(todo!()); @@ -540,7 +540,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `i16::from_le_bytes` --> $DIR/endian_bytes.rs:53:9 | LL | i16::from_le_bytes(todo!()); @@ -552,7 +552,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u32::from_le_bytes` --> $DIR/endian_bytes.rs:54:9 | LL | u32::from_le_bytes(todo!()); @@ -564,7 +564,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `i32::from_le_bytes` --> $DIR/endian_bytes.rs:55:9 | LL | i32::from_le_bytes(todo!()); @@ -576,7 +576,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u64::from_le_bytes` --> $DIR/endian_bytes.rs:56:9 | LL | u64::from_le_bytes(todo!()); @@ -588,7 +588,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `i64::from_le_bytes` --> $DIR/endian_bytes.rs:57:9 | LL | i64::from_le_bytes(todo!()); @@ -600,7 +600,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u128::from_le_bytes` --> $DIR/endian_bytes.rs:58:9 | LL | u128::from_le_bytes(todo!()); @@ -612,7 +612,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `i128::from_le_bytes` --> $DIR/endian_bytes.rs:59:9 | LL | i128::from_le_bytes(todo!()); @@ -624,7 +624,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `usize::from_le_bytes` --> $DIR/endian_bytes.rs:60:9 | LL | usize::from_le_bytes(todo!()); @@ -636,7 +636,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `isize::from_le_bytes` --> $DIR/endian_bytes.rs:61:9 | LL | isize::from_le_bytes(todo!()); @@ -648,7 +648,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `f32::from_le_bytes` --> $DIR/endian_bytes.rs:62:9 | LL | f32::from_le_bytes(todo!()); @@ -660,7 +660,7 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `f64::from_le_bytes` --> $DIR/endian_bytes.rs:63:9 | LL | f64::from_le_bytes(todo!()); @@ -672,360 +672,360 @@ LL | fn little() { fn_body!(); } = help: use the native endianness instead = note: this error originates in the macro `fn_body` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `u8::to_ne_bytes` method --> $DIR/endian_bytes.rs:70:9 | LL | 2u8.to_ne_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn host_encourage_little() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn host_encourage_little() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `to_le_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::to_le_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u8::from_ne_bytes` --> $DIR/endian_bytes.rs:71:9 | LL | u8::from_ne_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn host_encourage_little() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn host_encourage_little() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `from_le_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::from_le_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_be_bytes` +error: usage of the `u8::to_be_bytes` method --> $DIR/endian_bytes.rs:76:9 | LL | 2u8.to_be_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn host_encourage_little() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn host_encourage_little() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `to_le_bytes` instead + = help: use `u8::to_le_bytes` instead = note: `-D clippy::big-endian-bytes` implied by `-D warnings` - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_be_bytes` +error: usage of the function `u8::from_be_bytes` --> $DIR/endian_bytes.rs:77:9 | LL | u8::from_be_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn host_encourage_little() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn host_encourage_little() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `from_le_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::from_le_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `u8::to_ne_bytes` method --> $DIR/endian_bytes.rs:70:9 | LL | 2u8.to_ne_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn host_encourage_big() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn host_encourage_big() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `to_be_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::to_be_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u8::from_ne_bytes` --> $DIR/endian_bytes.rs:71:9 | LL | u8::from_ne_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn host_encourage_big() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn host_encourage_big() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `from_be_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::from_be_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u8::to_le_bytes` method --> $DIR/endian_bytes.rs:73:9 | LL | 2u8.to_le_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn host_encourage_big() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn host_encourage_big() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `to_be_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::to_be_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u8::from_le_bytes` --> $DIR/endian_bytes.rs:74:9 | LL | u8::from_le_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn host_encourage_big() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn host_encourage_big() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `from_be_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::from_be_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `u8::to_ne_bytes` method --> $DIR/endian_bytes.rs:70:9 | LL | 2u8.to_ne_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn no_help() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn no_help() { fn_body_smol!(); } + | --------------- in this macro invocation | - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u8::from_ne_bytes` --> $DIR/endian_bytes.rs:71:9 | LL | u8::from_ne_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn no_help() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn no_help() { fn_body_smol!(); } + | --------------- in this macro invocation | - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u8::to_le_bytes` method --> $DIR/endian_bytes.rs:73:9 | LL | 2u8.to_le_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn no_help() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn no_help() { fn_body_smol!(); } + | --------------- in this macro invocation | - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u8::from_le_bytes` --> $DIR/endian_bytes.rs:74:9 | LL | u8::from_le_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn no_help() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn no_help() { fn_body_smol!(); } + | --------------- in this macro invocation | - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_be_bytes` +error: usage of the `u8::to_be_bytes` method --> $DIR/endian_bytes.rs:76:9 | LL | 2u8.to_be_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn no_help() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn no_help() { fn_body_smol!(); } + | --------------- in this macro invocation | - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_be_bytes` +error: usage of the function `u8::from_be_bytes` --> $DIR/endian_bytes.rs:77:9 | LL | u8::from_be_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn no_help() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn no_help() { fn_body_smol!(); } + | --------------- in this macro invocation | - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u8::to_le_bytes` method --> $DIR/endian_bytes.rs:73:9 | LL | 2u8.to_le_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn little_encourage_host() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn little_encourage_host() { fn_body_smol!(); } + | --------------- in this macro invocation | = help: use the native endianness instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u8::from_le_bytes` --> $DIR/endian_bytes.rs:74:9 | LL | u8::from_le_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn little_encourage_host() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn little_encourage_host() { fn_body_smol!(); } + | --------------- in this macro invocation | = help: use the native endianness instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_be_bytes` +error: usage of the `u8::to_be_bytes` method --> $DIR/endian_bytes.rs:76:9 | LL | 2u8.to_be_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn little_encourage_host() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn little_encourage_host() { fn_body_smol!(); } + | --------------- in this macro invocation | = help: use the native endianness instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_be_bytes` +error: usage of the function `u8::from_be_bytes` --> $DIR/endian_bytes.rs:77:9 | LL | u8::from_be_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn little_encourage_host() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn little_encourage_host() { fn_body_smol!(); } + | --------------- in this macro invocation | = help: use the native endianness instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `u8::to_ne_bytes` method --> $DIR/endian_bytes.rs:70:9 | LL | 2u8.to_ne_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn little_encourage_big() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn little_encourage_big() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `to_be_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::to_be_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u8::from_ne_bytes` --> $DIR/endian_bytes.rs:71:9 | LL | u8::from_ne_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn little_encourage_big() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn little_encourage_big() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `from_be_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::from_be_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u8::to_le_bytes` method --> $DIR/endian_bytes.rs:73:9 | LL | 2u8.to_le_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn little_encourage_big() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn little_encourage_big() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `to_be_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::to_be_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u8::from_le_bytes` --> $DIR/endian_bytes.rs:74:9 | LL | u8::from_le_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn little_encourage_big() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn little_encourage_big() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `from_be_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::from_be_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_le_bytes` +error: usage of the `u8::to_le_bytes` method --> $DIR/endian_bytes.rs:73:9 | LL | 2u8.to_le_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn big_encourage_host() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn big_encourage_host() { fn_body_smol!(); } + | --------------- in this macro invocation | = help: use the native endianness instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_le_bytes` +error: usage of the function `u8::from_le_bytes` --> $DIR/endian_bytes.rs:74:9 | LL | u8::from_le_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn big_encourage_host() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn big_encourage_host() { fn_body_smol!(); } + | --------------- in this macro invocation | = help: use the native endianness instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_be_bytes` +error: usage of the `u8::to_be_bytes` method --> $DIR/endian_bytes.rs:76:9 | LL | 2u8.to_be_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn big_encourage_host() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn big_encourage_host() { fn_body_smol!(); } + | --------------- in this macro invocation | = help: use the native endianness instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_be_bytes` +error: usage of the function `u8::from_be_bytes` --> $DIR/endian_bytes.rs:77:9 | LL | u8::from_be_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn big_encourage_host() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn big_encourage_host() { fn_body_smol!(); } + | --------------- in this macro invocation | = help: use the native endianness instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_ne_bytes` +error: usage of the `u8::to_ne_bytes` method --> $DIR/endian_bytes.rs:70:9 | LL | 2u8.to_ne_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn big_encourage_little() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn big_encourage_little() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `to_le_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::to_le_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_ne_bytes` +error: usage of the function `u8::from_ne_bytes` --> $DIR/endian_bytes.rs:71:9 | LL | u8::from_ne_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn big_encourage_little() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn big_encourage_little() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `from_le_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::from_le_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `to_be_bytes` +error: usage of the `u8::to_be_bytes` method --> $DIR/endian_bytes.rs:76:9 | LL | 2u8.to_be_bytes(); | ^^^^^^^^^^^^^^^^^ ... -LL | fn big_encourage_little() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn big_encourage_little() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `to_le_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::to_le_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) -error: usage of the method `from_be_bytes` +error: usage of the function `u8::from_be_bytes` --> $DIR/endian_bytes.rs:77:9 | LL | u8::from_be_bytes(todo!()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... -LL | fn big_encourage_little() { fn_body_small!(); } - | ---------------- in this macro invocation +LL | fn big_encourage_little() { fn_body_smol!(); } + | --------------- in this macro invocation | - = help: use `from_le_bytes` instead - = note: this error originates in the macro `fn_body_small` (in Nightly builds, run with -Z macro-backtrace for more info) + = help: use `u8::from_le_bytes` instead + = note: this error originates in the macro `fn_body_smol` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to 86 previous errors |
