blob: a00126ea5ac3e8fadfaa13c2e1c85fcf733733d2 [file] [edit]
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:12:21
|
LL | let _ = 0u8.to_ne_bytes();
| ^^^^^^^^^^^
|
= note: `-D clippy::host-endian-bytes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::host_endian_bytes)]`
help: convert to little endian
|
LL - let _ = 0u8.to_ne_bytes();
LL + let _ = 0u8.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0u8.to_ne_bytes();
LL + let _ = 0u8.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:13:22
|
LL | let _ = 0u16.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0u16.to_ne_bytes();
LL + let _ = 0u16.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0u16.to_ne_bytes();
LL + let _ = 0u16.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:14:22
|
LL | let _ = 0u32.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0u32.to_ne_bytes();
LL + let _ = 0u32.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0u32.to_ne_bytes();
LL + let _ = 0u32.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:15:22
|
LL | let _ = 0u64.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0u64.to_ne_bytes();
LL + let _ = 0u64.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0u64.to_ne_bytes();
LL + let _ = 0u64.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:16:23
|
LL | let _ = 0u128.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0u128.to_ne_bytes();
LL + let _ = 0u128.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0u128.to_ne_bytes();
LL + let _ = 0u128.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:17:24
|
LL | let _ = 0usize.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0usize.to_ne_bytes();
LL + let _ = 0usize.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0usize.to_ne_bytes();
LL + let _ = 0usize.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:19:21
|
LL | let _ = 0i8.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0i8.to_ne_bytes();
LL + let _ = 0i8.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0i8.to_ne_bytes();
LL + let _ = 0i8.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:20:22
|
LL | let _ = 0i16.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0i16.to_ne_bytes();
LL + let _ = 0i16.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0i16.to_ne_bytes();
LL + let _ = 0i16.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:21:22
|
LL | let _ = 0i32.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0i32.to_ne_bytes();
LL + let _ = 0i32.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0i32.to_ne_bytes();
LL + let _ = 0i32.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:22:22
|
LL | let _ = 0i64.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0i64.to_ne_bytes();
LL + let _ = 0i64.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0i64.to_ne_bytes();
LL + let _ = 0i64.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:23:23
|
LL | let _ = 0i128.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0i128.to_ne_bytes();
LL + let _ = 0i128.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0i128.to_ne_bytes();
LL + let _ = 0i128.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:24:24
|
LL | let _ = 0isize.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0isize.to_ne_bytes();
LL + let _ = 0isize.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0isize.to_ne_bytes();
LL + let _ = 0isize.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:26:22
|
LL | let _ = 0f16.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0f16.to_ne_bytes();
LL + let _ = 0f16.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0f16.to_ne_bytes();
LL + let _ = 0f16.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:27:22
|
LL | let _ = 0f32.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0f32.to_ne_bytes();
LL + let _ = 0f32.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0f32.to_ne_bytes();
LL + let _ = 0f32.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:28:22
|
LL | let _ = 0f64.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0f64.to_ne_bytes();
LL + let _ = 0f64.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0f64.to_ne_bytes();
LL + let _ = 0f64.to_be_bytes();
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:29:23
|
LL | let _ = 0f128.to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0f128.to_ne_bytes();
LL + let _ = 0f128.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0f128.to_ne_bytes();
LL + let _ = 0f128.to_be_bytes();
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:31:21
|
LL | let _ = u8::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = u8::from_ne_bytes([0; _]);
LL + let _ = u8::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = u8::from_ne_bytes([0; _]);
LL + let _ = u8::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:32:22
|
LL | let _ = u16::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = u16::from_ne_bytes([0; _]);
LL + let _ = u16::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = u16::from_ne_bytes([0; _]);
LL + let _ = u16::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:33:22
|
LL | let _ = u32::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = u32::from_ne_bytes([0; _]);
LL + let _ = u32::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = u32::from_ne_bytes([0; _]);
LL + let _ = u32::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:34:22
|
LL | let _ = u64::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = u64::from_ne_bytes([0; _]);
LL + let _ = u64::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = u64::from_ne_bytes([0; _]);
LL + let _ = u64::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:35:23
|
LL | let _ = u128::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = u128::from_ne_bytes([0; _]);
LL + let _ = u128::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = u128::from_ne_bytes([0; _]);
LL + let _ = u128::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:36:24
|
LL | let _ = usize::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = usize::from_ne_bytes([0; _]);
LL + let _ = usize::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = usize::from_ne_bytes([0; _]);
LL + let _ = usize::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:38:21
|
LL | let _ = i8::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = i8::from_ne_bytes([0; _]);
LL + let _ = i8::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = i8::from_ne_bytes([0; _]);
LL + let _ = i8::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:39:22
|
LL | let _ = i16::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = i16::from_ne_bytes([0; _]);
LL + let _ = i16::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = i16::from_ne_bytes([0; _]);
LL + let _ = i16::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:40:22
|
LL | let _ = i32::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = i32::from_ne_bytes([0; _]);
LL + let _ = i32::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = i32::from_ne_bytes([0; _]);
LL + let _ = i32::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:41:22
|
LL | let _ = i64::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = i64::from_ne_bytes([0; _]);
LL + let _ = i64::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = i64::from_ne_bytes([0; _]);
LL + let _ = i64::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:42:23
|
LL | let _ = i128::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = i128::from_ne_bytes([0; _]);
LL + let _ = i128::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = i128::from_ne_bytes([0; _]);
LL + let _ = i128::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:43:24
|
LL | let _ = isize::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = isize::from_ne_bytes([0; _]);
LL + let _ = isize::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = isize::from_ne_bytes([0; _]);
LL + let _ = isize::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:45:22
|
LL | let _ = f16::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = f16::from_ne_bytes([0; _]);
LL + let _ = f16::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = f16::from_ne_bytes([0; _]);
LL + let _ = f16::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:46:22
|
LL | let _ = f32::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = f32::from_ne_bytes([0; _]);
LL + let _ = f32::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = f32::from_ne_bytes([0; _]);
LL + let _ = f32::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:47:22
|
LL | let _ = f64::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = f64::from_ne_bytes([0; _]);
LL + let _ = f64::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = f64::from_ne_bytes([0; _]);
LL + let _ = f64::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:48:23
|
LL | let _ = f128::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = f128::from_ne_bytes([0; _]);
LL + let _ = f128::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = f128::from_ne_bytes([0; _]);
LL + let _ = f128::from_be_bytes([0; _]);
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:52:21
|
LL | let _ = u8::from_ne_bytes;
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = u8::from_ne_bytes;
LL + let _ = u8::from_le_bytes;
|
help: convert from big endian
|
LL - let _ = u8::from_ne_bytes;
LL + let _ = u8::from_be_bytes;
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:53:21
|
LL | let _ = u8::to_ne_bytes;
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = u8::to_ne_bytes;
LL + let _ = u8::to_le_bytes;
|
help: convert to big endian
|
LL - let _ = u8::to_ne_bytes;
LL + let _ = u8::to_be_bytes;
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:58:21
|
LL | let _ = 0u8.to_ne_bytes();
| ^^^^^^^^^^^ help: convert to little endian: `to_le_bytes`
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:59:21
|
LL | let _ = 0i8.to_ne_bytes();
| ^^^^^^^^^^^ help: convert to little endian: `to_le_bytes`
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:60:21
|
LL | let _ = u8::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^ help: convert from little endian: `from_le_bytes`
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:61:21
|
LL | let _ = i8::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^ help: convert from little endian: `from_le_bytes`
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:66:21
|
LL | let _ = 0u8.to_ne_bytes();
| ^^^^^^^^^^^ help: convert to big endian: `to_be_bytes`
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:67:21
|
LL | let _ = 0i8.to_ne_bytes();
| ^^^^^^^^^^^ help: convert to big endian: `to_be_bytes`
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:68:21
|
LL | let _ = u8::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^ help: convert from big endian: `from_be_bytes`
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:69:21
|
LL | let _ = i8::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^ help: convert from big endian: `from_be_bytes`
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:74:25
|
LL | let _ = 0u8.to_ne_bytes();
| ^^^^^^^^^^^
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
help: convert to little endian
|
LL - let _ = 0u8.to_ne_bytes();
LL + let _ = 0u8.to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0u8.to_ne_bytes();
LL + let _ = 0u8.to_be_bytes();
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:75:25
|
LL | let _ = u8::from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
help: convert from little endian
|
LL - let _ = u8::from_ne_bytes([0; _]);
LL + let _ = u8::from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = u8::from_ne_bytes([0; _]);
LL + let _ = u8::from_be_bytes([0; _]);
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:76:26
|
LL | let _ = 0u8.$to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0u8.$to_ne_bytes();
LL + let _ = 0u8.$to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0u8.$to_ne_bytes();
LL + let _ = 0u8.$to_be_bytes();
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:77:26
|
LL | let _ = u8::$from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = u8::$from_ne_bytes([0; _]);
LL + let _ = u8::$from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = u8::$from_ne_bytes([0; _]);
LL + let _ = u8::$from_be_bytes([0; _]);
|
error: use of `to_ne_bytes`
--> tests/ui/host_endian_bytes.rs:83:26
|
LL | let _ = 0u8.$to_ne_bytes();
| ^^^^^^^^^^^
|
help: convert to little endian
|
LL - let _ = 0u8.$to_ne_bytes();
LL + let _ = 0u8.$to_le_bytes();
|
help: convert to big endian
|
LL - let _ = 0u8.$to_ne_bytes();
LL + let _ = 0u8.$to_be_bytes();
|
error: use of `from_ne_bytes`
--> tests/ui/host_endian_bytes.rs:84:26
|
LL | let _ = u8::$from_ne_bytes([0; _]);
| ^^^^^^^^^^^^^
|
help: convert from little endian
|
LL - let _ = u8::$from_ne_bytes([0; _]);
LL + let _ = u8::$from_le_bytes([0; _]);
|
help: convert from big endian
|
LL - let _ = u8::$from_ne_bytes([0; _]);
LL + let _ = u8::$from_be_bytes([0; _]);
|
error: aborting due to 48 previous errors