[INFO] fetching crate bern-kernel 0.3.1... [INFO] checking bern-kernel-0.3.1 against master#035b01b794602d5861daa43ac792f372f8981ed7 for 152214-denied [INFO] extracting crate bern-kernel 0.3.1 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate bern-kernel 0.3.1 [INFO] finished tweaking crates.io crate bern-kernel 0.3.1 [INFO] tweaked toml for crates.io crate bern-kernel 0.3.1 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate bern-kernel 0.3.1 on toolchain 035b01b794602d5861daa43ac792f372f8981ed7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+035b01b794602d5861daa43ac792f372f8981ed7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate bern-kernel 0.3.1 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" "+035b01b794602d5861daa43ac792f372f8981ed7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rtos-trace v0.2.0 [INFO] [stderr] Downloaded ufmt-write v0.1.0 [INFO] [stderr] Downloaded num v0.3.1 [INFO] [stderr] Downloaded rtt-target v0.3.1 [INFO] [stderr] Downloaded num-rational v0.3.2 [INFO] [stderr] Downloaded serde_core v1.0.221 [INFO] [stderr] Downloaded float-cmp v0.9.0 [INFO] [stderr] Downloaded defmt-parser v1.0.0 [INFO] [stderr] Downloaded fragile v2.0.1 [INFO] [stderr] Downloaded bern-arch v0.4.0 [INFO] [stderr] Downloaded downcast v0.11.0 [INFO] [stderr] Downloaded bern-conf v0.2.0 [INFO] [stderr] Downloaded mockall_derive v0.11.4 [INFO] [stderr] Downloaded serde_derive v1.0.221 [INFO] [stderr] Downloaded serde v1.0.221 [INFO] [stderr] Downloaded defmt v1.0.1 [INFO] [stderr] Downloaded embedded-time v0.12.1 [INFO] [stderr] Downloaded defmt-macros v1.0.1 [INFO] [stderr] Downloaded predicates v2.1.5 [INFO] [stderr] Downloaded mockall v0.11.4 [INFO] [stderr] Downloaded bern-conf-type v0.2.1 [INFO] [stderr] Downloaded defmt v0.3.100 [INFO] [stderr] Downloaded bern-kernel-macros v0.3.0 [INFO] [stderr] Downloaded bern-units v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+035b01b794602d5861daa43ac792f372f8981ed7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2653122f5ba6fc2c3fe808c182fc5dfe65adada40268781f3fe7f4eb8dc65775 [INFO] running `Command { std: "docker" "start" "-a" "2653122f5ba6fc2c3fe808c182fc5dfe65adada40268781f3fe7f4eb8dc65775", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2653122f5ba6fc2c3fe808c182fc5dfe65adada40268781f3fe7f4eb8dc65775", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2653122f5ba6fc2c3fe808c182fc5dfe65adada40268781f3fe7f4eb8dc65775", kill_on_drop: false }` [INFO] [stdout] 2653122f5ba6fc2c3fe808c182fc5dfe65adada40268781f3fe7f4eb8dc65775 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+035b01b794602d5861daa43ac792f372f8981ed7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39f151ce63b454721704d35f3bd11bc02395baf1753fd5d94d81607ce7a48647 [INFO] running `Command { std: "docker" "start" "-a" "39f151ce63b454721704d35f3bd11bc02395baf1753fd5d94d81607ce7a48647", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_core v1.0.221 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling serde v1.0.221 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking fragile v2.0.1 [INFO] [stderr] Compiling bern-arch v0.4.0 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking rtos-trace v0.2.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling const_format v0.2.34 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Checking embedded-time v0.12.1 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling serde_derive v1.0.221 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Checking predicates v2.1.5 [INFO] [stderr] Compiling mockall_derive v0.11.4 [INFO] [stderr] Compiling bern-units v0.1.0 [INFO] [stderr] Compiling bern-conf-type v0.2.1 [INFO] [stderr] Compiling bern-conf v0.2.0 [INFO] [stderr] Compiling bern-kernel v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling bern-kernel-macros v0.3.0 [INFO] [stderr] Checking mockall v0.11.4 [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/alloc/bump.rs:108:40 [INFO] [stdout] | [INFO] [stdout] 108 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/alloc/bump.rs:109:40 [INFO] [stdout] | [INFO] [stdout] 109 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/alloc/bump.rs:109:60 [INFO] [stdout] | [INFO] [stdout] 109 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/alloc/bump.rs:149:40 [INFO] [stdout] | [INFO] [stdout] 149 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/alloc/bump.rs:150:40 [INFO] [stdout] | [INFO] [stdout] 150 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/alloc/bump.rs:150:60 [INFO] [stdout] | [INFO] [stdout] 150 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/alloc/heap.rs:191:34 [INFO] [stdout] | [INFO] [stdout] 191 | HEAP.init_from_slice(&mut HEAP_BUFFER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 191 | HEAP.init_from_slice(&raw mut HEAP_BUFFER); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/alloc/heap.rs:208:34 [INFO] [stdout] | [INFO] [stdout] 208 | HEAP.init_from_slice(&mut HEAP_BUFFER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 208 | HEAP.init_from_slice(&raw mut HEAP_BUFFER); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/alloc/heap.rs:224:34 [INFO] [stdout] | [INFO] [stdout] 224 | HEAP.init_from_slice(&mut HEAP_BUFFER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 224 | HEAP.init_from_slice(&raw mut HEAP_BUFFER); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/alloc/pool.rs:188:37 [INFO] [stdout] | [INFO] [stdout] 188 | partion.init_from_slice(BUFFER.as_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/alloc/pool.rs:200:56 [INFO] [stdout] | [INFO] [stdout] 200 | POOL.partition(0).unwrap().init_from_slice(BUFFER.as_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/alloc/pool.rs:236:34 [INFO] [stdout] | [INFO] [stdout] 236 | .init_from_slice(BUFFER_1.as_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/alloc/pool.rs:239:34 [INFO] [stdout] | [INFO] [stdout] 239 | .init_from_slice(BUFFER_2.as_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/alloc/pool.rs:242:34 [INFO] [stdout] | [INFO] [stdout] 242 | .init_from_slice(BUFFER_3.as_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:440:40 [INFO] [stdout] | [INFO] [stdout] 440 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:441:40 [INFO] [stdout] | [INFO] [stdout] 441 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:441:60 [INFO] [stdout] | [INFO] [stdout] 441 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:477:40 [INFO] [stdout] | [INFO] [stdout] 477 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:478:40 [INFO] [stdout] | [INFO] [stdout] 478 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:478:60 [INFO] [stdout] | [INFO] [stdout] 478 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:498:40 [INFO] [stdout] | [INFO] [stdout] 498 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:499:40 [INFO] [stdout] | [INFO] [stdout] 499 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:499:60 [INFO] [stdout] | [INFO] [stdout] 499 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:524:40 [INFO] [stdout] | [INFO] [stdout] 524 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:525:40 [INFO] [stdout] | [INFO] [stdout] 525 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:525:60 [INFO] [stdout] | [INFO] [stdout] 525 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:541:40 [INFO] [stdout] | [INFO] [stdout] 541 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:542:40 [INFO] [stdout] | [INFO] [stdout] 542 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:542:60 [INFO] [stdout] | [INFO] [stdout] 542 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:566:40 [INFO] [stdout] | [INFO] [stdout] 566 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:567:40 [INFO] [stdout] | [INFO] [stdout] 567 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:567:60 [INFO] [stdout] | [INFO] [stdout] 567 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:593:40 [INFO] [stdout] | [INFO] [stdout] 593 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:594:40 [INFO] [stdout] | [INFO] [stdout] 594 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:594:60 [INFO] [stdout] | [INFO] [stdout] 594 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:631:40 [INFO] [stdout] | [INFO] [stdout] 631 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:632:40 [INFO] [stdout] | [INFO] [stdout] 632 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/linked_list.rs:632:60 [INFO] [stdout] | [INFO] [stdout] 632 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/mem/queue/mpmc_linked.rs:199:22 [INFO] [stdout] | [INFO] [stdout] 199 | for n in LIST_BUFFER.iter_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/mem/queue/mpmc_linked.rs:223:22 [INFO] [stdout] | [INFO] [stdout] 223 | for n in LIST_BUFFER.iter_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/mem/queue/mpmc_linked.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | let mut i = LIST_BUFFER.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[mem::linked_list::LinkedList; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/sched.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | MaybeUninit::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: raw pointers must be initialized (in this struct field) [INFO] [stdout] --> src/mem/linked_list.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | head: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:121:32 [INFO] [stdout] | [INFO] [stdout] 121 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:154:32 [INFO] [stdout] | [INFO] [stdout] 154 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:174:32 [INFO] [stdout] | [INFO] [stdout] 174 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:191:32 [INFO] [stdout] | [INFO] [stdout] 191 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:236:32 [INFO] [stdout] | [INFO] [stdout] 236 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:260:32 [INFO] [stdout] | [INFO] [stdout] 260 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:280:32 [INFO] [stdout] | [INFO] [stdout] 280 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:304:30 [INFO] [stdout] | [INFO] [stdout] 304 | let sched = unsafe { SCHEDULER.assume_init_mut() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:356:32 [INFO] [stdout] | [INFO] [stdout] 356 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:372:32 [INFO] [stdout] | [INFO] [stdout] 372 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:378:32 [INFO] [stdout] | [INFO] [stdout] 378 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:424:32 [INFO] [stdout] | [INFO] [stdout] 424 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:503:32 [INFO] [stdout] | [INFO] [stdout] 503 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sched/idle.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | data_start: (&__smprocess_default_idle) as *const _ as *const u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 18 | data_start: (&raw const __smprocess_default_idle) as *const _ as *const u8, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sched/idle.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | data_end: (&__emprocess_default_idle) as *const _ as *const u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 19 | data_end: (&raw const __emprocess_default_idle) as *const _ as *const u8, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched/idle.rs:36:44 [INFO] [stdout] | [INFO] [stdout] 36 | .stack(unsafe { Stack::new(&mut STACK, STACK.len()) }) [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 36 | .stack(unsafe { Stack::new(&raw mut STACK, STACK.len()) }) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sched/idle.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | .stack(unsafe { Stack::new(&mut STACK, STACK.len()) }) [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:265:54 [INFO] [stdout] | [INFO] [stdout] 265 | let recv_queue: &&dyn PushRaw = unsafe { mem::transmute(arg0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] = note: `#[warn(integer_to_ptr_transmutes)]` on by default [INFO] [stdout] help: use `std::ptr::with_exposed_provenance` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 265 - let recv_queue: &&dyn PushRaw = unsafe { mem::transmute(arg0) }; [INFO] [stdout] 265 + let recv_queue: &&dyn PushRaw = unsafe { &*std::ptr::with_exposed_provenance::<&dyn PushRaw>(arg0) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:266:64 [INFO] [stdout] | [INFO] [stdout] 266 | let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 266 - let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stdout] 266 + let res: &mut Result = unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg1) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:272:43 [INFO] [stdout] | [INFO] [stdout] 272 | let item: &RawItem = unsafe { mem::transmute(arg1) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 272 - let item: &RawItem = unsafe { mem::transmute(arg1) }; [INFO] [stdout] 272 + let item: &RawItem = unsafe { &*std::ptr::with_exposed_provenance::(arg1) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[mem::linked_list::LinkedList; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/sched.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | MaybeUninit::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: raw pointers must be initialized (in this struct field) [INFO] [stdout] --> src/mem/linked_list.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | head: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:273:63 [INFO] [stdout] | [INFO] [stdout] 273 | let res: &mut Result<(), ChannelError> = unsafe { mem::transmute(arg2) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 273 - let res: &mut Result<(), ChannelError> = unsafe { mem::transmute(arg2) }; [INFO] [stdout] 273 + let res: &mut Result<(), ChannelError> = unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg2) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:280:26 [INFO] [stdout] | [INFO] [stdout] 280 | unsafe { mem::transmute(arg1) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 280 - unsafe { mem::transmute(arg1) }; [INFO] [stdout] 280 + unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg1) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:121:32 [INFO] [stdout] | [INFO] [stdout] 121 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:286:64 [INFO] [stdout] | [INFO] [stdout] 286 | let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 286 - let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stdout] 286 + let res: &mut Result = unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg1) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:154:32 [INFO] [stdout] | [INFO] [stdout] 154 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:174:32 [INFO] [stdout] | [INFO] [stdout] 174 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:191:32 [INFO] [stdout] | [INFO] [stdout] 191 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:236:32 [INFO] [stdout] | [INFO] [stdout] 236 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:260:32 [INFO] [stdout] | [INFO] [stdout] 260 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:280:32 [INFO] [stdout] | [INFO] [stdout] 280 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:304:30 [INFO] [stdout] | [INFO] [stdout] 304 | let sched = unsafe { SCHEDULER.assume_init_mut() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:356:32 [INFO] [stdout] | [INFO] [stdout] 356 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:372:32 [INFO] [stdout] | [INFO] [stdout] 372 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:378:32 [INFO] [stdout] | [INFO] [stdout] 378 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:424:32 [INFO] [stdout] | [INFO] [stdout] 424 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched.rs:503:32 [INFO] [stdout] | [INFO] [stdout] 503 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sched/idle.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | data_start: (&__smprocess_default_idle) as *const _ as *const u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 18 | data_start: (&raw const __smprocess_default_idle) as *const _ as *const u8, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sched/idle.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | data_end: (&__emprocess_default_idle) as *const _ as *const u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 19 | data_end: (&raw const __emprocess_default_idle) as *const _ as *const u8, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/sched/idle.rs:36:44 [INFO] [stdout] | [INFO] [stdout] 36 | .stack(unsafe { Stack::new(&mut STACK, STACK.len()) }) [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 36 | .stack(unsafe { Stack::new(&raw mut STACK, STACK.len()) }) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sched/idle.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | .stack(unsafe { Stack::new(&mut STACK, STACK.len()) }) [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:265:54 [INFO] [stdout] | [INFO] [stdout] 265 | let recv_queue: &&dyn PushRaw = unsafe { mem::transmute(arg0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] = note: `#[warn(integer_to_ptr_transmutes)]` on by default [INFO] [stdout] help: use `std::ptr::with_exposed_provenance` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 265 - let recv_queue: &&dyn PushRaw = unsafe { mem::transmute(arg0) }; [INFO] [stdout] 265 + let recv_queue: &&dyn PushRaw = unsafe { &*std::ptr::with_exposed_provenance::<&dyn PushRaw>(arg0) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:266:64 [INFO] [stdout] | [INFO] [stdout] 266 | let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 266 - let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stdout] 266 + let res: &mut Result = unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg1) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:272:43 [INFO] [stdout] | [INFO] [stdout] 272 | let item: &RawItem = unsafe { mem::transmute(arg1) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 272 - let item: &RawItem = unsafe { mem::transmute(arg1) }; [INFO] [stdout] 272 + let item: &RawItem = unsafe { &*std::ptr::with_exposed_provenance::(arg1) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:273:63 [INFO] [stdout] | [INFO] [stdout] 273 | let res: &mut Result<(), ChannelError> = unsafe { mem::transmute(arg2) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 273 - let res: &mut Result<(), ChannelError> = unsafe { mem::transmute(arg2) }; [INFO] [stdout] 273 + let res: &mut Result<(), ChannelError> = unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg2) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:280:26 [INFO] [stdout] | [INFO] [stdout] 280 | unsafe { mem::transmute(arg1) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 280 - unsafe { mem::transmute(arg1) }; [INFO] [stdout] 280 + unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg1) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/syscall.rs:286:64 [INFO] [stdout] | [INFO] [stdout] 286 | let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 286 - let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stdout] 286 + let res: &mut Result = unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg1) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.70s [INFO] running `Command { std: "docker" "inspect" "39f151ce63b454721704d35f3bd11bc02395baf1753fd5d94d81607ce7a48647", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39f151ce63b454721704d35f3bd11bc02395baf1753fd5d94d81607ce7a48647", kill_on_drop: false }` [INFO] [stdout] 39f151ce63b454721704d35f3bd11bc02395baf1753fd5d94d81607ce7a48647