[INFO] fetching crate simple_parse 0.6.3... [INFO] testing simple_parse-0.6.3 against 1.90.0 for beta-1.91-3 [INFO] extracting crate simple_parse 0.6.3 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate simple_parse 0.6.3 [INFO] finished tweaking crates.io crate simple_parse 0.6.3 [INFO] tweaked toml for crates.io crate simple_parse 0.6.3 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate simple_parse 0.6.3 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate simple_parse 0.6.3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded darling_core v0.12.2 [INFO] [stderr] Downloaded darling_macro v0.12.2 [INFO] [stderr] Downloaded simple_parse_derive v0.6.3 [INFO] [stderr] Downloaded darling v0.12.2 [INFO] [stderr] Downloaded env_logger v0.8.3 [INFO] [stderr] Downloaded regex v1.4.5 [INFO] [stderr] Downloaded syn v1.0.64 [INFO] [stderr] Downloaded regex-syntax v0.6.23 [INFO] [stderr] Downloaded libc v0.2.89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dffe2960c81a07590aa599caf21b5765a9c952bba51827e53251eef16b247881 [INFO] running `Command { std: "docker" "start" "-a" "dffe2960c81a07590aa599caf21b5765a9c952bba51827e53251eef16b247881", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dffe2960c81a07590aa599caf21b5765a9c952bba51827e53251eef16b247881", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dffe2960c81a07590aa599caf21b5765a9c952bba51827e53251eef16b247881", kill_on_drop: false }` [INFO] [stdout] dffe2960c81a07590aa599caf21b5765a9c952bba51827e53251eef16b247881 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01e51201ff4c4695d3ff27d0f7c86af6b84f829af610f302bd36e5c2d3e05dee [INFO] running `Command { std: "docker" "start" "-a" "01e51201ff4c4695d3ff27d0f7c86af6b84f829af610f302bd36e5c2d3e05dee", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling darling_core v0.12.2 [INFO] [stderr] Compiling darling_macro v0.12.2 [INFO] [stderr] Compiling darling v0.12.2 [INFO] [stderr] Compiling simple_parse_derive v0.6.3 [INFO] [stderr] Compiling simple_parse v0.6.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `opt_hints::*` [INFO] [stdout] --> src/default_impls/mod.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | pub use opt_hints::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `raw::*` [INFO] [stdout] --> src/default_impls/mod.rs:390:9 [INFO] [stdout] | [INFO] [stdout] 390 | pub use raw::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reader::*` [INFO] [stdout] --> src/default_impls/mod.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | pub use reader::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `writer::*` [INFO] [stdout] --> src/default_impls/mod.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 396 | pub use writer::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default_impls::*` [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use default_impls::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:138:1 [INFO] [stdout] | [INFO] [stdout] 138 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:189:1 [INFO] [stdout] | [INFO] [stdout] 189 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:244:1 [INFO] [stdout] | [INFO] [stdout] 244 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:319:1 [INFO] [stdout] | [INFO] [stdout] 319 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:344:1 [INFO] [stdout] | [INFO] [stdout] 344 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:357:1 [INFO] [stdout] | [INFO] [stdout] 357 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:372:1 [INFO] [stdout] | [INFO] [stdout] 372 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:378:1 [INFO] [stdout] | [INFO] [stdout] 378 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/raw.rs:317:1 [INFO] [stdout] | [INFO] [stdout] 317 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/reader.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | / impl_primitive!( [INFO] [stdout] 148 | | NonZeroU8 as u8, [INFO] [stdout] 149 | | nonzero_from_ptr, [INFO] [stdout] 150 | | nonzeroref_from_ptr, [INFO] [stdout] 151 | | nonzeroslice_from_ptr [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[warn(invalid_reference_casting)]` on by default [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | / impl_primitive!( [INFO] [stdout] 148 | | NonZeroU8 as u8, [INFO] [stdout] 149 | | nonzero_from_ptr, [INFO] [stdout] 150 | | nonzeroref_from_ptr, [INFO] [stdout] 151 | | nonzeroslice_from_ptr [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | / impl_primitive!( [INFO] [stdout] 148 | | NonZeroU8 as u8, [INFO] [stdout] 149 | | nonzero_from_ptr, [INFO] [stdout] 150 | | nonzeroref_from_ptr, [INFO] [stdout] 151 | | nonzeroslice_from_ptr [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | / impl_primitive!( [INFO] [stdout] 154 | | NonZeroU16 as u16, [INFO] [stdout] 155 | | nonzero_from_ptr, [INFO] [stdout] 156 | | nonzeroref_from_ptr, [INFO] [stdout] 157 | | nonzeroslice_from_ptr [INFO] [stdout] 158 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | / impl_primitive!( [INFO] [stdout] 154 | | NonZeroU16 as u16, [INFO] [stdout] 155 | | nonzero_from_ptr, [INFO] [stdout] 156 | | nonzeroref_from_ptr, [INFO] [stdout] 157 | | nonzeroslice_from_ptr [INFO] [stdout] 158 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | / impl_primitive!( [INFO] [stdout] 154 | | NonZeroU16 as u16, [INFO] [stdout] 155 | | nonzero_from_ptr, [INFO] [stdout] 156 | | nonzeroref_from_ptr, [INFO] [stdout] 157 | | nonzeroslice_from_ptr [INFO] [stdout] 158 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | / impl_primitive!( [INFO] [stdout] 160 | | NonZeroU32 as u32, [INFO] [stdout] 161 | | nonzero_from_ptr, [INFO] [stdout] 162 | | nonzeroref_from_ptr, [INFO] [stdout] 163 | | nonzeroslice_from_ptr [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | / impl_primitive!( [INFO] [stdout] 160 | | NonZeroU32 as u32, [INFO] [stdout] 161 | | nonzero_from_ptr, [INFO] [stdout] 162 | | nonzeroref_from_ptr, [INFO] [stdout] 163 | | nonzeroslice_from_ptr [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | / impl_primitive!( [INFO] [stdout] 160 | | NonZeroU32 as u32, [INFO] [stdout] 161 | | nonzero_from_ptr, [INFO] [stdout] 162 | | nonzeroref_from_ptr, [INFO] [stdout] 163 | | nonzeroslice_from_ptr [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | / impl_primitive!( [INFO] [stdout] 166 | | NonZeroU64 as u64, [INFO] [stdout] 167 | | nonzero_from_ptr, [INFO] [stdout] 168 | | nonzeroref_from_ptr, [INFO] [stdout] 169 | | nonzeroslice_from_ptr [INFO] [stdout] 170 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | / impl_primitive!( [INFO] [stdout] 166 | | NonZeroU64 as u64, [INFO] [stdout] 167 | | nonzero_from_ptr, [INFO] [stdout] 168 | | nonzeroref_from_ptr, [INFO] [stdout] 169 | | nonzeroslice_from_ptr [INFO] [stdout] 170 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | / impl_primitive!( [INFO] [stdout] 166 | | NonZeroU64 as u64, [INFO] [stdout] 167 | | nonzero_from_ptr, [INFO] [stdout] 168 | | nonzeroref_from_ptr, [INFO] [stdout] 169 | | nonzeroslice_from_ptr [INFO] [stdout] 170 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / impl_primitive!( [INFO] [stdout] 172 | | NonZeroU128 as u128, [INFO] [stdout] 173 | | nonzero_from_ptr, [INFO] [stdout] 174 | | nonzeroref_from_ptr, [INFO] [stdout] 175 | | nonzeroslice_from_ptr [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / impl_primitive!( [INFO] [stdout] 172 | | NonZeroU128 as u128, [INFO] [stdout] 173 | | nonzero_from_ptr, [INFO] [stdout] 174 | | nonzeroref_from_ptr, [INFO] [stdout] 175 | | nonzeroslice_from_ptr [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / impl_primitive!( [INFO] [stdout] 172 | | NonZeroU128 as u128, [INFO] [stdout] 173 | | nonzero_from_ptr, [INFO] [stdout] 174 | | nonzeroref_from_ptr, [INFO] [stdout] 175 | | nonzeroslice_from_ptr [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | / impl_primitive!( [INFO] [stdout] 178 | | NonZeroUsize as usize, [INFO] [stdout] 179 | | nonzero_from_ptr, [INFO] [stdout] 180 | | nonzeroref_from_ptr, [INFO] [stdout] 181 | | nonzeroslice_from_ptr [INFO] [stdout] 182 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | / impl_primitive!( [INFO] [stdout] 178 | | NonZeroUsize as usize, [INFO] [stdout] 179 | | nonzero_from_ptr, [INFO] [stdout] 180 | | nonzeroref_from_ptr, [INFO] [stdout] 181 | | nonzeroslice_from_ptr [INFO] [stdout] 182 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | / impl_primitive!( [INFO] [stdout] 178 | | NonZeroUsize as usize, [INFO] [stdout] 179 | | nonzero_from_ptr, [INFO] [stdout] 180 | | nonzeroref_from_ptr, [INFO] [stdout] 181 | | nonzeroslice_from_ptr [INFO] [stdout] 182 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | / impl_primitive!( [INFO] [stdout] 184 | | NonZeroI8 as i8, [INFO] [stdout] 185 | | nonzero_from_ptr, [INFO] [stdout] 186 | | nonzeroref_from_ptr, [INFO] [stdout] 187 | | nonzeroslice_from_ptr [INFO] [stdout] 188 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | / impl_primitive!( [INFO] [stdout] 184 | | NonZeroI8 as i8, [INFO] [stdout] 185 | | nonzero_from_ptr, [INFO] [stdout] 186 | | nonzeroref_from_ptr, [INFO] [stdout] 187 | | nonzeroslice_from_ptr [INFO] [stdout] 188 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | / impl_primitive!( [INFO] [stdout] 184 | | NonZeroI8 as i8, [INFO] [stdout] 185 | | nonzero_from_ptr, [INFO] [stdout] 186 | | nonzeroref_from_ptr, [INFO] [stdout] 187 | | nonzeroslice_from_ptr [INFO] [stdout] 188 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | / impl_primitive!( [INFO] [stdout] 190 | | NonZeroI16 as i16, [INFO] [stdout] 191 | | nonzero_from_ptr, [INFO] [stdout] 192 | | nonzeroref_from_ptr, [INFO] [stdout] 193 | | nonzeroslice_from_ptr [INFO] [stdout] 194 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | / impl_primitive!( [INFO] [stdout] 190 | | NonZeroI16 as i16, [INFO] [stdout] 191 | | nonzero_from_ptr, [INFO] [stdout] 192 | | nonzeroref_from_ptr, [INFO] [stdout] 193 | | nonzeroslice_from_ptr [INFO] [stdout] 194 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | / impl_primitive!( [INFO] [stdout] 190 | | NonZeroI16 as i16, [INFO] [stdout] 191 | | nonzero_from_ptr, [INFO] [stdout] 192 | | nonzeroref_from_ptr, [INFO] [stdout] 193 | | nonzeroslice_from_ptr [INFO] [stdout] 194 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | / impl_primitive!( [INFO] [stdout] 196 | | NonZeroI32 as i32, [INFO] [stdout] 197 | | nonzero_from_ptr, [INFO] [stdout] 198 | | nonzeroref_from_ptr, [INFO] [stdout] 199 | | nonzeroslice_from_ptr [INFO] [stdout] 200 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | / impl_primitive!( [INFO] [stdout] 196 | | NonZeroI32 as i32, [INFO] [stdout] 197 | | nonzero_from_ptr, [INFO] [stdout] 198 | | nonzeroref_from_ptr, [INFO] [stdout] 199 | | nonzeroslice_from_ptr [INFO] [stdout] 200 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | / impl_primitive!( [INFO] [stdout] 196 | | NonZeroI32 as i32, [INFO] [stdout] 197 | | nonzero_from_ptr, [INFO] [stdout] 198 | | nonzeroref_from_ptr, [INFO] [stdout] 199 | | nonzeroslice_from_ptr [INFO] [stdout] 200 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | / impl_primitive!( [INFO] [stdout] 202 | | NonZeroI64 as i64, [INFO] [stdout] 203 | | nonzero_from_ptr, [INFO] [stdout] 204 | | nonzeroref_from_ptr, [INFO] [stdout] 205 | | nonzeroslice_from_ptr [INFO] [stdout] 206 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | / impl_primitive!( [INFO] [stdout] 202 | | NonZeroI64 as i64, [INFO] [stdout] 203 | | nonzero_from_ptr, [INFO] [stdout] 204 | | nonzeroref_from_ptr, [INFO] [stdout] 205 | | nonzeroslice_from_ptr [INFO] [stdout] 206 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | / impl_primitive!( [INFO] [stdout] 202 | | NonZeroI64 as i64, [INFO] [stdout] 203 | | nonzero_from_ptr, [INFO] [stdout] 204 | | nonzeroref_from_ptr, [INFO] [stdout] 205 | | nonzeroslice_from_ptr [INFO] [stdout] 206 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | / impl_primitive!( [INFO] [stdout] 208 | | NonZeroI128 as i128, [INFO] [stdout] 209 | | nonzero_from_ptr, [INFO] [stdout] 210 | | nonzeroref_from_ptr, [INFO] [stdout] 211 | | nonzeroslice_from_ptr [INFO] [stdout] 212 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | / impl_primitive!( [INFO] [stdout] 208 | | NonZeroI128 as i128, [INFO] [stdout] 209 | | nonzero_from_ptr, [INFO] [stdout] 210 | | nonzeroref_from_ptr, [INFO] [stdout] 211 | | nonzeroslice_from_ptr [INFO] [stdout] 212 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | / impl_primitive!( [INFO] [stdout] 208 | | NonZeroI128 as i128, [INFO] [stdout] 209 | | nonzero_from_ptr, [INFO] [stdout] 210 | | nonzeroref_from_ptr, [INFO] [stdout] 211 | | nonzeroslice_from_ptr [INFO] [stdout] 212 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | / impl_primitive!( [INFO] [stdout] 214 | | NonZeroIsize as isize, [INFO] [stdout] 215 | | nonzero_from_ptr, [INFO] [stdout] 216 | | nonzeroref_from_ptr, [INFO] [stdout] 217 | | nonzeroslice_from_ptr [INFO] [stdout] 218 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | / impl_primitive!( [INFO] [stdout] 214 | | NonZeroIsize as isize, [INFO] [stdout] 215 | | nonzero_from_ptr, [INFO] [stdout] 216 | | nonzeroref_from_ptr, [INFO] [stdout] 217 | | nonzeroslice_from_ptr [INFO] [stdout] 218 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | / impl_primitive!( [INFO] [stdout] 214 | | NonZeroIsize as isize, [INFO] [stdout] 215 | | nonzero_from_ptr, [INFO] [stdout] 216 | | nonzeroref_from_ptr, [INFO] [stdout] 217 | | nonzeroslice_from_ptr [INFO] [stdout] 218 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.93s [INFO] running `Command { std: "docker" "inspect" "01e51201ff4c4695d3ff27d0f7c86af6b84f829af610f302bd36e5c2d3e05dee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01e51201ff4c4695d3ff27d0f7c86af6b84f829af610f302bd36e5c2d3e05dee", kill_on_drop: false }` [INFO] [stdout] 01e51201ff4c4695d3ff27d0f7c86af6b84f829af610f302bd36e5c2d3e05dee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edbddbfdf2b7f52147d832dae875ca5a31c187f561ddb0f73f3357f9b847e8c4 [INFO] running `Command { std: "docker" "start" "-a" "edbddbfdf2b7f52147d832dae875ca5a31c187f561ddb0f73f3357f9b847e8c4", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling libc v0.2.89 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling regex-syntax v0.6.23 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stdout] warning: unused import: `opt_hints::*` [INFO] [stdout] --> src/default_impls/mod.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | pub use opt_hints::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `raw::*` [INFO] [stdout] --> src/default_impls/mod.rs:390:9 [INFO] [stdout] | [INFO] [stdout] 390 | pub use raw::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reader::*` [INFO] [stdout] --> src/default_impls/mod.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | pub use reader::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `writer::*` [INFO] [stdout] --> src/default_impls/mod.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 396 | pub use writer::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default_impls::*` [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use default_impls::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:138:1 [INFO] [stdout] | [INFO] [stdout] 138 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:189:1 [INFO] [stdout] | [INFO] [stdout] 189 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:244:1 [INFO] [stdout] | [INFO] [stdout] 244 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:319:1 [INFO] [stdout] | [INFO] [stdout] 319 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:344:1 [INFO] [stdout] | [INFO] [stdout] 344 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:357:1 [INFO] [stdout] | [INFO] [stdout] 357 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:372:1 [INFO] [stdout] | [INFO] [stdout] 372 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:378:1 [INFO] [stdout] | [INFO] [stdout] 378 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/raw.rs:317:1 [INFO] [stdout] | [INFO] [stdout] 317 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/reader.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | / impl_primitive!( [INFO] [stdout] 148 | | NonZeroU8 as u8, [INFO] [stdout] 149 | | nonzero_from_ptr, [INFO] [stdout] 150 | | nonzeroref_from_ptr, [INFO] [stdout] 151 | | nonzeroslice_from_ptr [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[warn(invalid_reference_casting)]` on by default [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | / impl_primitive!( [INFO] [stdout] 148 | | NonZeroU8 as u8, [INFO] [stdout] 149 | | nonzero_from_ptr, [INFO] [stdout] 150 | | nonzeroref_from_ptr, [INFO] [stdout] 151 | | nonzeroslice_from_ptr [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | / impl_primitive!( [INFO] [stdout] 148 | | NonZeroU8 as u8, [INFO] [stdout] 149 | | nonzero_from_ptr, [INFO] [stdout] 150 | | nonzeroref_from_ptr, [INFO] [stdout] 151 | | nonzeroslice_from_ptr [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | / impl_primitive!( [INFO] [stdout] 154 | | NonZeroU16 as u16, [INFO] [stdout] 155 | | nonzero_from_ptr, [INFO] [stdout] 156 | | nonzeroref_from_ptr, [INFO] [stdout] 157 | | nonzeroslice_from_ptr [INFO] [stdout] 158 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | / impl_primitive!( [INFO] [stdout] 154 | | NonZeroU16 as u16, [INFO] [stdout] 155 | | nonzero_from_ptr, [INFO] [stdout] 156 | | nonzeroref_from_ptr, [INFO] [stdout] 157 | | nonzeroslice_from_ptr [INFO] [stdout] 158 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | / impl_primitive!( [INFO] [stdout] 154 | | NonZeroU16 as u16, [INFO] [stdout] 155 | | nonzero_from_ptr, [INFO] [stdout] 156 | | nonzeroref_from_ptr, [INFO] [stdout] 157 | | nonzeroslice_from_ptr [INFO] [stdout] 158 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | / impl_primitive!( [INFO] [stdout] 160 | | NonZeroU32 as u32, [INFO] [stdout] 161 | | nonzero_from_ptr, [INFO] [stdout] 162 | | nonzeroref_from_ptr, [INFO] [stdout] 163 | | nonzeroslice_from_ptr [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | / impl_primitive!( [INFO] [stdout] 160 | | NonZeroU32 as u32, [INFO] [stdout] 161 | | nonzero_from_ptr, [INFO] [stdout] 162 | | nonzeroref_from_ptr, [INFO] [stdout] 163 | | nonzeroslice_from_ptr [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | / impl_primitive!( [INFO] [stdout] 160 | | NonZeroU32 as u32, [INFO] [stdout] 161 | | nonzero_from_ptr, [INFO] [stdout] 162 | | nonzeroref_from_ptr, [INFO] [stdout] 163 | | nonzeroslice_from_ptr [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | / impl_primitive!( [INFO] [stdout] 166 | | NonZeroU64 as u64, [INFO] [stdout] 167 | | nonzero_from_ptr, [INFO] [stdout] 168 | | nonzeroref_from_ptr, [INFO] [stdout] 169 | | nonzeroslice_from_ptr [INFO] [stdout] 170 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | / impl_primitive!( [INFO] [stdout] 166 | | NonZeroU64 as u64, [INFO] [stdout] 167 | | nonzero_from_ptr, [INFO] [stdout] 168 | | nonzeroref_from_ptr, [INFO] [stdout] 169 | | nonzeroslice_from_ptr [INFO] [stdout] 170 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | / impl_primitive!( [INFO] [stdout] 166 | | NonZeroU64 as u64, [INFO] [stdout] 167 | | nonzero_from_ptr, [INFO] [stdout] 168 | | nonzeroref_from_ptr, [INFO] [stdout] 169 | | nonzeroslice_from_ptr [INFO] [stdout] 170 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / impl_primitive!( [INFO] [stdout] 172 | | NonZeroU128 as u128, [INFO] [stdout] 173 | | nonzero_from_ptr, [INFO] [stdout] 174 | | nonzeroref_from_ptr, [INFO] [stdout] 175 | | nonzeroslice_from_ptr [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / impl_primitive!( [INFO] [stdout] 172 | | NonZeroU128 as u128, [INFO] [stdout] 173 | | nonzero_from_ptr, [INFO] [stdout] 174 | | nonzeroref_from_ptr, [INFO] [stdout] 175 | | nonzeroslice_from_ptr [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / impl_primitive!( [INFO] [stdout] 172 | | NonZeroU128 as u128, [INFO] [stdout] 173 | | nonzero_from_ptr, [INFO] [stdout] 174 | | nonzeroref_from_ptr, [INFO] [stdout] 175 | | nonzeroslice_from_ptr [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | / impl_primitive!( [INFO] [stdout] 178 | | NonZeroUsize as usize, [INFO] [stdout] 179 | | nonzero_from_ptr, [INFO] [stdout] 180 | | nonzeroref_from_ptr, [INFO] [stdout] 181 | | nonzeroslice_from_ptr [INFO] [stdout] 182 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | / impl_primitive!( [INFO] [stdout] 178 | | NonZeroUsize as usize, [INFO] [stdout] 179 | | nonzero_from_ptr, [INFO] [stdout] 180 | | nonzeroref_from_ptr, [INFO] [stdout] 181 | | nonzeroslice_from_ptr [INFO] [stdout] 182 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | / impl_primitive!( [INFO] [stdout] 178 | | NonZeroUsize as usize, [INFO] [stdout] 179 | | nonzero_from_ptr, [INFO] [stdout] 180 | | nonzeroref_from_ptr, [INFO] [stdout] 181 | | nonzeroslice_from_ptr [INFO] [stdout] 182 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | / impl_primitive!( [INFO] [stdout] 184 | | NonZeroI8 as i8, [INFO] [stdout] 185 | | nonzero_from_ptr, [INFO] [stdout] 186 | | nonzeroref_from_ptr, [INFO] [stdout] 187 | | nonzeroslice_from_ptr [INFO] [stdout] 188 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | / impl_primitive!( [INFO] [stdout] 184 | | NonZeroI8 as i8, [INFO] [stdout] 185 | | nonzero_from_ptr, [INFO] [stdout] 186 | | nonzeroref_from_ptr, [INFO] [stdout] 187 | | nonzeroslice_from_ptr [INFO] [stdout] 188 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | / impl_primitive!( [INFO] [stdout] 184 | | NonZeroI8 as i8, [INFO] [stdout] 185 | | nonzero_from_ptr, [INFO] [stdout] 186 | | nonzeroref_from_ptr, [INFO] [stdout] 187 | | nonzeroslice_from_ptr [INFO] [stdout] 188 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | / impl_primitive!( [INFO] [stdout] 190 | | NonZeroI16 as i16, [INFO] [stdout] 191 | | nonzero_from_ptr, [INFO] [stdout] 192 | | nonzeroref_from_ptr, [INFO] [stdout] 193 | | nonzeroslice_from_ptr [INFO] [stdout] 194 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | / impl_primitive!( [INFO] [stdout] 190 | | NonZeroI16 as i16, [INFO] [stdout] 191 | | nonzero_from_ptr, [INFO] [stdout] 192 | | nonzeroref_from_ptr, [INFO] [stdout] 193 | | nonzeroslice_from_ptr [INFO] [stdout] 194 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | / impl_primitive!( [INFO] [stdout] 190 | | NonZeroI16 as i16, [INFO] [stdout] 191 | | nonzero_from_ptr, [INFO] [stdout] 192 | | nonzeroref_from_ptr, [INFO] [stdout] 193 | | nonzeroslice_from_ptr [INFO] [stdout] 194 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | / impl_primitive!( [INFO] [stdout] 196 | | NonZeroI32 as i32, [INFO] [stdout] 197 | | nonzero_from_ptr, [INFO] [stdout] 198 | | nonzeroref_from_ptr, [INFO] [stdout] 199 | | nonzeroslice_from_ptr [INFO] [stdout] 200 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | / impl_primitive!( [INFO] [stdout] 196 | | NonZeroI32 as i32, [INFO] [stdout] 197 | | nonzero_from_ptr, [INFO] [stdout] 198 | | nonzeroref_from_ptr, [INFO] [stdout] 199 | | nonzeroslice_from_ptr [INFO] [stdout] 200 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | / impl_primitive!( [INFO] [stdout] 196 | | NonZeroI32 as i32, [INFO] [stdout] 197 | | nonzero_from_ptr, [INFO] [stdout] 198 | | nonzeroref_from_ptr, [INFO] [stdout] 199 | | nonzeroslice_from_ptr [INFO] [stdout] 200 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | / impl_primitive!( [INFO] [stdout] 202 | | NonZeroI64 as i64, [INFO] [stdout] 203 | | nonzero_from_ptr, [INFO] [stdout] 204 | | nonzeroref_from_ptr, [INFO] [stdout] 205 | | nonzeroslice_from_ptr [INFO] [stdout] 206 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | / impl_primitive!( [INFO] [stdout] 202 | | NonZeroI64 as i64, [INFO] [stdout] 203 | | nonzero_from_ptr, [INFO] [stdout] 204 | | nonzeroref_from_ptr, [INFO] [stdout] 205 | | nonzeroslice_from_ptr [INFO] [stdout] 206 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | / impl_primitive!( [INFO] [stdout] 202 | | NonZeroI64 as i64, [INFO] [stdout] 203 | | nonzero_from_ptr, [INFO] [stdout] 204 | | nonzeroref_from_ptr, [INFO] [stdout] 205 | | nonzeroslice_from_ptr [INFO] [stdout] 206 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | / impl_primitive!( [INFO] [stdout] 208 | | NonZeroI128 as i128, [INFO] [stdout] 209 | | nonzero_from_ptr, [INFO] [stdout] 210 | | nonzeroref_from_ptr, [INFO] [stdout] 211 | | nonzeroslice_from_ptr [INFO] [stdout] 212 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | / impl_primitive!( [INFO] [stdout] 208 | | NonZeroI128 as i128, [INFO] [stdout] 209 | | nonzero_from_ptr, [INFO] [stdout] 210 | | nonzeroref_from_ptr, [INFO] [stdout] 211 | | nonzeroslice_from_ptr [INFO] [stdout] 212 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | / impl_primitive!( [INFO] [stdout] 208 | | NonZeroI128 as i128, [INFO] [stdout] 209 | | nonzero_from_ptr, [INFO] [stdout] 210 | | nonzeroref_from_ptr, [INFO] [stdout] 211 | | nonzeroslice_from_ptr [INFO] [stdout] 212 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | / impl_primitive!( [INFO] [stdout] 214 | | NonZeroIsize as isize, [INFO] [stdout] 215 | | nonzero_from_ptr, [INFO] [stdout] 216 | | nonzeroref_from_ptr, [INFO] [stdout] 217 | | nonzeroslice_from_ptr [INFO] [stdout] 218 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | / impl_primitive!( [INFO] [stdout] 214 | | NonZeroIsize as isize, [INFO] [stdout] 215 | | nonzero_from_ptr, [INFO] [stdout] 216 | | nonzeroref_from_ptr, [INFO] [stdout] 217 | | nonzeroslice_from_ptr [INFO] [stdout] 218 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | / impl_primitive!( [INFO] [stdout] 214 | | NonZeroIsize as isize, [INFO] [stdout] 215 | | nonzero_from_ptr, [INFO] [stdout] 216 | | nonzeroref_from_ptr, [INFO] [stdout] 217 | | nonzeroslice_from_ptr [INFO] [stdout] 218 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling regex v1.4.5 [INFO] [stderr] Compiling env_logger v0.8.3 [INFO] [stderr] Compiling simple_parse v0.6.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `username_len` and `got_session` are never read [INFO] [stdout] --> examples/inspect.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct LoginInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 34 | username_len: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | got_session: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoginInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `opt_hints::*` [INFO] [stdout] --> src/default_impls/mod.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | pub use opt_hints::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `raw::*` [INFO] [stdout] --> src/default_impls/mod.rs:390:9 [INFO] [stdout] | [INFO] [stdout] 390 | pub use raw::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reader::*` [INFO] [stdout] --> src/default_impls/mod.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | pub use reader::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `writer::*` [INFO] [stdout] --> src/default_impls/mod.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 396 | pub use writer::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default_impls::*` [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use default_impls::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/tests/mod.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/tests/mod.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:138:1 [INFO] [stdout] | [INFO] [stdout] 138 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:189:1 [INFO] [stdout] | [INFO] [stdout] 189 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:244:1 [INFO] [stdout] | [INFO] [stdout] 244 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:319:1 [INFO] [stdout] | [INFO] [stdout] 319 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:344:1 [INFO] [stdout] | [INFO] [stdout] 344 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:357:1 [INFO] [stdout] | [INFO] [stdout] 357 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:372:1 [INFO] [stdout] | [INFO] [stdout] 372 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/mod.rs:378:1 [INFO] [stdout] | [INFO] [stdout] 378 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/raw.rs:317:1 [INFO] [stdout] | [INFO] [stdout] 317 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/default_impls/reader.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | / impl_primitive!( [INFO] [stdout] 148 | | NonZeroU8 as u8, [INFO] [stdout] 149 | | nonzero_from_ptr, [INFO] [stdout] 150 | | nonzeroref_from_ptr, [INFO] [stdout] 151 | | nonzeroslice_from_ptr [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[warn(invalid_reference_casting)]` on by default [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | / impl_primitive!( [INFO] [stdout] 148 | | NonZeroU8 as u8, [INFO] [stdout] 149 | | nonzero_from_ptr, [INFO] [stdout] 150 | | nonzeroref_from_ptr, [INFO] [stdout] 151 | | nonzeroslice_from_ptr [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | / impl_primitive!( [INFO] [stdout] 148 | | NonZeroU8 as u8, [INFO] [stdout] 149 | | nonzero_from_ptr, [INFO] [stdout] 150 | | nonzeroref_from_ptr, [INFO] [stdout] 151 | | nonzeroslice_from_ptr [INFO] [stdout] 152 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | / impl_primitive!( [INFO] [stdout] 154 | | NonZeroU16 as u16, [INFO] [stdout] 155 | | nonzero_from_ptr, [INFO] [stdout] 156 | | nonzeroref_from_ptr, [INFO] [stdout] 157 | | nonzeroslice_from_ptr [INFO] [stdout] 158 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | / impl_primitive!( [INFO] [stdout] 154 | | NonZeroU16 as u16, [INFO] [stdout] 155 | | nonzero_from_ptr, [INFO] [stdout] 156 | | nonzeroref_from_ptr, [INFO] [stdout] 157 | | nonzeroslice_from_ptr [INFO] [stdout] 158 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | / impl_primitive!( [INFO] [stdout] 154 | | NonZeroU16 as u16, [INFO] [stdout] 155 | | nonzero_from_ptr, [INFO] [stdout] 156 | | nonzeroref_from_ptr, [INFO] [stdout] 157 | | nonzeroslice_from_ptr [INFO] [stdout] 158 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | / impl_primitive!( [INFO] [stdout] 160 | | NonZeroU32 as u32, [INFO] [stdout] 161 | | nonzero_from_ptr, [INFO] [stdout] 162 | | nonzeroref_from_ptr, [INFO] [stdout] 163 | | nonzeroslice_from_ptr [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | / impl_primitive!( [INFO] [stdout] 160 | | NonZeroU32 as u32, [INFO] [stdout] 161 | | nonzero_from_ptr, [INFO] [stdout] 162 | | nonzeroref_from_ptr, [INFO] [stdout] 163 | | nonzeroslice_from_ptr [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | / impl_primitive!( [INFO] [stdout] 160 | | NonZeroU32 as u32, [INFO] [stdout] 161 | | nonzero_from_ptr, [INFO] [stdout] 162 | | nonzeroref_from_ptr, [INFO] [stdout] 163 | | nonzeroslice_from_ptr [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | / impl_primitive!( [INFO] [stdout] 166 | | NonZeroU64 as u64, [INFO] [stdout] 167 | | nonzero_from_ptr, [INFO] [stdout] 168 | | nonzeroref_from_ptr, [INFO] [stdout] 169 | | nonzeroslice_from_ptr [INFO] [stdout] 170 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | / impl_primitive!( [INFO] [stdout] 166 | | NonZeroU64 as u64, [INFO] [stdout] 167 | | nonzero_from_ptr, [INFO] [stdout] 168 | | nonzeroref_from_ptr, [INFO] [stdout] 169 | | nonzeroslice_from_ptr [INFO] [stdout] 170 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | / impl_primitive!( [INFO] [stdout] 166 | | NonZeroU64 as u64, [INFO] [stdout] 167 | | nonzero_from_ptr, [INFO] [stdout] 168 | | nonzeroref_from_ptr, [INFO] [stdout] 169 | | nonzeroslice_from_ptr [INFO] [stdout] 170 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / impl_primitive!( [INFO] [stdout] 172 | | NonZeroU128 as u128, [INFO] [stdout] 173 | | nonzero_from_ptr, [INFO] [stdout] 174 | | nonzeroref_from_ptr, [INFO] [stdout] 175 | | nonzeroslice_from_ptr [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / impl_primitive!( [INFO] [stdout] 172 | | NonZeroU128 as u128, [INFO] [stdout] 173 | | nonzero_from_ptr, [INFO] [stdout] 174 | | nonzeroref_from_ptr, [INFO] [stdout] 175 | | nonzeroslice_from_ptr [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / impl_primitive!( [INFO] [stdout] 172 | | NonZeroU128 as u128, [INFO] [stdout] 173 | | nonzero_from_ptr, [INFO] [stdout] 174 | | nonzeroref_from_ptr, [INFO] [stdout] 175 | | nonzeroslice_from_ptr [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | / impl_primitive!( [INFO] [stdout] 178 | | NonZeroUsize as usize, [INFO] [stdout] 179 | | nonzero_from_ptr, [INFO] [stdout] 180 | | nonzeroref_from_ptr, [INFO] [stdout] 181 | | nonzeroslice_from_ptr [INFO] [stdout] 182 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | / impl_primitive!( [INFO] [stdout] 178 | | NonZeroUsize as usize, [INFO] [stdout] 179 | | nonzero_from_ptr, [INFO] [stdout] 180 | | nonzeroref_from_ptr, [INFO] [stdout] 181 | | nonzeroslice_from_ptr [INFO] [stdout] 182 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | / impl_primitive!( [INFO] [stdout] 178 | | NonZeroUsize as usize, [INFO] [stdout] 179 | | nonzero_from_ptr, [INFO] [stdout] 180 | | nonzeroref_from_ptr, [INFO] [stdout] 181 | | nonzeroslice_from_ptr [INFO] [stdout] 182 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | / impl_primitive!( [INFO] [stdout] 184 | | NonZeroI8 as i8, [INFO] [stdout] 185 | | nonzero_from_ptr, [INFO] [stdout] 186 | | nonzeroref_from_ptr, [INFO] [stdout] 187 | | nonzeroslice_from_ptr [INFO] [stdout] 188 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | / impl_primitive!( [INFO] [stdout] 184 | | NonZeroI8 as i8, [INFO] [stdout] 185 | | nonzero_from_ptr, [INFO] [stdout] 186 | | nonzeroref_from_ptr, [INFO] [stdout] 187 | | nonzeroslice_from_ptr [INFO] [stdout] 188 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | / impl_primitive!( [INFO] [stdout] 184 | | NonZeroI8 as i8, [INFO] [stdout] 185 | | nonzero_from_ptr, [INFO] [stdout] 186 | | nonzeroref_from_ptr, [INFO] [stdout] 187 | | nonzeroslice_from_ptr [INFO] [stdout] 188 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | / impl_primitive!( [INFO] [stdout] 190 | | NonZeroI16 as i16, [INFO] [stdout] 191 | | nonzero_from_ptr, [INFO] [stdout] 192 | | nonzeroref_from_ptr, [INFO] [stdout] 193 | | nonzeroslice_from_ptr [INFO] [stdout] 194 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | / impl_primitive!( [INFO] [stdout] 190 | | NonZeroI16 as i16, [INFO] [stdout] 191 | | nonzero_from_ptr, [INFO] [stdout] 192 | | nonzeroref_from_ptr, [INFO] [stdout] 193 | | nonzeroslice_from_ptr [INFO] [stdout] 194 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | / impl_primitive!( [INFO] [stdout] 190 | | NonZeroI16 as i16, [INFO] [stdout] 191 | | nonzero_from_ptr, [INFO] [stdout] 192 | | nonzeroref_from_ptr, [INFO] [stdout] 193 | | nonzeroslice_from_ptr [INFO] [stdout] 194 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | / impl_primitive!( [INFO] [stdout] 196 | | NonZeroI32 as i32, [INFO] [stdout] 197 | | nonzero_from_ptr, [INFO] [stdout] 198 | | nonzeroref_from_ptr, [INFO] [stdout] 199 | | nonzeroslice_from_ptr [INFO] [stdout] 200 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | / impl_primitive!( [INFO] [stdout] 196 | | NonZeroI32 as i32, [INFO] [stdout] 197 | | nonzero_from_ptr, [INFO] [stdout] 198 | | nonzeroref_from_ptr, [INFO] [stdout] 199 | | nonzeroslice_from_ptr [INFO] [stdout] 200 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | / impl_primitive!( [INFO] [stdout] 196 | | NonZeroI32 as i32, [INFO] [stdout] 197 | | nonzero_from_ptr, [INFO] [stdout] 198 | | nonzeroref_from_ptr, [INFO] [stdout] 199 | | nonzeroslice_from_ptr [INFO] [stdout] 200 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | / impl_primitive!( [INFO] [stdout] 202 | | NonZeroI64 as i64, [INFO] [stdout] 203 | | nonzero_from_ptr, [INFO] [stdout] 204 | | nonzeroref_from_ptr, [INFO] [stdout] 205 | | nonzeroslice_from_ptr [INFO] [stdout] 206 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | / impl_primitive!( [INFO] [stdout] 202 | | NonZeroI64 as i64, [INFO] [stdout] 203 | | nonzero_from_ptr, [INFO] [stdout] 204 | | nonzeroref_from_ptr, [INFO] [stdout] 205 | | nonzeroslice_from_ptr [INFO] [stdout] 206 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | / impl_primitive!( [INFO] [stdout] 202 | | NonZeroI64 as i64, [INFO] [stdout] 203 | | nonzero_from_ptr, [INFO] [stdout] 204 | | nonzeroref_from_ptr, [INFO] [stdout] 205 | | nonzeroslice_from_ptr [INFO] [stdout] 206 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | / impl_primitive!( [INFO] [stdout] 208 | | NonZeroI128 as i128, [INFO] [stdout] 209 | | nonzero_from_ptr, [INFO] [stdout] 210 | | nonzeroref_from_ptr, [INFO] [stdout] 211 | | nonzeroslice_from_ptr [INFO] [stdout] 212 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | / impl_primitive!( [INFO] [stdout] 208 | | NonZeroI128 as i128, [INFO] [stdout] 209 | | nonzero_from_ptr, [INFO] [stdout] 210 | | nonzeroref_from_ptr, [INFO] [stdout] 211 | | nonzeroslice_from_ptr [INFO] [stdout] 212 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | / impl_primitive!( [INFO] [stdout] 208 | | NonZeroI128 as i128, [INFO] [stdout] 209 | | nonzero_from_ptr, [INFO] [stdout] 210 | | nonzeroref_from_ptr, [INFO] [stdout] 211 | | nonzeroslice_from_ptr [INFO] [stdout] 212 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | / impl_primitive!( [INFO] [stdout] 214 | | NonZeroIsize as isize, [INFO] [stdout] 215 | | nonzero_from_ptr, [INFO] [stdout] 216 | | nonzeroref_from_ptr, [INFO] [stdout] 217 | | nonzeroslice_from_ptr [INFO] [stdout] 218 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | / impl_primitive!( [INFO] [stdout] 214 | | NonZeroIsize as isize, [INFO] [stdout] 215 | | nonzero_from_ptr, [INFO] [stdout] 216 | | nonzeroref_from_ptr, [INFO] [stdout] 217 | | nonzeroslice_from_ptr [INFO] [stdout] 218 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/default_impls/raw.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | / impl_primitive!( [INFO] [stdout] 214 | | NonZeroIsize as isize, [INFO] [stdout] 215 | | nonzero_from_ptr, [INFO] [stdout] 216 | | nonzeroref_from_ptr, [INFO] [stdout] 217 | | nonzeroslice_from_ptr [INFO] [stdout] 218 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 11.35s [INFO] running `Command { std: "docker" "inspect" "edbddbfdf2b7f52147d832dae875ca5a31c187f561ddb0f73f3357f9b847e8c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edbddbfdf2b7f52147d832dae875ca5a31c187f561ddb0f73f3357f9b847e8c4", kill_on_drop: false }` [INFO] [stdout] edbddbfdf2b7f52147d832dae875ca5a31c187f561ddb0f73f3357f9b847e8c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c6bb31f6f59f752b45444a0df92293ac4600265cf86ff753cce9dc024b21bbb0 [INFO] running `Command { std: "docker" "start" "-a" "c6bb31f6f59f752b45444a0df92293ac4600265cf86ff753cce9dc024b21bbb0", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `opt_hints::*` [INFO] [stderr] --> src/default_impls/mod.rs:387:9 [INFO] [stderr] | [INFO] [stderr] 387 | pub use opt_hints::*; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `raw::*` [INFO] [stderr] --> src/default_impls/mod.rs:390:9 [INFO] [stderr] | [INFO] [stderr] 390 | pub use raw::*; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `reader::*` [INFO] [stderr] --> src/default_impls/mod.rs:393:9 [INFO] [stderr] | [INFO] [stderr] 393 | pub use reader::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `writer::*` [INFO] [stderr] --> src/default_impls/mod.rs:396:9 [INFO] [stderr] | [INFO] [stderr] 396 | pub use writer::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `default_impls::*` [INFO] [stderr] --> src/lib.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | pub use default_impls::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_attributes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:57:1 [INFO] [stderr] | [INFO] [stderr] 57 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:97:1 [INFO] [stderr] | [INFO] [stderr] 97 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:138:1 [INFO] [stderr] | [INFO] [stderr] 138 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:153:1 [INFO] [stderr] | [INFO] [stderr] 153 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:189:1 [INFO] [stderr] | [INFO] [stderr] 189 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:213:1 [INFO] [stderr] | [INFO] [stderr] 213 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:244:1 [INFO] [stderr] | [INFO] [stderr] 244 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:284:1 [INFO] [stderr] | [INFO] [stderr] 284 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:319:1 [INFO] [stderr] | [INFO] [stderr] 319 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:331:1 [INFO] [stderr] | [INFO] [stderr] 331 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:344:1 [INFO] [stderr] | [INFO] [stderr] 344 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:357:1 [INFO] [stderr] | [INFO] [stderr] 357 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:372:1 [INFO] [stderr] | [INFO] [stderr] 372 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:378:1 [INFO] [stderr] | [INFO] [stderr] 378 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/raw.rs:317:1 [INFO] [stderr] | [INFO] [stderr] 317 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/reader.rs:120:1 [INFO] [stderr] | [INFO] [stderr] 120 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 147 | / impl_primitive!( [INFO] [stderr] 148 | | NonZeroU8 as u8, [INFO] [stderr] 149 | | nonzero_from_ptr, [INFO] [stderr] 150 | | nonzeroref_from_ptr, [INFO] [stderr] 151 | | nonzeroslice_from_ptr [INFO] [stderr] 152 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: `#[warn(invalid_reference_casting)]` on by default [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 147 | / impl_primitive!( [INFO] [stderr] 148 | | NonZeroU8 as u8, [INFO] [stderr] 149 | | nonzero_from_ptr, [INFO] [stderr] 150 | | nonzeroref_from_ptr, [INFO] [stderr] 151 | | nonzeroslice_from_ptr [INFO] [stderr] 152 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 153 | / impl_primitive!( [INFO] [stderr] 154 | | NonZeroU16 as u16, [INFO] [stderr] 155 | | nonzero_from_ptr, [INFO] [stderr] 156 | | nonzeroref_from_ptr, [INFO] [stderr] 157 | | nonzeroslice_from_ptr [INFO] [stderr] 158 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 159 | / impl_primitive!( [INFO] [stderr] 160 | | NonZeroU32 as u32, [INFO] [stderr] 161 | | nonzero_from_ptr, [INFO] [stderr] 162 | | nonzeroref_from_ptr, [INFO] [stderr] 163 | | nonzeroslice_from_ptr [INFO] [stderr] 164 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 165 | / impl_primitive!( [INFO] [stderr] 166 | | NonZeroU64 as u64, [INFO] [stderr] 167 | | nonzero_from_ptr, [INFO] [stderr] 168 | | nonzeroref_from_ptr, [INFO] [stderr] 169 | | nonzeroslice_from_ptr [INFO] [stderr] 170 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 171 | / impl_primitive!( [INFO] [stderr] 172 | | NonZeroU128 as u128, [INFO] [stderr] 173 | | nonzero_from_ptr, [INFO] [stderr] 174 | | nonzeroref_from_ptr, [INFO] [stderr] 175 | | nonzeroslice_from_ptr [INFO] [stderr] 176 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 177 | / impl_primitive!( [INFO] [stderr] 178 | | NonZeroUsize as usize, [INFO] [stderr] 179 | | nonzero_from_ptr, [INFO] [stderr] 180 | | nonzeroref_from_ptr, [INFO] [stderr] 181 | | nonzeroslice_from_ptr [INFO] [stderr] 182 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 183 | / impl_primitive!( [INFO] [stderr] 184 | | NonZeroI8 as i8, [INFO] [stderr] 185 | | nonzero_from_ptr, [INFO] [stderr] 186 | | nonzeroref_from_ptr, [INFO] [stderr] 187 | | nonzeroslice_from_ptr [INFO] [stderr] 188 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 189 | / impl_primitive!( [INFO] [stderr] 190 | | NonZeroI16 as i16, [INFO] [stderr] 191 | | nonzero_from_ptr, [INFO] [stderr] 192 | | nonzeroref_from_ptr, [INFO] [stderr] 193 | | nonzeroslice_from_ptr [INFO] [stderr] 194 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 195 | / impl_primitive!( [INFO] [stderr] 196 | | NonZeroI32 as i32, [INFO] [stderr] 197 | | nonzero_from_ptr, [INFO] [stderr] 198 | | nonzeroref_from_ptr, [INFO] [stderr] 199 | | nonzeroslice_from_ptr [INFO] [stderr] 200 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 201 | / impl_primitive!( [INFO] [stderr] 202 | | NonZeroI64 as i64, [INFO] [stderr] 203 | | nonzero_from_ptr, [INFO] [stderr] 204 | | nonzeroref_from_ptr, [INFO] [stderr] 205 | | nonzeroslice_from_ptr [INFO] [stderr] 206 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 207 | / impl_primitive!( [INFO] [stderr] 208 | | NonZeroI128 as i128, [INFO] [stderr] 209 | | nonzero_from_ptr, [INFO] [stderr] 210 | | nonzeroref_from_ptr, [INFO] [stderr] 211 | | nonzeroslice_from_ptr [INFO] [stderr] 212 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> src/default_impls/raw.rs:121:23 [INFO] [stderr] | [INFO] [stderr] 121 | let r: $typ = &mut *(prim_ref as *const $as_typ as *mut $as_typ as *mut _); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 213 | / impl_primitive!( [INFO] [stderr] 214 | | NonZeroIsize as isize, [INFO] [stderr] 215 | | nonzero_from_ptr, [INFO] [stderr] 216 | | nonzeroref_from_ptr, [INFO] [stderr] 217 | | nonzeroslice_from_ptr [INFO] [stderr] 218 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: this warning originates in the macro `nonzeroref_from_ptr` which comes from the expansion of the macro `impl_primitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/tests/mod.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_attributes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/tests/mod.rs:82:1 [INFO] [stderr] | [INFO] [stderr] 82 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/default_impls/mod.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `simple_parse` (lib) generated 58 warnings (23 duplicates) (run `cargo fix --lib -p simple_parse` to apply 5 suggestions) [INFO] [stderr] warning: `simple_parse` (lib test) generated 60 warnings (57 duplicates) [INFO] [stderr] warning: fields `username_len` and `got_session` are never read [INFO] [stderr] --> examples/inspect.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 33 | pub struct LoginInfo { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 34 | username_len: u8, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stdout] [INFO] [stderr] 41 | got_session: bool, [INFO] [stdout] running 1 test [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LoginInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `simple_parse` (example "inspect") generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/simple_parse-478a127807c5b735) [INFO] [stdout] test tests::primitive_types ... FAILED [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- tests::primitive_types stdout ---- [INFO] [stdout] [INFO] [stdout] Empty Slice [INFO] [stdout] One byte short [INFO] [stdout] One byte extra [INFO] [stdout] Little Endian [INFO] [stdout] Big Endian [INFO] [stdout] u8 * 3 [INFO] [stdout] &u8 [INFO] [stdout] &[u8] with count [INFO] [stdout] [INFO] [stdout] Empty Slice [INFO] [stdout] One byte short [INFO] [stdout] One byte extra [INFO] [stdout] Little Endian [INFO] [stdout] Big Endian [INFO] [stdout] u16 * 3 [INFO] [stdout] &u16 [INFO] [stdout] &[u16] with count [INFO] [stdout] [INFO] [stdout] Empty Slice [INFO] [stdout] One byte short [INFO] [stdout] One byte extra [INFO] [stdout] Little Endian [INFO] [stdout] Big Endian [INFO] [stdout] u32 * 3 [INFO] [stdout] &u32 [INFO] [stdout] &[u32] with count [INFO] [stdout] [INFO] [stdout] Empty Slice [INFO] [stdout] One byte short [INFO] [stdout] One byte extra [INFO] [stdout] Little Endian [INFO] [stdout] Big Endian [INFO] [stdout] u64 * 3 [INFO] [stdout] &u64 [INFO] [stdout] &[u64] with count [INFO] [stdout] [INFO] [stdout] Empty Slice [INFO] [stdout] One byte short [INFO] [stdout] One byte extra [INFO] [stdout] Little Endian [INFO] [stdout] Big Endian [INFO] [stdout] u128 * 3 [INFO] [stdout] &u128 [INFO] [stdout] [INFO] [stdout] thread 'tests::primitive_types' panicked at src/tests/mod.rs:226:5: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: BadAlignment [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x56b847843d72 - std::backtrace_rs::backtrace::libunwind::trace::h2d45396358f41939 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x56b847843d72 - std::backtrace_rs::backtrace::trace_unsynchronized::hffcefc0b67f1d6e2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x56b847843d72 - std::sys::backtrace::_print_fmt::hd72f71d23b436b92 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x56b847843d72 - ::fmt::hdcfcb6d4c8489523 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x56b84786a4a3 - core::fmt::rt::Argument::fmt::h2c56b3114963061a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x56b84786a4a3 - core::fmt::write::h8a494366950f23bb [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x56b847840cf3 - std::io::default_write_fmt::h7b8824096454f323 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x56b847840cf3 - std::io::Write::write_fmt::h4e71294925c334d0 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x56b847843bc2 - std::sys::backtrace::BacktraceLock::print::hb2a626a81e06b2dc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x56b8478452e9 - std::panicking::default_hook::{{closure}}::h4f78485264f12d10 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x56b84784511e - std::panicking::default_hook::h2c66fc99e962531d [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x56b84780d6f4 - as core::ops::function::Fn>::call::hb6bd65493727d71a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 12: 0x56b84780d6f4 - test::test_main_with_exit_callback::{{closure}}::h60217ec76a0ece4a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x56b847845cbe - as core::ops::function::Fn>::call::h318e4efb8c1a5689 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 14: 0x56b847845cbe - std::panicking::rust_panic_with_hook::h33ac55f64bbd807d [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x56b847845a8a - std::panicking::begin_panic_handler::{{closure}}::h30e7cb89678a57fe [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x56b847844269 - std::sys::backtrace::__rust_end_short_backtrace::hed60f27456c16ced [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x56b84784571d - __rustc[de2ca18b4c54d5b8]::rust_begin_unwind [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x56b847867ac0 - core::panicking::panic_fmt::h62f63d096dd276af [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x56b847867f26 - core::result::unwrap_failed::h95bc3f5a607b2c95 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/result.rs:1765:5 [INFO] [stdout] 20: 0x56b84778d4bc - core::result::Result::unwrap::hdf357c41438dd106 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/result.rs:1167:23 [INFO] [stdout] 21: 0x56b84778d4bc - simple_parse::tests::primitive_types::ha1b4a3609f38ab18 [INFO] [stdout] at /opt/rustwide/workdir/src/tests/mod.rs:95:60 [INFO] [stdout] 22: 0x56b84777fbb7 - simple_parse::tests::primitive_types::{{closure}}::h1ce88e6eeaa5948d [INFO] [stdout] at /opt/rustwide/workdir/src/tests/mod.rs:221:21 [INFO] [stdout] 23: 0x56b8477c3956 - core::ops::function::FnOnce::call_once::h4d073b2a4112c945 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x56b847812f5b - core::ops::function::FnOnce::call_once::h1f9474f1347fff52 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 25: 0x56b847812f5b - test::__rust_begin_short_backtrace::ha52ab26e77157f03 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x56b847812095 - test::run_test_in_process::{{closure}}::h229c1a11a50b261f [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:74 [INFO] [stdout] 27: 0x56b847812095 - as core::ops::function::FnOnce<()>>::call_once::h78821afbf97b39a9 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x56b847812095 - std::panicking::catch_unwind::do_call::h53abf3ed5bd32ba3 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x56b847812095 - std::panicking::catch_unwind::h6deb5fe1e91873c9 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x56b847812095 - std::panic::catch_unwind::hea0829b6b565654b [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x56b847812095 - test::run_test_in_process::hdc44dfecea3db21b [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x56b847812095 - test::run_test::{{closure}}::h0364ba59bf23f652 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x56b8477d5c94 - test::run_test::{{closure}}::h32730b304eec05da [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x56b8477d5c94 - std::sys::backtrace::__rust_begin_short_backtrace::h177cb952fc54ad2c [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 35: 0x56b8477d966a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h119d903520007597 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x56b8477d966a - as core::ops::function::FnOnce<()>>::call_once::hab88401d606702a6 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x56b8477d966a - std::panicking::catch_unwind::do_call::h163fe12cca9901c2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x56b8477d966a - std::panicking::catch_unwind::he81557d0e17cc1bc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x56b8477d966a - std::panic::catch_unwind::hc2b8e79c20593955 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x56b8477d966a - std::thread::Builder::spawn_unchecked_::{{closure}}::hfa6b4978e07815cc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x56b8477d966a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hddcd7484a13fd793 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 42: 0x56b847848c3f - as core::ops::function::FnOnce>::call_once::h5924238c754de3b8 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 43: 0x56b847848c3f - std::sys::pal::unix::thread::Thread::new::thread_start::hb6e99e73da4d28f8 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/pal/unix/thread.rs:107:17 [INFO] [stdout] 44: 0x7aba640abaa4 - [INFO] [stdout] 45: 0x7aba64138a34 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] tests::primitive_types [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c6bb31f6f59f752b45444a0df92293ac4600265cf86ff753cce9dc024b21bbb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6bb31f6f59f752b45444a0df92293ac4600265cf86ff753cce9dc024b21bbb0", kill_on_drop: false }` [INFO] [stdout] c6bb31f6f59f752b45444a0df92293ac4600265cf86ff753cce9dc024b21bbb0