[INFO] fetching crate bitbuffer 0.11.0... [INFO] checking bitbuffer-0.11.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate bitbuffer 0.11.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate bitbuffer 0.11.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bitbuffer 0.11.0 [INFO] finished tweaking crates.io crate bitbuffer 0.11.0 [INFO] tweaked toml for crates.io crate bitbuffer 0.11.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 29 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 464d7196d00b5c28fdc2e84ec2d4537be0eb1a9c2f679c7a7a5969a936ce68f2 [INFO] running `Command { std: "docker" "start" "-a" "464d7196d00b5c28fdc2e84ec2d4537be0eb1a9c2f679c7a7a5969a936ce68f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "464d7196d00b5c28fdc2e84ec2d4537be0eb1a9c2f679c7a7a5969a936ce68f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "464d7196d00b5c28fdc2e84ec2d4537be0eb1a9c2f679c7a7a5969a936ce68f2", kill_on_drop: false }` [INFO] [stdout] 464d7196d00b5c28fdc2e84ec2d4537be0eb1a9c2f679c7a7a5969a936ce68f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a5dfdd77bce38522454143def7c9ab8353a9887486bd171161ba01981b007a4 [INFO] running `Command { std: "docker" "start" "-a" "6a5dfdd77bce38522454143def7c9ab8353a9887486bd171161ba01981b007a4", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (2 fixes) [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking iai v0.1.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling merge_derive v0.1.0 [INFO] [stderr] Compiling merge v0.1.0 [INFO] [stderr] Compiling structmeta-derive v0.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling structmeta v0.3.0 [INFO] [stderr] Compiling bitbuffer_derive v0.11.0 [INFO] [stderr] Checking bitbuffer v0.11.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `bitbuffer` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/endianness.rs [INFO] [stderr] * src/num_traits.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/endianness.rs:31:16 [INFO] [stderr] | [INFO] [stderr] 31 | ($type:ty, $le:expr_2021, $instance:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/endianness.rs:31:31 [INFO] [stderr] | [INFO] [stderr] 31 | ($type:ty, $le:expr_2021, $instance:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/num_traits.rs:290:16 [INFO] [stderr] | [INFO] [stderr] 290 | ($type:ty, $signed:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/readstream.rs:875:20 [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/readstream.rs:875:40 [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/readstream.rs:882:35 [INFO] [stdout] | [INFO] [stdout] 882 | StreamSchema::json_schema(gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/endianness.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | ($type:ty, $le:expr, $instance:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 31 | ($type:ty, $le:expr_2021, $instance:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/endianness.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | ($type:ty, $le:expr, $instance:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 31 | ($type:ty, $le:expr, $instance:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/num_traits.rs:290:24 [INFO] [stdout] | [INFO] [stdout] 290 | ($type:ty, $signed:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 290 | ($type:ty, $signed:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 193 | impl_read_int!(u8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | impl_read_int!(u8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 194 | impl_read_int!(u16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | impl_read_int!(u16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 195 | impl_read_int!(u32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | impl_read_int!(u32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 196 | impl_read_int!(u64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | impl_read_int!(u64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 197 | impl_read_int!(u128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | impl_read_int!(u128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 198 | impl_read_int!(i8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | impl_read_int!(i8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 199 | impl_read_int!(i16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | impl_read_int!(i16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 200 | impl_read_int!(i32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | impl_read_int!(i32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 201 | impl_read_int!(i64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | impl_read_int!(i64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 202 | impl_read_int!(i128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | impl_read_int!(i128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | Ok(stream.read_float_unchecked::(end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | Ok(stream.read_float_unchecked::(end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 234 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_bool_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | Ok(stream.read_bool_unchecked()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | unsafe fn read_unchecked(stream: &mut BitReadStream, _end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:283:20 [INFO] [stdout] | [INFO] [stdout] 283 | Ok(Rc::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 282 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | Ok(Arc::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:317:21 [INFO] [stdout] | [INFO] [stdout] 317 | Ok(Box::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:378:25 [INFO] [stdout] | [INFO] [stdout] 378 | let mut array = MaybeUninit::<[MaybeUninit; N]>::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:376:5 [INFO] [stdout] | [INFO] [stdout] 376 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:382:23 [INFO] [stdout] | [INFO] [stdout] 382 | let val = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | item.as_mut_ptr().write(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 386 | Ok((&array as *const _ as *const [T; N]).read()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 516 | impl_read_int_sized!(u8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 516 | impl_read_int_sized!(u8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 517 | impl_read_int_sized!(u16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 517 | impl_read_int_sized!(u16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 518 | impl_read_int_sized!(u32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 518 | impl_read_int_sized!(u32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 519 | impl_read_int_sized!(u64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 519 | impl_read_int_sized!(u64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 520 | impl_read_int_sized!(u128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 520 | impl_read_int_sized!(u128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 521 | impl_read_int_sized!(i8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 521 | impl_read_int_sized!(i8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 522 | impl_read_int_sized!(i16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 522 | impl_read_int_sized!(i16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 523 | impl_read_int_sized!(i32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 523 | impl_read_int_sized!(i32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 524 | impl_read_int_sized!(i64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 524 | impl_read_int_sized!(i64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 525 | impl_read_int_sized!(i128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 525 | impl_read_int_sized!(i128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:629:22 [INFO] [stdout] | [INFO] [stdout] 629 | vec.push(stream.read_unchecked(end)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:622:5 [INFO] [stdout] | [INFO] [stdout] 622 | / unsafe fn read_unchecked( [INFO] [stdout] 623 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 624 | | size: usize, [INFO] [stdout] 625 | | end: bool, [INFO] [stdout] 626 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:671:23 [INFO] [stdout] | [INFO] [stdout] 671 | let key = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:664:5 [INFO] [stdout] | [INFO] [stdout] 664 | / unsafe fn read_unchecked( [INFO] [stdout] 665 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 666 | | size: usize, [INFO] [stdout] 667 | | end: bool, [INFO] [stdout] 668 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:672:25 [INFO] [stdout] | [INFO] [stdout] 672 | let value = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:787:25 [INFO] [stdout] | [INFO] [stdout] 787 | let mut array = MaybeUninit::<[MaybeUninit; N]>::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:781:5 [INFO] [stdout] | [INFO] [stdout] 781 | / unsafe fn read_unchecked( [INFO] [stdout] 782 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 783 | | size: usize, [INFO] [stdout] 784 | | end: bool, [INFO] [stdout] 785 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:791:23 [INFO] [stdout] | [INFO] [stdout] 791 | let val = stream.read_sized_unchecked(size, end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:792:13 [INFO] [stdout] | [INFO] [stdout] 792 | item.as_mut_ptr().write(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:795:12 [INFO] [stdout] | [INFO] [stdout] 795 | Ok((&array as *const _ as *const [T; N]).read()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:228:34 [INFO] [stdout] | [INFO] [stdout] 228 | .copy_from_slice(self.slice.get_unchecked(byte_index..byte_index + count)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | unsafe fn read_usize_bytes(&self, byte_index: usize, end: bool) -> [u8; USIZE_SIZE] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | / self.slice [INFO] [stdout] 236 | | .get_unchecked(byte_index..byte_index + USIZE_SIZE) [INFO] [stdout] | |___________________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:244:43 [INFO] [stdout] | [INFO] [stdout] 244 | let raw_bytes: [u8; USIZE_SIZE] = self.read_usize_bytes(byte_index, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 243 | unsafe fn read_shifted_usize(&self, byte_index: usize, shift: usize, end: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:253:39 [INFO] [stdout] | [INFO] [stdout] 253 | let bytes: [u8; USIZE_SIZE] = self.read_usize_bytes(byte_index, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | unsafe fn read_usize(&self, position: usize, count: usize, end: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:323:20 [INFO] [stdout] | [INFO] [stdout] 323 | let byte = self.slice.get_unchecked(byte_index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 319 | pub unsafe fn read_bool_unchecked(&self, position: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_fit_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | self.read_fit_usize(position, count, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:396:5 [INFO] [stdout] | [INFO] [stdout] 396 | / pub unsafe fn read_int_unchecked(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 397 | | where [INFO] [stdout] 398 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt + BitXor + WrappingSub, [INFO] [stdout] | |___________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_no_fit_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | self.read_no_fit_usize(position, count, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:423:19 [INFO] [stdout] | [INFO] [stdout] 423 | let raw = self.read_usize(position, count, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:419:5 [INFO] [stdout] | [INFO] [stdout] 419 | / unsafe fn read_fit_usize(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 420 | | where [INFO] [stdout] 421 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt, [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:439:42 [INFO] [stdout] | [INFO] [stdout] 439 | let data = T::from_unchecked(self.read_usize(read_pos, read, end)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:427:5 [INFO] [stdout] | [INFO] [stdout] 427 | / unsafe fn read_no_fit_usize(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 428 | | where [INFO] [stdout] 429 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt, [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_shifted_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:535:27 [INFO] [stdout] | [INFO] [stdout] 535 | let raw = self.read_shifted_usize(read_pos, shift, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 521 | pub unsafe fn read_bytes_unchecked(&self, position: usize, byte_count: usize) -> Cow<'a, [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_shifted_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:549:25 [INFO] [stdout] | [INFO] [stdout] 549 | let bytes = self.read_shifted_usize(read_pos, shift, true).to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:555:27 [INFO] [stdout] | [INFO] [stdout] 555 | data.push(self.read_int_unchecked::(pos, 8, true)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:756:23 [INFO] [stdout] | [INFO] [stdout] 756 | let int = self.read_int_unchecked(position, size_of::() * 8, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:745:5 [INFO] [stdout] | [INFO] [stdout] 745 | / pub unsafe fn read_float_unchecked(&self, position: usize, end: bool) -> T [INFO] [stdout] 746 | | where [INFO] [stdout] 747 | | T: Float + UncheckedPrimitiveFloat, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_bool_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | let result = self.buffer.read_bool_unchecked(self.pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn read_bool_unchecked(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:159:22 [INFO] [stdout] | [INFO] [stdout] 159 | let result = self.buffer.read_int_unchecked(self.pos, count, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub unsafe fn read_int_unchecked(&mut self, count: usize, end: bool) -> T [INFO] [stdout] 156 | | where [INFO] [stdout] 157 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt + WrappingSub, [INFO] [stdout] | |__________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | let result = self.buffer.read_float_unchecked(self.pos, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 205 | / pub unsafe fn read_float_unchecked(&mut self, end: bool) -> T [INFO] [stdout] 206 | | where [INFO] [stdout] 207 | | T: Float + UncheckedPrimitiveFloat, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_bytes_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:256:22 [INFO] [stdout] | [INFO] [stdout] 256 | let result = self.buffer.read_bytes_unchecked(self.pos, byte_count); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 254 | pub unsafe fn read_bytes_unchecked(&mut self, byte_count: usize) -> Cow<'a, [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | T::read_unchecked(self, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:635:5 [INFO] [stdout] | [INFO] [stdout] 635 | pub unsafe fn read_unchecked>(&mut self, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitReadSized::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:708:9 [INFO] [stdout] | [INFO] [stdout] 708 | T::read_unchecked(self, size, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:703:5 [INFO] [stdout] | [INFO] [stdout] 703 | / pub unsafe fn read_sized_unchecked>( [INFO] [stdout] 704 | | &mut self, [INFO] [stdout] 705 | | size: usize, [INFO] [stdout] 706 | | end: bool, [INFO] [stdout] 707 | | ) -> Result { [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 78 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/read_tests.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `bitbuffer` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/endianness.rs [INFO] [stderr] * src/num_traits.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/endianness.rs:31:16 [INFO] [stderr] | [INFO] [stderr] 31 | ($type:ty, $le:expr_2021, $instance:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/endianness.rs:31:31 [INFO] [stderr] | [INFO] [stderr] 31 | ($type:ty, $le:expr_2021, $instance:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/num_traits.rs:290:16 [INFO] [stderr] | [INFO] [stderr] 290 | ($type:ty, $signed:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/readstream.rs:875:20 [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/readstream.rs:875:40 [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/readstream.rs:882:35 [INFO] [stdout] | [INFO] [stdout] 882 | StreamSchema::json_schema(gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/endianness.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | ($type:ty, $le:expr, $instance:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 31 | ($type:ty, $le:expr_2021, $instance:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/endianness.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | ($type:ty, $le:expr, $instance:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 31 | ($type:ty, $le:expr, $instance:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/num_traits.rs:290:24 [INFO] [stdout] | [INFO] [stdout] 290 | ($type:ty, $signed:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 290 | ($type:ty, $signed:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 193 | impl_read_int!(u8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | impl_read_int!(u8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 194 | impl_read_int!(u16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | impl_read_int!(u16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 195 | impl_read_int!(u32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | impl_read_int!(u32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 196 | impl_read_int!(u64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | impl_read_int!(u64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 197 | impl_read_int!(u128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | impl_read_int!(u128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 198 | impl_read_int!(i8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | impl_read_int!(i8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 199 | impl_read_int!(i16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | impl_read_int!(i16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 200 | impl_read_int!(i32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | impl_read_int!(i32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 201 | impl_read_int!(i64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | impl_read_int!(i64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 202 | impl_read_int!(i128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | impl_read_int!(i128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | Ok(stream.read_float_unchecked::(end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | Ok(stream.read_float_unchecked::(end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 234 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_bool_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | Ok(stream.read_bool_unchecked()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | unsafe fn read_unchecked(stream: &mut BitReadStream, _end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:283:20 [INFO] [stdout] | [INFO] [stdout] 283 | Ok(Rc::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 282 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | Ok(Arc::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:317:21 [INFO] [stdout] | [INFO] [stdout] 317 | Ok(Box::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:378:25 [INFO] [stdout] | [INFO] [stdout] 378 | let mut array = MaybeUninit::<[MaybeUninit; N]>::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:376:5 [INFO] [stdout] | [INFO] [stdout] 376 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:382:23 [INFO] [stdout] | [INFO] [stdout] 382 | let val = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | item.as_mut_ptr().write(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 386 | Ok((&array as *const _ as *const [T; N]).read()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 516 | impl_read_int_sized!(u8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 516 | impl_read_int_sized!(u8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 517 | impl_read_int_sized!(u16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 517 | impl_read_int_sized!(u16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 518 | impl_read_int_sized!(u32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 518 | impl_read_int_sized!(u32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 519 | impl_read_int_sized!(u64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 519 | impl_read_int_sized!(u64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 520 | impl_read_int_sized!(u128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 520 | impl_read_int_sized!(u128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 521 | impl_read_int_sized!(i8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 521 | impl_read_int_sized!(i8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 522 | impl_read_int_sized!(i16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 522 | impl_read_int_sized!(i16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 523 | impl_read_int_sized!(i32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 523 | impl_read_int_sized!(i32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 524 | impl_read_int_sized!(i64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 524 | impl_read_int_sized!(i64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 525 | impl_read_int_sized!(i128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 525 | impl_read_int_sized!(i128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:629:22 [INFO] [stdout] | [INFO] [stdout] 629 | vec.push(stream.read_unchecked(end)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:622:5 [INFO] [stdout] | [INFO] [stdout] 622 | / unsafe fn read_unchecked( [INFO] [stdout] 623 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 624 | | size: usize, [INFO] [stdout] 625 | | end: bool, [INFO] [stdout] 626 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:671:23 [INFO] [stdout] | [INFO] [stdout] 671 | let key = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:664:5 [INFO] [stdout] | [INFO] [stdout] 664 | / unsafe fn read_unchecked( [INFO] [stdout] 665 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 666 | | size: usize, [INFO] [stdout] 667 | | end: bool, [INFO] [stdout] 668 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:672:25 [INFO] [stdout] | [INFO] [stdout] 672 | let value = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:787:25 [INFO] [stdout] | [INFO] [stdout] 787 | let mut array = MaybeUninit::<[MaybeUninit; N]>::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:781:5 [INFO] [stdout] | [INFO] [stdout] 781 | / unsafe fn read_unchecked( [INFO] [stdout] 782 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 783 | | size: usize, [INFO] [stdout] 784 | | end: bool, [INFO] [stdout] 785 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:791:23 [INFO] [stdout] | [INFO] [stdout] 791 | let val = stream.read_sized_unchecked(size, end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:792:13 [INFO] [stdout] | [INFO] [stdout] 792 | item.as_mut_ptr().write(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:795:12 [INFO] [stdout] | [INFO] [stdout] 795 | Ok((&array as *const _ as *const [T; N]).read()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:228:34 [INFO] [stdout] | [INFO] [stdout] 228 | .copy_from_slice(self.slice.get_unchecked(byte_index..byte_index + count)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | unsafe fn read_usize_bytes(&self, byte_index: usize, end: bool) -> [u8; USIZE_SIZE] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | / self.slice [INFO] [stdout] 236 | | .get_unchecked(byte_index..byte_index + USIZE_SIZE) [INFO] [stdout] | |___________________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:244:43 [INFO] [stdout] | [INFO] [stdout] 244 | let raw_bytes: [u8; USIZE_SIZE] = self.read_usize_bytes(byte_index, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 243 | unsafe fn read_shifted_usize(&self, byte_index: usize, shift: usize, end: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:253:39 [INFO] [stdout] | [INFO] [stdout] 253 | let bytes: [u8; USIZE_SIZE] = self.read_usize_bytes(byte_index, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | unsafe fn read_usize(&self, position: usize, count: usize, end: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:323:20 [INFO] [stdout] | [INFO] [stdout] 323 | let byte = self.slice.get_unchecked(byte_index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 319 | pub unsafe fn read_bool_unchecked(&self, position: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_fit_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | self.read_fit_usize(position, count, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:396:5 [INFO] [stdout] | [INFO] [stdout] 396 | / pub unsafe fn read_int_unchecked(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 397 | | where [INFO] [stdout] 398 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt + BitXor + WrappingSub, [INFO] [stdout] | |___________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_no_fit_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | self.read_no_fit_usize(position, count, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:423:19 [INFO] [stdout] | [INFO] [stdout] 423 | let raw = self.read_usize(position, count, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:419:5 [INFO] [stdout] | [INFO] [stdout] 419 | / unsafe fn read_fit_usize(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 420 | | where [INFO] [stdout] 421 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt, [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:439:42 [INFO] [stdout] | [INFO] [stdout] 439 | let data = T::from_unchecked(self.read_usize(read_pos, read, end)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:427:5 [INFO] [stdout] | [INFO] [stdout] 427 | / unsafe fn read_no_fit_usize(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 428 | | where [INFO] [stdout] 429 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt, [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_shifted_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:535:27 [INFO] [stdout] | [INFO] [stdout] 535 | let raw = self.read_shifted_usize(read_pos, shift, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 521 | pub unsafe fn read_bytes_unchecked(&self, position: usize, byte_count: usize) -> Cow<'a, [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_shifted_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:549:25 [INFO] [stdout] | [INFO] [stdout] 549 | let bytes = self.read_shifted_usize(read_pos, shift, true).to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:555:27 [INFO] [stdout] | [INFO] [stdout] 555 | data.push(self.read_int_unchecked::(pos, 8, true)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:756:23 [INFO] [stdout] | [INFO] [stdout] 756 | let int = self.read_int_unchecked(position, size_of::() * 8, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:745:5 [INFO] [stdout] | [INFO] [stdout] 745 | / pub unsafe fn read_float_unchecked(&self, position: usize, end: bool) -> T [INFO] [stdout] 746 | | where [INFO] [stdout] 747 | | T: Float + UncheckedPrimitiveFloat, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_bool_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | let result = self.buffer.read_bool_unchecked(self.pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn read_bool_unchecked(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:159:22 [INFO] [stdout] | [INFO] [stdout] 159 | let result = self.buffer.read_int_unchecked(self.pos, count, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub unsafe fn read_int_unchecked(&mut self, count: usize, end: bool) -> T [INFO] [stdout] 156 | | where [INFO] [stdout] 157 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt + WrappingSub, [INFO] [stdout] | |__________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | let result = self.buffer.read_float_unchecked(self.pos, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 205 | / pub unsafe fn read_float_unchecked(&mut self, end: bool) -> T [INFO] [stdout] 206 | | where [INFO] [stdout] 207 | | T: Float + UncheckedPrimitiveFloat, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_bytes_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:256:22 [INFO] [stdout] | [INFO] [stdout] 256 | let result = self.buffer.read_bytes_unchecked(self.pos, byte_count); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 254 | pub unsafe fn read_bytes_unchecked(&mut self, byte_count: usize) -> Cow<'a, [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | T::read_unchecked(self, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:635:5 [INFO] [stdout] | [INFO] [stdout] 635 | pub unsafe fn read_unchecked>(&mut self, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitReadSized::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:708:9 [INFO] [stdout] | [INFO] [stdout] 708 | T::read_unchecked(self, size, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:703:5 [INFO] [stdout] | [INFO] [stdout] 703 | / pub unsafe fn read_sized_unchecked>( [INFO] [stdout] 704 | | &mut self, [INFO] [stdout] 705 | | size: usize, [INFO] [stdout] 706 | | end: bool, [INFO] [stdout] 707 | | ) -> Result { [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 78 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating benches/bench.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `read_tests` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/read_tests.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item after attributes [INFO] [stderr] --> tests/read_tests.rs:404:1 [INFO] [stderr] | [INFO] [stderr] 404 | #[derive(BitRead, PartialEq, Debug)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/read_tests.rs:406:5 [INFO] [stdout] | [INFO] [stdout] 406 | byte: u8, [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/read_tests.rs:405:1 [INFO] [stdout] | [INFO] [stdout] 405 | / struct TestStruct { [INFO] [stdout] 406 | | byte: u8, [INFO] [stdout] 407 | | str: String, [INFO] [stdout] 408 | | #[size = 2] [INFO] [stdout] ... | [INFO] [stdout] 417 | | previous_field: u8, [INFO] [stdout] 418 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/read_tests.rs:407:5 [INFO] [stdout] | [INFO] [stdout] 407 | str: String, [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/read_tests.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 408 | / #[size = 2] [INFO] [stdout] 409 | | truncated: String, [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/read_tests.rs:410:5 [INFO] [stdout] | [INFO] [stdout] 410 | bar: u16, [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/read_tests.rs:411:5 [INFO] [stdout] | [INFO] [stdout] 411 | float: f32, [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/read_tests.rs:412:5 [INFO] [stdout] | [INFO] [stdout] 412 | / #[size = 3] [INFO] [stdout] 413 | | asd: u8, [INFO] [stdout] | |___________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/read_tests.rs:414:5 [INFO] [stdout] | [INFO] [stdout] 414 | / #[size_bits = 2] [INFO] [stdout] 415 | | dynamic: u8, [INFO] [stdout] | |_______________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/read_tests.rs:416:5 [INFO] [stdout] | [INFO] [stdout] 416 | / #[size = "asd"] [INFO] [stdout] 417 | | previous_field: u8, [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `bench` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * benches/bench.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> benches/bench.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | a: f32, [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> benches/bench.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | / #[allow(dead_code)] [INFO] [stdout] 228 | | #[derive(BitRead)] [INFO] [stdout] 229 | | struct BasicStruct { [INFO] [stdout] 230 | | a: f32, [INFO] [stdout] ... | [INFO] [stdout] 233 | | c: u32, [INFO] [stdout] 234 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> benches/bench.rs:227:1 [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> benches/bench.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | b: bool, [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> benches/bench.rs:232:5 [INFO] [stdout] | [INFO] [stdout] 232 | / #[size = 7] [INFO] [stdout] 233 | | c: u32, [INFO] [stdout] | |__________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 227 | { unsafe #[allow(dead_code)] [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating benches/write.rs from 2021 edition to 2024 [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/write_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/roundtrip.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `roundtrip` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/roundtrip.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected `{`, found keyword `struct` [INFO] [stderr] --> tests/roundtrip.rs:44:14 [INFO] [stderr] | [INFO] [stderr] 44 | { unsafe struct Foo { [INFO] [stderr] | ------ ^^^^^^ expected `{` [INFO] [stderr] | | [INFO] [stderr] | while parsing this `unsafe` expression [INFO] [stderr] | [INFO] [stderr] help: try placing this code inside a block [INFO] [stderr] | [INFO] [stderr] 44 ~ { unsafe { struct Foo { [INFO] [stderr] 45 | int: u32, [INFO] [stderr] ... [INFO] [stderr] 54 | fixed_string: String, [INFO] [stderr] 55 ~ } }} [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: expected `{`, found `#` [INFO] [stderr] --> tests/roundtrip.rs:70:14 [INFO] [stderr] | [INFO] [stderr] 70 | { unsafe #[discriminant_bits = 4] [INFO] [stderr] | ------ ^ expected `{` [INFO] [stderr] | | [INFO] [stderr] | while parsing this `unsafe` expression [INFO] [stderr] | [INFO] [stderr] help: try placing this code inside a block [INFO] [stderr] | [INFO] [stderr] 71 ~ { enum Enum { [INFO] [stderr] 72 | A, [INFO] [stderr] ... [INFO] [stderr] 75 | D, [INFO] [stderr] 76 ~ } }} [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: expected `{`, found keyword `struct` [INFO] [stderr] --> tests/roundtrip.rs:86:14 [INFO] [stderr] | [INFO] [stderr] 86 | { unsafe struct CompoundVariant(#[size = 15] u16, bool);} [INFO] [stderr] | ------ ^^^^^^ expected `{` [INFO] [stderr] | | [INFO] [stderr] | while parsing this `unsafe` expression [INFO] [stderr] | [INFO] [stderr] help: try placing this code inside a block [INFO] [stderr] | [INFO] [stderr] 86 | { unsafe { struct CompoundVariant(#[size = 15] u16, bool); }} [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] error: expected `{`, found `#` [INFO] [stderr] --> tests/roundtrip.rs:89:14 [INFO] [stderr] | [INFO] [stderr] 89 | { unsafe #[discriminant_bits = 4] [INFO] [stderr] | ------ ^ expected `{` [INFO] [stderr] | | [INFO] [stderr] | while parsing this `unsafe` expression [INFO] [stderr] | [INFO] [stderr] help: try placing this code inside a block [INFO] [stderr] | [INFO] [stderr] 90 ~ { enum Enum { [INFO] [stderr] 91 | A, [INFO] [stderr] ... [INFO] [stderr] 95 | E(CompoundVariant), [INFO] [stderr] 96 ~ } }} [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0658]: attributes on expressions are experimental [INFO] [stderr] --> tests/roundtrip.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 43 | #[derive(Debug, PartialEq, BitRead, BitWrite)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #15701 for more information [INFO] [stderr] = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s [INFO] [stderr] --> tests/roundtrip.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 43 | #[derive(Debug, PartialEq, BitRead, BitWrite)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not applicable here [INFO] [stderr] 44 | / { unsafe struct Foo { [INFO] [stderr] 45 | | int: u32, [INFO] [stderr] 46 | | float: f64, [INFO] [stderr] 47 | | #[size = 2] [INFO] [stderr] ... | [INFO] [stderr] 54 | | fixed_string: String, [INFO] [stderr] 55 | | }} [INFO] [stderr] | |______- not a `struct`, `enum` or `union` [INFO] [stderr] [INFO] [stderr] error[E0658]: attributes on expressions are experimental [INFO] [stderr] --> tests/roundtrip.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | #[derive(Debug, PartialEq, BitRead, BitWrite)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #15701 for more information [INFO] [stderr] = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s [INFO] [stderr] --> tests/roundtrip.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | #[derive(Debug, PartialEq, BitRead, BitWrite)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not applicable here [INFO] [stderr] 70 | / { unsafe #[discriminant_bits = 4] [INFO] [stderr] 71 | | enum Enum { [INFO] [stderr] 72 | | A, [INFO] [stderr] 73 | | B, [INFO] [stderr] 74 | | C, [INFO] [stderr] 75 | | D, [INFO] [stderr] 76 | | }} [INFO] [stderr] | |______- not a `struct`, `enum` or `union` [INFO] [stderr] [INFO] [stderr] error[E0658]: attributes on expressions are experimental [INFO] [stderr] --> tests/roundtrip.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, PartialEq, BitRead, BitWrite)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #15701 for more information [INFO] [stderr] = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: attributes on expressions are experimental [INFO] [stderr] --> tests/roundtrip.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | #[derive(Debug, PartialEq, BitRead, BitWrite)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #15701 for more information [INFO] [stderr] = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s [INFO] [stderr] --> tests/roundtrip.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, PartialEq, BitRead, BitWrite)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not applicable here [INFO] [stderr] 86 | { unsafe struct CompoundVariant(#[size = 15] u16, bool);} [INFO] [stderr] | --------------------------------------------------------- not a `struct`, `enum` or `union` [INFO] [stderr] [INFO] [stderr] error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s [INFO] [stderr] --> tests/roundtrip.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | #[derive(Debug, PartialEq, BitRead, BitWrite)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not applicable here [INFO] [stderr] 89 | / { unsafe #[discriminant_bits = 4] [INFO] [stderr] 90 | | enum Enum { [INFO] [stderr] 91 | | A, [INFO] [stderr] 92 | | B(String), [INFO] [stderr] ... | [INFO] [stderr] 95 | | E(CompoundVariant), [INFO] [stderr] 96 | | }} [INFO] [stderr] | |______- not a `struct`, `enum` or `union` [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Foo` in this scope [INFO] [stderr] --> tests/roundtrip.rs:56:15 [INFO] [stderr] | [INFO] [stderr] 56 | roundtrip(Foo { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stderr] --> tests/roundtrip.rs:77:15 [INFO] [stderr] | [INFO] [stderr] 77 | roundtrip(Enum::A); [INFO] [stderr] | ^^^^ use of undeclared type `Enum` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stderr] --> tests/roundtrip.rs:78:15 [INFO] [stderr] | [INFO] [stderr] 78 | roundtrip(Enum::B); [INFO] [stderr] | ^^^^ use of undeclared type `Enum` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stderr] --> tests/roundtrip.rs:79:15 [INFO] [stderr] | [INFO] [stderr] 79 | roundtrip(Enum::C); [INFO] [stderr] | ^^^^ use of undeclared type `Enum` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stderr] --> tests/roundtrip.rs:80:15 [INFO] [stderr] | [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | int: u32, [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/roundtrip.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | / struct Foo { [INFO] [stdout] 45 | | int: u32, [INFO] [stdout] 46 | | float: f64, [INFO] [stdout] 47 | | #[size = 2] [INFO] [stdout] ... | [INFO] [stdout] 54 | | fixed_string: String, [INFO] [stdout] 55 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 80 | roundtrip(Enum::D); [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | float: f64, [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^ use of undeclared type `Enum` [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | / #[size = 2] [INFO] [stdout] 48 | | smaller_int: u8, [INFO] [stdout] | |_______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | signed: i32, [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | / #[size = 3] [INFO] [stdout] 51 | | smaller_signed: i32, [INFO] [stdout] | |___________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> tests/roundtrip.rs:97:15 [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | dynamic_string: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | / #[size = 3] [INFO] [stdout] 54 | | fixed_string: String, [INFO] [stdout] | |____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 97 | roundtrip(Enum::A); [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | / #[discriminant_bits = 4] [INFO] [stdout] 71 | | enum Enum { [INFO] [stdout] 72 | | A, [INFO] [stdout] 73 | | B, [INFO] [stdout] 74 | | C, [INFO] [stdout] 75 | | D, [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/roundtrip.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | / #[discriminant_bits = 4] [INFO] [stdout] 71 | | enum Enum { [INFO] [stdout] 72 | | A, [INFO] [stdout] 73 | | B, [INFO] [stdout] 74 | | C, [INFO] [stdout] 75 | | D, [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^ use of undeclared type `Enum` [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:86:28 [INFO] [stdout] | [INFO] [stdout] 86 | struct CompoundVariant(#[size = 15] u16, bool); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/roundtrip.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | struct CompoundVariant(#[size = 15] u16, bool); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:86:46 [INFO] [stdout] | [INFO] [stdout] 86 | struct CompoundVariant(#[size = 15] u16, bool); [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | / #[discriminant_bits = 4] [INFO] [stdout] 90 | | enum Enum { [INFO] [stdout] 91 | | A, [INFO] [stdout] 92 | | B(String), [INFO] [stdout] ... | [INFO] [stdout] 95 | | E(CompoundVariant), [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/roundtrip.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | / #[discriminant_bits = 4] [INFO] [stdout] 90 | | enum Enum { [INFO] [stdout] 91 | | A, [INFO] [stdout] 92 | | B(String), [INFO] [stdout] ... | [INFO] [stdout] 95 | | E(CompoundVariant), [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> tests/roundtrip.rs:98:15 [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | B(String), [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 93 | C(f32), [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 98 | roundtrip(Enum::B("foobar".into())); [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:94:11 [INFO] [stdout] | [INFO] [stdout] 94 | D(#[size = 15] i64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^ use of undeclared type `Enum` [INFO] [stdout] warning[E0133]: call to unsafe function `bitbuffer::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/roundtrip.rs:95:11 [INFO] [stdout] | [INFO] [stdout] 95 | E(CompoundVariant), [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] --> tests/roundtrip.rs:99:15 [INFO] [stderr] | [INFO] [stderr] 99 | roundtrip(Enum::C(12.0)); [INFO] [stderr] | ^^^^ use of undeclared type `Enum` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stderr] --> tests/roundtrip.rs:100:15 [INFO] [stderr] | [INFO] [stderr] 100 | roundtrip(Enum::D(-12345)); [INFO] [stderr] | ^^^^ use of undeclared type `Enum` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stderr] --> tests/roundtrip.rs:101:15 [INFO] [stderr] | [INFO] [stderr] 101 | roundtrip(Enum::E(CompoundVariant(6789, true))); [INFO] [stderr] | ^^^^ use of undeclared type `Enum` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CompoundVariant` in this scope [INFO] [stderr] --> tests/roundtrip.rs:101:23 [INFO] [stderr] | [INFO] [stderr] 101 | roundtrip(Enum::E(CompoundVariant(6789, true))); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: aborting due to 23 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0422, E0425, E0433, E0658, E0774. [INFO] [stderr] For more information about an error, try `rustc --explain E0422`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.93s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking bitbuffer v0.11.0 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/readstream.rs:875:20 [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(r#gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/readstream.rs:875:20 [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(r#gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/readstream.rs:875:40 [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/readstream.rs:875:40 [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 875 | fn json_schema(gen: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/readstream.rs:882:35 [INFO] [stdout] | [INFO] [stdout] 882 | StreamSchema::json_schema(gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/readstream.rs:882:35 [INFO] [stdout] | [INFO] [stdout] 882 | StreamSchema::json_schema(gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 193 | impl_read_int!(u8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | impl_read_int!(u8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 194 | impl_read_int!(u16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | impl_read_int!(u16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 195 | impl_read_int!(u32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | impl_read_int!(u32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 196 | impl_read_int!(u64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | impl_read_int!(u64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 197 | impl_read_int!(u128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | impl_read_int!(u128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 198 | impl_read_int!(i8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | impl_read_int!(i8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 199 | impl_read_int!(i16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | impl_read_int!(i16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 200 | impl_read_int!(i32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | impl_read_int!(i32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 201 | impl_read_int!(i64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | impl_read_int!(i64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 202 | impl_read_int!(i128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | impl_read_int!(i128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 193 | impl_read_int!(u8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | impl_read_int!(u8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 194 | impl_read_int!(u16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | impl_read_int!(u16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 195 | impl_read_int!(u32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | impl_read_int!(u32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 196 | impl_read_int!(u64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | impl_read_int!(u64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 197 | impl_read_int!(u128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | impl_read_int!(u128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 198 | impl_read_int!(i8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | impl_read_int!(i8); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 199 | impl_read_int!(i16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | impl_read_int!(i16); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 200 | impl_read_int!(i32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | impl_read_int!(i32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 201 | impl_read_int!(i64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | impl_read_int!(i64); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(stream.read_int_unchecked::<$type>(<$type>::BITS as usize, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 202 | impl_read_int!(i128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result<$type> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | impl_read_int!(i128); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_read_int_nonzero!(std::num::NonZeroU8); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | Ok(stream.read_float_unchecked::(end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | Ok(stream.read_float_unchecked::(end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 234 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_read_int_nonzero!(std::num::NonZeroU16); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_bool_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | Ok(stream.read_bool_unchecked()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | unsafe fn read_unchecked(stream: &mut BitReadStream, _end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:283:20 [INFO] [stdout] | [INFO] [stdout] 283 | Ok(Rc::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 282 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 206 | impl_read_int_nonzero!(std::num::NonZeroU32); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | Ok(Arc::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:317:21 [INFO] [stdout] | [INFO] [stdout] 317 | Ok(Box::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 207 | impl_read_int_nonzero!(std::num::NonZeroU64); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / unsafe fn read_unchecked( [INFO] [stdout] 155 | | stream: &mut BitReadStream, [INFO] [stdout] 156 | | end: bool, [INFO] [stdout] 157 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | stream.read_int_unchecked(size_of::<$type>() * 8, end), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe fn read_unchecked( [INFO] [stdout] 177 | | stream: &mut BitReadStream, [INFO] [stdout] 178 | | end: bool, [INFO] [stdout] 179 | | ) -> Result { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 208 | impl_read_int_nonzero!(std::num::NonZeroU128); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_nonzero` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | Ok(stream.read_float_unchecked::(end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | Ok(stream.read_float_unchecked::(end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 234 | unsafe fn read_unchecked(stream: &mut BitReadStream, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_bool_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | Ok(stream.read_bool_unchecked()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | unsafe fn read_unchecked(stream: &mut BitReadStream, _end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:283:20 [INFO] [stdout] | [INFO] [stdout] 283 | Ok(Rc::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 282 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | Ok(Arc::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:317:21 [INFO] [stdout] | [INFO] [stdout] 317 | Ok(Box::new(T::read_unchecked(stream, end)?)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 347 | impl_read_tuple!(T1, T2); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 348 | impl_read_tuple!(T1, T2, T3); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | Ok(($(<$type>::read_unchecked(stream, end)?),*)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 349 | impl_read_tuple!(T1, T2, T3, T4); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `impl_read_tuple` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:378:25 [INFO] [stdout] | [INFO] [stdout] 378 | let mut array = MaybeUninit::<[MaybeUninit; N]>::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:376:5 [INFO] [stdout] | [INFO] [stdout] 376 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:382:23 [INFO] [stdout] | [INFO] [stdout] 382 | let val = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | item.as_mut_ptr().write(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 386 | Ok((&array as *const _ as *const [T; N]).read()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 516 | impl_read_int_sized!(u8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 516 | impl_read_int_sized!(u8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 517 | impl_read_int_sized!(u16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 517 | impl_read_int_sized!(u16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 518 | impl_read_int_sized!(u32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 518 | impl_read_int_sized!(u32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 519 | impl_read_int_sized!(u64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 519 | impl_read_int_sized!(u64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 520 | impl_read_int_sized!(u128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 520 | impl_read_int_sized!(u128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 521 | impl_read_int_sized!(i8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 521 | impl_read_int_sized!(i8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 522 | impl_read_int_sized!(i16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 522 | impl_read_int_sized!(i16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 523 | impl_read_int_sized!(i32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 523 | impl_read_int_sized!(i32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 524 | impl_read_int_sized!(i64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 524 | impl_read_int_sized!(i64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 525 | impl_read_int_sized!(i128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 525 | impl_read_int_sized!(i128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:378:25 [INFO] [stdout] | [INFO] [stdout] 378 | let mut array = MaybeUninit::<[MaybeUninit; N]>::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:376:5 [INFO] [stdout] | [INFO] [stdout] 376 | unsafe fn read_unchecked(stream: &mut BitReadStream<'a, E>, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:382:23 [INFO] [stdout] | [INFO] [stdout] 382 | let val = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | item.as_mut_ptr().write(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 386 | Ok((&array as *const _ as *const [T; N]).read()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:629:22 [INFO] [stdout] | [INFO] [stdout] 629 | vec.push(stream.read_unchecked(end)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:622:5 [INFO] [stdout] | [INFO] [stdout] 622 | / unsafe fn read_unchecked( [INFO] [stdout] 623 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 624 | | size: usize, [INFO] [stdout] 625 | | end: bool, [INFO] [stdout] 626 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 516 | impl_read_int_sized!(u8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 516 | impl_read_int_sized!(u8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 517 | impl_read_int_sized!(u16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 517 | impl_read_int_sized!(u16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 518 | impl_read_int_sized!(u32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 518 | impl_read_int_sized!(u32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 519 | impl_read_int_sized!(u64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 519 | impl_read_int_sized!(u64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:671:23 [INFO] [stdout] | [INFO] [stdout] 671 | let key = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:664:5 [INFO] [stdout] | [INFO] [stdout] 664 | / unsafe fn read_unchecked( [INFO] [stdout] 665 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 666 | | size: usize, [INFO] [stdout] 667 | | end: bool, [INFO] [stdout] 668 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:672:25 [INFO] [stdout] | [INFO] [stdout] 672 | let value = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 520 | impl_read_int_sized!(u128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 520 | impl_read_int_sized!(u128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 521 | impl_read_int_sized!(i8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 521 | impl_read_int_sized!(i8); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 522 | impl_read_int_sized!(i16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 522 | impl_read_int_sized!(i16); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 523 | impl_read_int_sized!(i32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 523 | impl_read_int_sized!(i32); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 524 | impl_read_int_sized!(i64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 524 | impl_read_int_sized!(i64); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:505:20 [INFO] [stdout] | [INFO] [stdout] 505 | Ok(stream.read_int_unchecked::<$type>(size, end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 525 | impl_read_int_sized!(i128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | / unsafe fn read_unchecked( [INFO] [stdout] 501 | | stream: &mut BitReadStream, [INFO] [stdout] 502 | | size: usize, [INFO] [stdout] 503 | | end: bool, [INFO] [stdout] 504 | | ) -> Result<$type> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] ... [INFO] [stdout] 525 | impl_read_int_sized!(i128); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_read_int_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:629:22 [INFO] [stdout] | [INFO] [stdout] 629 | vec.push(stream.read_unchecked(end)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:622:5 [INFO] [stdout] | [INFO] [stdout] 622 | / unsafe fn read_unchecked( [INFO] [stdout] 623 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 624 | | size: usize, [INFO] [stdout] 625 | | end: bool, [INFO] [stdout] 626 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:787:25 [INFO] [stdout] | [INFO] [stdout] 787 | let mut array = MaybeUninit::<[MaybeUninit; N]>::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:781:5 [INFO] [stdout] | [INFO] [stdout] 781 | / unsafe fn read_unchecked( [INFO] [stdout] 782 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 783 | | size: usize, [INFO] [stdout] 784 | | end: bool, [INFO] [stdout] 785 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:791:23 [INFO] [stdout] | [INFO] [stdout] 791 | let val = stream.read_sized_unchecked(size, end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:792:13 [INFO] [stdout] | [INFO] [stdout] 792 | item.as_mut_ptr().write(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:795:12 [INFO] [stdout] | [INFO] [stdout] 795 | Ok((&array as *const _ as *const [T; N]).read()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:671:23 [INFO] [stdout] | [INFO] [stdout] 671 | let key = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:664:5 [INFO] [stdout] | [INFO] [stdout] 664 | / unsafe fn read_unchecked( [INFO] [stdout] 665 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 666 | | size: usize, [INFO] [stdout] 667 | | end: bool, [INFO] [stdout] 668 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:672:25 [INFO] [stdout] | [INFO] [stdout] 672 | let value = stream.read_unchecked(end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:228:34 [INFO] [stdout] | [INFO] [stdout] 228 | .copy_from_slice(self.slice.get_unchecked(byte_index..byte_index + count)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | unsafe fn read_usize_bytes(&self, byte_index: usize, end: bool) -> [u8; USIZE_SIZE] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | / self.slice [INFO] [stdout] 236 | | .get_unchecked(byte_index..byte_index + USIZE_SIZE) [INFO] [stdout] | |___________________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:244:43 [INFO] [stdout] | [INFO] [stdout] 244 | let raw_bytes: [u8; USIZE_SIZE] = self.read_usize_bytes(byte_index, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 243 | unsafe fn read_shifted_usize(&self, byte_index: usize, shift: usize, end: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:253:39 [INFO] [stdout] | [INFO] [stdout] 253 | let bytes: [u8; USIZE_SIZE] = self.read_usize_bytes(byte_index, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | unsafe fn read_usize(&self, position: usize, count: usize, end: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:323:20 [INFO] [stdout] | [INFO] [stdout] 323 | let byte = self.slice.get_unchecked(byte_index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 319 | pub unsafe fn read_bool_unchecked(&self, position: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_fit_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | self.read_fit_usize(position, count, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:396:5 [INFO] [stdout] | [INFO] [stdout] 396 | / pub unsafe fn read_int_unchecked(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 397 | | where [INFO] [stdout] 398 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt + BitXor + WrappingSub, [INFO] [stdout] | |___________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_no_fit_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | self.read_no_fit_usize(position, count, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:423:19 [INFO] [stdout] | [INFO] [stdout] 423 | let raw = self.read_usize(position, count, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:419:5 [INFO] [stdout] | [INFO] [stdout] 419 | / unsafe fn read_fit_usize(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 420 | | where [INFO] [stdout] 421 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt, [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:439:42 [INFO] [stdout] | [INFO] [stdout] 439 | let data = T::from_unchecked(self.read_usize(read_pos, read, end)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:427:5 [INFO] [stdout] | [INFO] [stdout] 427 | / unsafe fn read_no_fit_usize(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 428 | | where [INFO] [stdout] 429 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt, [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:787:25 [INFO] [stdout] | [INFO] [stdout] 787 | let mut array = MaybeUninit::<[MaybeUninit; N]>::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/read.rs:781:5 [INFO] [stdout] | [INFO] [stdout] 781 | / unsafe fn read_unchecked( [INFO] [stdout] 782 | | stream: &mut BitReadStream<'a, E>, [INFO] [stdout] 783 | | size: usize, [INFO] [stdout] 784 | | end: bool, [INFO] [stdout] 785 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readstream::BitReadStream::<'a, E>::read_sized_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:791:23 [INFO] [stdout] | [INFO] [stdout] 791 | let val = stream.read_sized_unchecked(size, end)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:792:13 [INFO] [stdout] | [INFO] [stdout] 792 | item.as_mut_ptr().write(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/read.rs:795:12 [INFO] [stdout] | [INFO] [stdout] 795 | Ok((&array as *const _ as *const [T; N]).read()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_shifted_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:535:27 [INFO] [stdout] | [INFO] [stdout] 535 | let raw = self.read_shifted_usize(read_pos, shift, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 521 | pub unsafe fn read_bytes_unchecked(&self, position: usize, byte_count: usize) -> Cow<'a, [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_shifted_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:549:25 [INFO] [stdout] | [INFO] [stdout] 549 | let bytes = self.read_shifted_usize(read_pos, shift, true).to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:555:27 [INFO] [stdout] | [INFO] [stdout] 555 | data.push(self.read_int_unchecked::(pos, 8, true)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:228:34 [INFO] [stdout] | [INFO] [stdout] 228 | .copy_from_slice(self.slice.get_unchecked(byte_index..byte_index + count)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | unsafe fn read_usize_bytes(&self, byte_index: usize, end: bool) -> [u8; USIZE_SIZE] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | / self.slice [INFO] [stdout] 236 | | .get_unchecked(byte_index..byte_index + USIZE_SIZE) [INFO] [stdout] | |___________________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:244:43 [INFO] [stdout] | [INFO] [stdout] 244 | let raw_bytes: [u8; USIZE_SIZE] = self.read_usize_bytes(byte_index, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 243 | unsafe fn read_shifted_usize(&self, byte_index: usize, shift: usize, end: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:253:39 [INFO] [stdout] | [INFO] [stdout] 253 | let bytes: [u8; USIZE_SIZE] = self.read_usize_bytes(byte_index, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | unsafe fn read_usize(&self, position: usize, count: usize, end: bool) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:756:23 [INFO] [stdout] | [INFO] [stdout] 756 | let int = self.read_int_unchecked(position, size_of::() * 8, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:745:5 [INFO] [stdout] | [INFO] [stdout] 745 | / pub unsafe fn read_float_unchecked(&self, position: usize, end: bool) -> T [INFO] [stdout] 746 | | where [INFO] [stdout] 747 | | T: Float + UncheckedPrimitiveFloat, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::::get_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:323:20 [INFO] [stdout] | [INFO] [stdout] 323 | let byte = self.slice.get_unchecked(byte_index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 319 | pub unsafe fn read_bool_unchecked(&self, position: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_fit_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | self.read_fit_usize(position, count, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:396:5 [INFO] [stdout] | [INFO] [stdout] 396 | / pub unsafe fn read_int_unchecked(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 397 | | where [INFO] [stdout] 398 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt + BitXor + WrappingSub, [INFO] [stdout] | |___________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_no_fit_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | self.read_no_fit_usize(position, count, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:423:19 [INFO] [stdout] | [INFO] [stdout] 423 | let raw = self.read_usize(position, count, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:419:5 [INFO] [stdout] | [INFO] [stdout] 419 | / unsafe fn read_fit_usize(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 420 | | where [INFO] [stdout] 421 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt, [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:439:42 [INFO] [stdout] | [INFO] [stdout] 439 | let data = T::from_unchecked(self.read_usize(read_pos, read, end)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:427:5 [INFO] [stdout] | [INFO] [stdout] 427 | / unsafe fn read_no_fit_usize(&self, position: usize, count: usize, end: bool) -> T [INFO] [stdout] 428 | | where [INFO] [stdout] 429 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt, [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_bool_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | let result = self.buffer.read_bool_unchecked(self.pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn read_bool_unchecked(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_shifted_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:535:27 [INFO] [stdout] | [INFO] [stdout] 535 | let raw = self.read_shifted_usize(read_pos, shift, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 521 | pub unsafe fn read_bytes_unchecked(&self, position: usize, byte_count: usize) -> Cow<'a, [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:159:22 [INFO] [stdout] | [INFO] [stdout] 159 | let result = self.buffer.read_int_unchecked(self.pos, count, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub unsafe fn read_int_unchecked(&mut self, count: usize, end: bool) -> T [INFO] [stdout] 156 | | where [INFO] [stdout] 157 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt + WrappingSub, [INFO] [stdout] | |__________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_shifted_usize` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:549:25 [INFO] [stdout] | [INFO] [stdout] 549 | let bytes = self.read_shifted_usize(read_pos, shift, true).to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:555:27 [INFO] [stdout] | [INFO] [stdout] 555 | data.push(self.read_int_unchecked::(pos, 8, true)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | let result = self.buffer.read_float_unchecked(self.pos, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 205 | / pub unsafe fn read_float_unchecked(&mut self, end: bool) -> T [INFO] [stdout] 206 | | where [INFO] [stdout] 207 | | T: Float + UncheckedPrimitiveFloat, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_bytes_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:256:22 [INFO] [stdout] | [INFO] [stdout] 256 | let result = self.buffer.read_bytes_unchecked(self.pos, byte_count); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 254 | pub unsafe fn read_bytes_unchecked(&mut self, byte_count: usize) -> Cow<'a, [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | T::read_unchecked(self, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:635:5 [INFO] [stdout] | [INFO] [stdout] 635 | pub unsafe fn read_unchecked>(&mut self, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitReadSized::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:708:9 [INFO] [stdout] | [INFO] [stdout] 708 | T::read_unchecked(self, size, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:703:5 [INFO] [stdout] | [INFO] [stdout] 703 | / pub unsafe fn read_sized_unchecked>( [INFO] [stdout] 704 | | &mut self, [INFO] [stdout] 705 | | size: usize, [INFO] [stdout] 706 | | end: bool, [INFO] [stdout] 707 | | ) -> Result { [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readbuffer.rs:756:23 [INFO] [stdout] | [INFO] [stdout] 756 | let int = self.read_int_unchecked(position, size_of::() * 8, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readbuffer.rs:745:5 [INFO] [stdout] | [INFO] [stdout] 745 | / pub unsafe fn read_float_unchecked(&self, position: usize, end: bool) -> T [INFO] [stdout] 746 | | where [INFO] [stdout] 747 | | T: Float + UncheckedPrimitiveFloat, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_bool_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | let result = self.buffer.read_bool_unchecked(self.pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn read_bool_unchecked(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_int_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:159:22 [INFO] [stdout] | [INFO] [stdout] 159 | let result = self.buffer.read_int_unchecked(self.pos, count, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub unsafe fn read_int_unchecked(&mut self, count: usize, end: bool) -> T [INFO] [stdout] 156 | | where [INFO] [stdout] 157 | | T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt + WrappingSub, [INFO] [stdout] | |__________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_float_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | let result = self.buffer.read_float_unchecked(self.pos, end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 205 | / pub unsafe fn read_float_unchecked(&mut self, end: bool) -> T [INFO] [stdout] 206 | | where [INFO] [stdout] 207 | | T: Float + UncheckedPrimitiveFloat, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `readbuffer::BitReadBuffer::<'a, E>::read_bytes_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:256:22 [INFO] [stdout] | [INFO] [stdout] 256 | let result = self.buffer.read_bytes_unchecked(self.pos, byte_count); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 254 | pub unsafe fn read_bytes_unchecked(&mut self, byte_count: usize) -> Cow<'a, [u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitRead::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | T::read_unchecked(self, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:635:5 [INFO] [stdout] | [INFO] [stdout] 635 | pub unsafe fn read_unchecked>(&mut self, end: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `read::BitReadSized::read_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/readstream.rs:708:9 [INFO] [stdout] | [INFO] [stdout] 708 | T::read_unchecked(self, size, end) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/readstream.rs:703:5 [INFO] [stdout] | [INFO] [stdout] 703 | / pub unsafe fn read_sized_unchecked>( [INFO] [stdout] 704 | | &mut self, [INFO] [stdout] 705 | | size: usize, [INFO] [stdout] 706 | | end: bool, [INFO] [stdout] 707 | | ) -> Result { [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 72 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 72 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bitbuffer` (lib test) due to 4 previous errors; 72 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `bitbuffer` (lib) due to 4 previous errors; 72 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "6a5dfdd77bce38522454143def7c9ab8353a9887486bd171161ba01981b007a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a5dfdd77bce38522454143def7c9ab8353a9887486bd171161ba01981b007a4", kill_on_drop: false }` [INFO] [stdout] 6a5dfdd77bce38522454143def7c9ab8353a9887486bd171161ba01981b007a4