[INFO] fetching crate bern-kernel 0.3.1... [INFO] testing bern-kernel-0.3.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate bern-kernel 0.3.1 into /workspace/builds/worker-5-tc2/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-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate bern-kernel 0.3.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7a902bf62c65beddd2c4c2b9732aa017248ce29e3ce7faae55db26d0ad5c9b51 [INFO] running `Command { std: "docker" "start" "-a" "7a902bf62c65beddd2c4c2b9732aa017248ce29e3ce7faae55db26d0ad5c9b51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7a902bf62c65beddd2c4c2b9732aa017248ce29e3ce7faae55db26d0ad5c9b51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a902bf62c65beddd2c4c2b9732aa017248ce29e3ce7faae55db26d0ad5c9b51", kill_on_drop: false }` [INFO] [stdout] 7a902bf62c65beddd2c4c2b9732aa017248ce29e3ce7faae55db26d0ad5c9b51 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98da09eddb1e5739ec237f188505fb60d0cdebcee56bbcd2d22c6683268b84d2 [INFO] running `Command { std: "docker" "start" "-a" "98da09eddb1e5739ec237f188505fb60d0cdebcee56bbcd2d22c6683268b84d2", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.221 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling serde v1.0.221 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling float-cmp v0.9.0 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling const_format v0.2.34 [INFO] [stderr] Compiling num-complex v0.3.1 [INFO] [stderr] Compiling bern-arch v0.4.0 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling fragile v2.0.1 [INFO] [stderr] Compiling rtos-trace v0.2.0 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling num v0.3.1 [INFO] [stderr] Compiling embedded-time v0.12.1 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling serde_derive v1.0.221 [INFO] [stderr] Compiling mockall_derive v0.11.4 [INFO] [stderr] Compiling regex v1.11.2 [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 predicates v2.1.5 [INFO] [stderr] Compiling mockall v0.11.4 [INFO] [stderr] Compiling bern-kernel v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling bern-kernel-macros v0.3.0 [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: 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 47.82s [INFO] running `Command { std: "docker" "inspect" "98da09eddb1e5739ec237f188505fb60d0cdebcee56bbcd2d22c6683268b84d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98da09eddb1e5739ec237f188505fb60d0cdebcee56bbcd2d22c6683268b84d2", kill_on_drop: false }` [INFO] [stdout] 98da09eddb1e5739ec237f188505fb60d0cdebcee56bbcd2d22c6683268b84d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 330de4d4105fb6068f3ab85ebb49b8e29325e785b81cf01086673dde694bf622 [INFO] running `Command { std: "docker" "start" "-a" "330de4d4105fb6068f3ab85ebb49b8e29325e785b81cf01086673dde694bf622", kill_on_drop: false }` [INFO] [stderr] Compiling bern-kernel v0.3.1 (/opt/rustwide/workdir) [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: 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] [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] [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: 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 `test` profile [unoptimized + debuginfo] target(s) in 2.14s [INFO] running `Command { std: "docker" "inspect" "330de4d4105fb6068f3ab85ebb49b8e29325e785b81cf01086673dde694bf622", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "330de4d4105fb6068f3ab85ebb49b8e29325e785b81cf01086673dde694bf622", kill_on_drop: false }` [INFO] [stdout] 330de4d4105fb6068f3ab85ebb49b8e29325e785b81cf01086673dde694bf622 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 92a8b78bb1bafbe871cac8c437d22b5b93a80a847ce4ea2636c5c6cf1473af56 [INFO] running `Command { std: "docker" "start" "-a" "92a8b78bb1bafbe871cac8c437d22b5b93a80a847ce4ea2636c5c6cf1473af56", kill_on_drop: false }` [INFO] [stderr] Compiling bern-kernel v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: the type `[mem::linked_list::LinkedList; 8]` does not permit being left uninitialized [INFO] [stderr] --> src/sched.rs:57:13 [INFO] [stderr] | [INFO] [stderr] 57 | MaybeUninit::uninit().assume_init(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] note: raw pointers must be initialized (in this struct field) [INFO] [stderr] --> src/mem/linked_list.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | head: Link, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(invalid_value)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:84:32 [INFO] [stderr] | [INFO] [stderr] 84 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:95:32 [INFO] [stderr] | [INFO] [stderr] 95 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:121:32 [INFO] [stderr] | [INFO] [stderr] 121 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:154:32 [INFO] [stderr] | [INFO] [stderr] 154 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:174:32 [INFO] [stderr] | [INFO] [stderr] 174 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:191:32 [INFO] [stderr] | [INFO] [stderr] 191 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:236:32 [INFO] [stderr] | [INFO] [stderr] 236 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:247:32 [INFO] [stderr] | [INFO] [stderr] 247 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:260:32 [INFO] [stderr] | [INFO] [stderr] 260 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:280:32 [INFO] [stderr] | [INFO] [stderr] 280 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:304:30 [INFO] [stderr] | [INFO] [stderr] 304 | let sched = unsafe { SCHEDULER.assume_init_mut() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:356:32 [INFO] [stderr] | [INFO] [stderr] 356 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:372:32 [INFO] [stderr] | [INFO] [stderr] 372 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:378:32 [INFO] [stderr] | [INFO] [stderr] 378 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:424:32 [INFO] [stderr] | [INFO] [stderr] 424 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:503:32 [INFO] [stderr] | [INFO] [stderr] 503 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/sched/idle.rs:18:21 [INFO] [stderr] | [INFO] [stderr] 18 | data_start: (&__smprocess_default_idle) as *const _ as *const u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 18 | data_start: (&raw const __smprocess_default_idle) as *const _ as *const u8, [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/sched/idle.rs:19:19 [INFO] [stderr] | [INFO] [stderr] 19 | data_end: (&__emprocess_default_idle) as *const _ as *const u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 19 | data_end: (&raw const __emprocess_default_idle) as *const _ as *const u8, [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched/idle.rs:36:44 [INFO] [stderr] | [INFO] [stderr] 36 | .stack(unsafe { Stack::new(&mut STACK, STACK.len()) }) [INFO] [stderr] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 36 | .stack(unsafe { Stack::new(&raw mut STACK, STACK.len()) }) [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/sched/idle.rs:36:56 [INFO] [stderr] | [INFO] [stderr] 36 | .stack(unsafe { Stack::new(&mut STACK, STACK.len()) }) [INFO] [stderr] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stderr] --> src/syscall.rs:265:54 [INFO] [stderr] | [INFO] [stderr] 265 | let recv_queue: &&dyn PushRaw = unsafe { mem::transmute(arg0) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stderr] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stderr] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stderr] = help: for more information about transmute, see [INFO] [stderr] = help: for more information about exposed provenance, see [INFO] [stderr] = note: `#[warn(integer_to_ptr_transmutes)]` on by default [INFO] [stderr] help: use `std::ptr::with_exposed_provenance` instead to use a previously exposed provenance [INFO] [stderr] | [INFO] [stderr] 265 - let recv_queue: &&dyn PushRaw = unsafe { mem::transmute(arg0) }; [INFO] [stderr] 265 + let recv_queue: &&dyn PushRaw = unsafe { &*std::ptr::with_exposed_provenance::<&dyn PushRaw>(arg0) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stderr] --> src/syscall.rs:266:64 [INFO] [stderr] | [INFO] [stderr] 266 | let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stderr] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stderr] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stderr] = help: for more information about transmute, see [INFO] [stderr] = help: for more information about exposed provenance, see [INFO] [stderr] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stderr] | [INFO] [stderr] 266 - let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stderr] 266 + let res: &mut Result = unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg1) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stderr] --> src/syscall.rs:272:43 [INFO] [stderr] | [INFO] [stderr] 272 | let item: &RawItem = unsafe { mem::transmute(arg1) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stderr] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stderr] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stderr] = help: for more information about transmute, see [INFO] [stderr] = help: for more information about exposed provenance, see [INFO] [stderr] help: use `std::ptr::with_exposed_provenance` instead to use a previously exposed provenance [INFO] [stderr] | [INFO] [stderr] 272 - let item: &RawItem = unsafe { mem::transmute(arg1) }; [INFO] [stderr] 272 + let item: &RawItem = unsafe { &*std::ptr::with_exposed_provenance::(arg1) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stderr] --> src/syscall.rs:273:63 [INFO] [stderr] | [INFO] [stderr] 273 | let res: &mut Result<(), ChannelError> = unsafe { mem::transmute(arg2) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stderr] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stderr] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stderr] = help: for more information about transmute, see [INFO] [stderr] = help: for more information about exposed provenance, see [INFO] [stderr] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stderr] | [INFO] [stderr] 273 - let res: &mut Result<(), ChannelError> = unsafe { mem::transmute(arg2) }; [INFO] [stderr] 273 + let res: &mut Result<(), ChannelError> = unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg2) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stderr] --> src/syscall.rs:280:26 [INFO] [stderr] | [INFO] [stderr] 280 | unsafe { mem::transmute(arg1) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stderr] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stderr] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stderr] = help: for more information about transmute, see [INFO] [stderr] = help: for more information about exposed provenance, see [INFO] [stderr] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stderr] | [INFO] [stderr] 280 - unsafe { mem::transmute(arg1) }; [INFO] [stderr] 280 + unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg1) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stderr] --> src/syscall.rs:286:64 [INFO] [stderr] | [INFO] [stderr] 286 | let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stderr] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stderr] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stderr] = help: for more information about transmute, see [INFO] [stderr] = help: for more information about exposed provenance, see [INFO] [stderr] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stderr] | [INFO] [stderr] 286 - let res: &mut Result = unsafe { mem::transmute(arg1) }; [INFO] [stderr] 286 + let res: &mut Result = unsafe { &mut *std::ptr::with_exposed_provenance_mut::>(arg1) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/alloc/bump.rs:108:40 [INFO] [stderr] | [INFO] [stderr] 108 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/alloc/bump.rs:109:40 [INFO] [stderr] | [INFO] [stderr] 109 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/alloc/bump.rs:109:60 [INFO] [stderr] | [INFO] [stderr] 109 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/alloc/bump.rs:149:40 [INFO] [stderr] | [INFO] [stderr] 149 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/alloc/bump.rs:150:40 [INFO] [stderr] | [INFO] [stderr] 150 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/alloc/bump.rs:150:60 [INFO] [stderr] | [INFO] [stderr] 150 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/alloc/heap.rs:191:34 [INFO] [stderr] | [INFO] [stderr] 191 | HEAP.init_from_slice(&mut HEAP_BUFFER); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 191 | HEAP.init_from_slice(&raw mut HEAP_BUFFER); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/alloc/heap.rs:208:34 [INFO] [stderr] | [INFO] [stderr] 208 | HEAP.init_from_slice(&mut HEAP_BUFFER); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 208 | HEAP.init_from_slice(&raw mut HEAP_BUFFER); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/alloc/heap.rs:224:34 [INFO] [stderr] | [INFO] [stderr] 224 | HEAP.init_from_slice(&mut HEAP_BUFFER); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 224 | HEAP.init_from_slice(&raw mut HEAP_BUFFER); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/alloc/pool.rs:188:37 [INFO] [stderr] | [INFO] [stderr] 188 | partion.init_from_slice(BUFFER.as_mut()); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/alloc/pool.rs:200:56 [INFO] [stderr] | [INFO] [stderr] 200 | POOL.partition(0).unwrap().init_from_slice(BUFFER.as_mut()); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/alloc/pool.rs:236:34 [INFO] [stderr] | [INFO] [stderr] 236 | .init_from_slice(BUFFER_1.as_mut()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/alloc/pool.rs:239:34 [INFO] [stderr] | [INFO] [stderr] 239 | .init_from_slice(BUFFER_2.as_mut()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/alloc/pool.rs:242:34 [INFO] [stderr] | [INFO] [stderr] 242 | .init_from_slice(BUFFER_3.as_mut()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:440:40 [INFO] [stderr] | [INFO] [stderr] 440 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:441:40 [INFO] [stderr] | [INFO] [stderr] 441 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:441:60 [INFO] [stderr] | [INFO] [stderr] 441 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:477:40 [INFO] [stderr] | [INFO] [stderr] 477 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:478:40 [INFO] [stderr] | [INFO] [stderr] 478 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:478:60 [INFO] [stderr] | [INFO] [stderr] 478 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:498:40 [INFO] [stderr] | [INFO] [stderr] 498 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:499:40 [INFO] [stderr] | [INFO] [stderr] 499 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:499:60 [INFO] [stderr] | [INFO] [stderr] 499 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:524:40 [INFO] [stderr] | [INFO] [stderr] 524 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:525:40 [INFO] [stderr] | [INFO] [stderr] 525 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:525:60 [INFO] [stderr] | [INFO] [stderr] 525 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:541:40 [INFO] [stderr] | [INFO] [stderr] 541 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:542:40 [INFO] [stderr] | [INFO] [stderr] 542 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:542:60 [INFO] [stderr] | [INFO] [stderr] 542 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:566:40 [INFO] [stderr] | [INFO] [stderr] 566 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:567:40 [INFO] [stderr] | [INFO] [stderr] 567 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:567:60 [INFO] [stderr] | [INFO] [stderr] 567 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:593:40 [INFO] [stderr] | [INFO] [stderr] 593 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:594:40 [INFO] [stderr] | [INFO] [stderr] 594 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:594:60 [INFO] [stderr] | [INFO] [stderr] 594 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:631:40 [INFO] [stderr] | [INFO] [stderr] 631 | NonNull::new_unchecked(BUFFER.as_ptr() as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:632:40 [INFO] [stderr] | [INFO] [stderr] 632 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/linked_list.rs:632:60 [INFO] [stderr] | [INFO] [stderr] 632 | NonNull::new_unchecked(BUFFER.as_ptr().add(BUFFER.len()) as *mut _), [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/mem/queue/mpmc_linked.rs:199:22 [INFO] [stderr] | [INFO] [stderr] 199 | for n in LIST_BUFFER.iter_mut() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/mem/queue/mpmc_linked.rs:223:22 [INFO] [stderr] | [INFO] [stderr] 223 | for n in LIST_BUFFER.iter_mut() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/mem/queue/mpmc_linked.rs:230:25 [INFO] [stderr] | [INFO] [stderr] 230 | let mut i = LIST_BUFFER.len(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/sched.rs:84:32 [INFO] [stderr] | [INFO] [stderr] 84 | let sched = unsafe { &mut *SCHEDULER.as_mut_ptr() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: `bern-kernel` (lib) generated 27 warnings (run `cargo fix --lib -p bern-kernel` to apply 6 suggestions) [INFO] [stderr] warning: `bern-kernel` (lib test) generated 68 warnings (26 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.27s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/bern_kernel-8f22ebd1bb040b37) [INFO] [stdout] [INFO] [stdout] running 32 tests [INFO] [stderr] [INFO] [stderr] thread 'alloc::heap::tests::alloc_and_dealloc' (57) panicked at src/alloc/heap.rs:67:21: [INFO] [stderr] misaligned pointer dereference: address must be a multiple of 0x8 but is 0x5c4069033eb4 [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x5c4069009342 - std::backtrace_rs::backtrace::libunwind::trace::h9ea1e07ac77a25d7 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stderr] 1: 0x5c4069009342 - std::backtrace_rs::backtrace::trace_unsynchronized::h72b75eb83b53d15a [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stderr] 2: 0x5c4069009342 - std::sys::backtrace::_print_fmt::h255777b7ec902439 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stderr] 3: 0x5c4069009342 - ::fmt::h8a1ac49fcd7ee8ce [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stderr] 4: 0x5c40690192cf - core::fmt::rt::Argument::fmt::h635cbf3c6754cc90 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/rt.rs:173:76 [INFO] [stderr] 5: 0x5c40690192cf - core::fmt::write::hbdcc0ec4f1bab1db [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/mod.rs:1469:25 [INFO] [stderr] 6: 0x5c4068fd6f43 - std::io::default_write_fmt::hb29d13affe7e9cd0 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:639:11 [INFO] [stderr] 7: 0x5c4068fd6f43 - std::io::Write::write_fmt::hec441b8c6eca32b9 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:1954:13 [INFO] [stderr] 8: 0x5c4068fe2bb2 - std::sys::backtrace::BacktraceLock::print::h052febbd86f7bf07 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stderr] 9: 0x5c4068fe768f - std::panicking::default_hook::{{closure}}::h66aeee20dd470abb [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:301:27 [INFO] [stderr] 10: 0x5c4068fe74e9 - std::panicking::default_hook::h9d66b9642014ce48 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:328:9 [INFO] [stderr] 11: 0x5c4068fa6c0e - as core::ops::function::Fn>::call::h8c698701e444e564 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/boxed.rs:2099:9 [INFO] [stderr] 12: 0x5c4068fa6c0e - test::test_main_with_exit_callback::{{closure}}::ha1c98e7b69c4defb [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:145:21 [INFO] [stderr] 13: 0x5c4068fe7c9f - as core::ops::function::Fn>::call::hc4f222a8a57c637a [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/boxed.rs:2099:9 [INFO] [stderr] 14: 0x5c4068fe7c9f - std::panicking::panic_with_hook::h6d5921a1a1fa5a8e [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:842:13 [INFO] [stderr] 15: 0x5c4068fe7afa - std::panicking::panic_handler::{{closure}}::hafeef6f707d43542 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:707:13 [INFO] [stderr] 16: 0x5c4068fe2ce9 - std::sys::backtrace::__rust_end_short_backtrace::h08cbc3319a3d0120 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stderr] 17: 0x5c4068fcb5dd - __rustc[ce5c411ff86ab1b2]::rust_begin_unwind [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:698:5 [INFO] [stderr] 18: 0x5c4069020a4d - core::panicking::panic_nounwind_fmt::runtime::hf04708939d60a471 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panicking.rs:122:22 [INFO] [stderr] 19: 0x5c4069020a4d - core::panicking::panic_nounwind_fmt::hdb74e1b135b40650 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/intrinsics/mod.rs:2439:9 [INFO] [stderr] 20: 0x5c4069020c91 - core::panicking::panic_misaligned_pointer_dereference::h364f302cef824d97 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panicking.rs:289:5 [INFO] [stderr] 21: 0x5c4068f6f22d - bern_kernel::alloc::heap::Heap::insert_free::ha85f4fa254dc2d30 [INFO] [stderr] at /opt/rustwide/workdir/src/alloc/heap.rs:67:21 [INFO] [stderr] 22: 0x5c4068f7129a - ::dealloc::h64e966945f6a49e9 [INFO] [stderr] at /opt/rustwide/workdir/src/alloc/heap.rs:167:14 [INFO] [stderr] 23: 0x5c4068f74c3e - bern_kernel::alloc::heap::tests::alloc_and_dealloc::hf5c3a6d1bd81bb92 [INFO] [stderr] at /opt/rustwide/workdir/src/alloc/heap.rs:235:26 [INFO] [stderr] 24: 0x5c4068f74c67 - bern_kernel::alloc::heap::tests::alloc_and_dealloc::{{closure}}::he49363e19f4c03f2 [INFO] [stderr] at /opt/rustwide/workdir/src/alloc/heap.rs:219:27 [INFO] [stderr] 25: 0x5c4068f7c656 - core::ops::function::FnOnce::call_once::h0f9e2ec72c6697f5 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 26: 0x5c4068fa6a5b - core::ops::function::FnOnce::call_once::h4f6eabe90cccb47d [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 27: 0x5c4068fa6a5b - test::__rust_begin_short_backtrace::h94208530f2b4c8c7 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:663:18 [INFO] [stderr] 28: 0x5c4068fbaa6d - test::run_test_in_process::{{closure}}::hbdc6a45a78c46404 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:686:74 [INFO] [stderr] 29: 0x5c4068fbaa6d - as core::ops::function::FnOnce<()>>::call_once::h7f9d8efc7eedd165 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stderr] 30: 0x5c4068fbaa6d - std::panicking::catch_unwind::do_call::he5edbaf126c13b99 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:590:40 [INFO] [stderr] 31: 0x5c4068fbaa6d - std::panicking::catch_unwind::h3d6a8652eceeabce [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:553:19 [INFO] [stderr] 32: 0x5c4068fbaa6d - std::panic::catch_unwind::hbef0c501dd7bb498 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panic.rs:359:14 [INFO] [stderr] 33: 0x5c4068fbaa6d - test::run_test_in_process::h400008a46a5006a0 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:686:27 [INFO] [stderr] 34: 0x5c4068fbaa6d - test::run_test::{{closure}}::h9a131655b31d9427 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:607:43 [INFO] [stderr] 35: 0x5c4068f93fb4 - test::run_test::{{closure}}::he4a7177c216308c0 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:637:41 [INFO] [stderr] 36: 0x5c4068f93fb4 - std::sys::backtrace::__rust_begin_short_backtrace::hd3980e9c55d6c539 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stderr] 37: 0x5c4068f978ea - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h18552df67c7aa9b8 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/thread/mod.rs:562:17 [INFO] [stderr] 38: 0x5c4068f978ea - as core::ops::function::FnOnce<()>>::call_once::h3d7b285234641a08 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stderr] 39: 0x5c4068f978ea - std::panicking::catch_unwind::do_call::h5a2b5cf36528a5b2 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:590:40 [INFO] [stderr] 40: 0x5c4068f978ea - std::panicking::catch_unwind::h7e8b531bbda77d20 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:553:19 [INFO] [stderr] 41: 0x5c4068f978ea - std::panic::catch_unwind::hf9bbb2040b4f1e6c [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panic.rs:359:14 [INFO] [stderr] 42: 0x5c4068f978ea - std::thread::Builder::spawn_unchecked_::{{closure}}::h600f92cf68549574 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/thread/mod.rs:560:30 [INFO] [stderr] 43: 0x5c4068f978ea - core::ops::function::FnOnce::call_once{{vtable.shim}}::hb6607307df8a1847 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 44: 0x5c4068fde0ef - as core::ops::function::FnOnce>::call_once::h6891ad53a5ed6f52 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/boxed.rs:2085:9 [INFO] [stderr] 45: 0x5c4068fde0ef - std::sys::thread::unix::Thread::new::thread_start::h7f3e77fa86df70af [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/thread/unix.rs:124:17 [INFO] [stderr] 46: 0x71aa220f3aa4 - [INFO] [stderr] 47: 0x71aa22180a64 - clone [INFO] [stderr] 48: 0x0 - [INFO] [stderr] thread caused non-unwinding panic. aborting. [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/target/debug/deps/bern_kernel-8f22ebd1bb040b37` (signal: 6, SIGABRT: process abort signal) [INFO] running `Command { std: "docker" "inspect" "92a8b78bb1bafbe871cac8c437d22b5b93a80a847ce4ea2636c5c6cf1473af56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92a8b78bb1bafbe871cac8c437d22b5b93a80a847ce4ea2636c5c6cf1473af56", kill_on_drop: false }` [INFO] [stdout] 92a8b78bb1bafbe871cac8c437d22b5b93a80a847ce4ea2636c5c6cf1473af56