refine output

This commit is contained in:
Centri3 2023-05-25 11:29:43 -05:00
parent 48d36a7aa3
commit 04b7cae37e
3 changed files with 217 additions and 209 deletions

View File

@ -2,7 +2,7 @@ use crate::Lint;
use clippy_utils::{diagnostics::span_lint_and_then, is_lint_allowed};
use rustc_hir::{Expr, ExprKind};
use rustc_lint::{LateContext, LateLintPass, LintContext};
use rustc_middle::lint::in_external_macro;
use rustc_middle::{lint::in_external_macro, ty::Ty};
use rustc_session::{declare_lint_pass, declare_tool_lint};
use rustc_span::Symbol;
use std::borrow::Cow;
@ -102,11 +102,13 @@ impl LateLintPass<'_> for EndianBytes {
if_chain! {
if let ExprKind::MethodCall(method_name, receiver, args, ..) = expr.kind;
if let ExprKind::Lit(..) = receiver.kind;
if args.is_empty();
if try_lint_endian_bytes(cx, expr, "to", method_name.ident.name);
let ty = cx.typeck_results().expr_ty(receiver);
if ty.is_primitive_ty();
then {
return;
if try_lint_endian_bytes(cx, expr, "to", method_name.ident.name, ty) {
return;
}
}
}
@ -115,15 +117,16 @@ impl LateLintPass<'_> for EndianBytes {
if let ExprKind::Path(qpath) = function.kind;
if let Some(def_id) = cx.qpath_res(&qpath, function.hir_id).opt_def_id();
if let Some(function_name) = cx.get_def_path(def_id).last();
if cx.typeck_results().expr_ty(expr).is_primitive_ty();
let ty = cx.typeck_results().expr_ty(expr);
if ty.is_primitive_ty();
then {
try_lint_endian_bytes(cx, expr, "from", *function_name);
try_lint_endian_bytes(cx, expr, "from", *function_name, ty);
}
}
}
}
fn try_lint_endian_bytes(cx: &LateContext<'_>, expr: &Expr<'_>, prefix: &str, name: Symbol) -> bool {
fn try_lint_endian_bytes(cx: &LateContext<'_>, expr: &Expr<'_>, prefix: &str, name: Symbol, ty: Ty<'_>) -> bool {
let ne = format!("{prefix}_ne_bytes");
let le = format!("{prefix}_le_bytes");
let be = format!("{prefix}_be_bytes");
@ -171,7 +174,7 @@ fn try_lint_endian_bytes(cx: &LateContext<'_>, expr: &Expr<'_>, prefix: &str, na
help_str.push_str("either of ");
}
help_str.push_str(&format!("`{}` ", lint.to_name(prefix)));
help_str.push_str(&format!("`{ty}::{}` ", lint.to_name(prefix)));
if i != len && !only_one {
help_str.push_str("or ");
@ -185,7 +188,12 @@ fn try_lint_endian_bytes(cx: &LateContext<'_>, expr: &Expr<'_>, prefix: &str, na
cx,
lint.as_lint(),
expr.span,
&format!("usage of the method `{}`", lint.to_name(prefix)),
&format!(
"usage of the {}`{ty}::{}`{}",
if prefix == "from" { "function " } else { "" },
lint.to_name(prefix),
if prefix == "to" { " method" } else { "" },
),
move |diag| {
if let Some(help) = help {
diag.help(help);

View File

@ -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!(); }

View File

@ -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