[INFO] fetching crate bern-kernel 0.3.1... [INFO] testing bern-kernel-0.3.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate bern-kernel 0.3.1 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate bern-kernel 0.3.1 [INFO] finished tweaking crates.io crate bern-kernel 0.3.1 [INFO] tweaked toml for crates.io crate bern-kernel 0.3.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate bern-kernel 0.3.1 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_core v1.0.221 [INFO] [stderr] Downloaded bern-conf-type v0.2.1 [INFO] [stderr] Downloaded bern-arch v0.4.0 [INFO] [stderr] Downloaded serde_derive v1.0.221 [INFO] [stderr] Downloaded defmt v1.0.1 [INFO] [stderr] Downloaded serde v1.0.221 [INFO] [stderr] Downloaded defmt-parser v1.0.0 [INFO] [stderr] Downloaded defmt-macros v1.0.1 [INFO] [stderr] Downloaded num v0.3.1 [INFO] [stderr] Downloaded embedded-time v0.12.1 [INFO] [stderr] Downloaded rtt-target v0.3.1 [INFO] [stderr] Downloaded bern-conf v0.2.0 [INFO] [stderr] Downloaded bern-kernel-macros v0.3.0 [INFO] [stderr] Downloaded bern-units v0.1.0 [INFO] [stderr] Downloaded defmt v0.3.100 [INFO] [stderr] Downloaded rtos-trace v0.2.0 [INFO] [stderr] Downloaded ufmt-write v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3220e4222711b3b0a4373614ede5dd0dfda8e4f714147aa583df6f8ff4a3d9a [INFO] running `Command { std: "docker" "start" "-a" "d3220e4222711b3b0a4373614ede5dd0dfda8e4f714147aa583df6f8ff4a3d9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3220e4222711b3b0a4373614ede5dd0dfda8e4f714147aa583df6f8ff4a3d9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3220e4222711b3b0a4373614ede5dd0dfda8e4f714147aa583df6f8ff4a3d9a", kill_on_drop: false }` [INFO] [stdout] d3220e4222711b3b0a4373614ede5dd0dfda8e4f714147aa583df6f8ff4a3d9a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5edfbd8b3e0b826f7e8fe1a82dc220396a5932194fdaee8c815e2def0cf86ffd [INFO] running `Command { std: "docker" "start" "-a" "5edfbd8b3e0b826f7e8fe1a82dc220396a5932194fdaee8c815e2def0cf86ffd", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_core v1.0.221 [INFO] [stderr] Compiling serde v1.0.221 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling syn v2.0.106 [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 difflib v0.4.0 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling regex-automata v0.4.10 [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 num v0.3.1 [INFO] [stderr] Compiling embedded-time v0.12.1 [INFO] [stderr] Compiling rtos-trace v0.2.0 [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 predicates v2.1.5 [INFO] [stderr] Compiling bern-units v0.1.0 [INFO] [stderr] Compiling mockall v0.11.4 [INFO] [stderr] Compiling bern-conf-type v0.2.1 [INFO] [stderr] Compiling bern-conf v0.2.0 [INFO] [stderr] Compiling bern-kernel v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling bern-kernel-macros v0.3.0 [INFO] [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 42.81s [INFO] running `Command { std: "docker" "inspect" "5edfbd8b3e0b826f7e8fe1a82dc220396a5932194fdaee8c815e2def0cf86ffd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5edfbd8b3e0b826f7e8fe1a82dc220396a5932194fdaee8c815e2def0cf86ffd", kill_on_drop: false }` [INFO] [stdout] 5edfbd8b3e0b826f7e8fe1a82dc220396a5932194fdaee8c815e2def0cf86ffd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43a5e61a044ac3abf61df2ca43bb0d6593d822c8158ae87cf18c05eef9677106 [INFO] running `Command { std: "docker" "start" "-a" "43a5e61a044ac3abf61df2ca43bb0d6593d822c8158ae87cf18c05eef9677106", 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 1.72s [INFO] running `Command { std: "docker" "inspect" "43a5e61a044ac3abf61df2ca43bb0d6593d822c8158ae87cf18c05eef9677106", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43a5e61a044ac3abf61df2ca43bb0d6593d822c8158ae87cf18c05eef9677106", kill_on_drop: false }` [INFO] [stdout] 43a5e61a044ac3abf61df2ca43bb0d6593d822c8158ae87cf18c05eef9677106 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 876ab05643bcbe3302d1aab4da041f52e19db78618775877c695d41ce1931ab8 [INFO] running `Command { std: "docker" "start" "-a" "876ab05643bcbe3302d1aab4da041f52e19db78618775877c695d41ce1931ab8", kill_on_drop: false }` [INFO] [stderr] Compiling bern-kernel v0.3.1 (/opt/rustwide/workdir) [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: 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] [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 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: `bern-kernel` (lib test) generated 68 warnings (run `cargo fix --lib -p bern-kernel --tests` to apply 6 suggestions) [INFO] [stderr] warning: `bern-kernel` (lib) generated 27 warnings (26 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.12s [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' (58) panicked at src/alloc/heap.rs:67:21: [INFO] [stderr] misaligned pointer dereference: address must be a multiple of 0x8 but is 0x594fd4673db4 [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x594fd4649252 - std::backtrace_rs::backtrace::libunwind::trace::ha50a1f28c7a10cf8 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stderr] 1: 0x594fd4649252 - std::backtrace_rs::backtrace::trace_unsynchronized::h34f8c4ec82a320bc [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stderr] 2: 0x594fd4649252 - std::sys::backtrace::_print_fmt::h2d23e84e13d343bc [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/backtrace.rs:66:9 [INFO] [stderr] 3: 0x594fd4649252 - ::fmt::hde21067283f7e82e [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/backtrace.rs:39:26 [INFO] [stderr] 4: 0x594fd46591df - core::fmt::rt::Argument::fmt::he65307037dca33c6 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/fmt/rt.rs:173:76 [INFO] [stderr] 5: 0x594fd46591df - core::fmt::write::h24186904251c31cb [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/fmt/mod.rs:1469:25 [INFO] [stderr] 6: 0x594fd4616bf3 - std::io::default_write_fmt::hdc5d19b6df666f61 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/io/mod.rs:639:11 [INFO] [stderr] 7: 0x594fd4616bf3 - std::io::Write::write_fmt::h3ab9f1f4d8d19b72 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/io/mod.rs:1954:13 [INFO] [stderr] 8: 0x594fd4622ac2 - std::sys::backtrace::BacktraceLock::print::he038489aba5894a6 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/backtrace.rs:42:9 [INFO] [stderr] 9: 0x594fd462759f - std::panicking::default_hook::{{closure}}::h80a26d916c49679b [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:301:27 [INFO] [stderr] 10: 0x594fd46273f9 - std::panicking::default_hook::he2e9efee79b3dce9 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:328:9 [INFO] [stderr] 11: 0x594fd45e6a6e - as core::ops::function::Fn>::call::h202f496763929329 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/boxed.rs:2099:9 [INFO] [stderr] 12: 0x594fd45e6a6e - test::test_main_with_exit_callback::{{closure}}::h805a6913adddaea3 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/test/src/lib.rs:145:21 [INFO] [stderr] 13: 0x594fd4627baf - as core::ops::function::Fn>::call::h2883c9d2dbd4e81c [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/boxed.rs:2099:9 [INFO] [stderr] 14: 0x594fd4627baf - std::panicking::panic_with_hook::hf5648b7cec6bc73e [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:842:13 [INFO] [stderr] 15: 0x594fd4627a0a - std::panicking::panic_handler::{{closure}}::h1b2ed3864ba94359 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:707:13 [INFO] [stderr] 16: 0x594fd4622bf9 - std::sys::backtrace::__rust_end_short_backtrace::hd0186b2b27f5aaa7 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/backtrace.rs:174:18 [INFO] [stderr] 17: 0x594fd460b4ed - __rustc[f7dae8b92efe1d7a]::rust_begin_unwind [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:698:5 [INFO] [stderr] 18: 0x594fd466095d - core::panicking::panic_nounwind_fmt::runtime::hd682c7f4ebed7044 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/panicking.rs:122:22 [INFO] [stderr] 19: 0x594fd466095d - core::panicking::panic_nounwind_fmt::he05c47de4e511442 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/intrinsics/mod.rs:2439:9 [INFO] [stderr] 20: 0x594fd4660ba1 - core::panicking::panic_misaligned_pointer_dereference::he6584924b7134a31 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/panicking.rs:289:5 [INFO] [stderr] 21: 0x594fd45af08d - bern_kernel::alloc::heap::Heap::insert_free::hbda33d5f69ab94f4 [INFO] [stderr] at /opt/rustwide/workdir/src/alloc/heap.rs:67:21 [INFO] [stderr] 22: 0x594fd45b10ca - ::dealloc::h8be1ebde69c2776d [INFO] [stderr] at /opt/rustwide/workdir/src/alloc/heap.rs:167:14 [INFO] [stderr] 23: 0x594fd45b4a8e - bern_kernel::alloc::heap::tests::alloc_and_dealloc::hbd4580f1953f6e89 [INFO] [stderr] at /opt/rustwide/workdir/src/alloc/heap.rs:235:26 [INFO] [stderr] 24: 0x594fd45b4ab7 - bern_kernel::alloc::heap::tests::alloc_and_dealloc::{{closure}}::h1e58dc76984c9521 [INFO] [stderr] at /opt/rustwide/workdir/src/alloc/heap.rs:219:27 [INFO] [stderr] 25: 0x594fd45bc7b6 - core::ops::function::FnOnce::call_once::h68586f072758834e [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 26: 0x594fd45e68db - core::ops::function::FnOnce::call_once::h3a2d82edd1a9b770 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 27: 0x594fd45e68db - test::__rust_begin_short_backtrace::h85d4fe5033219107 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/test/src/lib.rs:663:18 [INFO] [stderr] 28: 0x594fd45fa8cd - test::run_test_in_process::{{closure}}::h67b48a81b9c9d7b6 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/test/src/lib.rs:686:74 [INFO] [stderr] 29: 0x594fd45fa8cd - as core::ops::function::FnOnce<()>>::call_once::h7680585480377cb5 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stderr] 30: 0x594fd45fa8cd - std::panicking::catch_unwind::do_call::hf71351b2657d4002 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:590:40 [INFO] [stderr] 31: 0x594fd45fa8cd - std::panicking::catch_unwind::h7fcb5c0312d9e172 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:553:19 [INFO] [stderr] 32: 0x594fd45fa8cd - std::panic::catch_unwind::h5cf3c9bdee894ebe [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panic.rs:359:14 [INFO] [stderr] 33: 0x594fd45fa8cd - test::run_test_in_process::h1469cb85193a3a25 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/test/src/lib.rs:686:27 [INFO] [stderr] 34: 0x594fd45fa8cd - test::run_test::{{closure}}::h59d45b3cd6453d69 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/test/src/lib.rs:607:43 [INFO] [stderr] 35: 0x594fd45d3e14 - test::run_test::{{closure}}::h9baa0c3d443f28c9 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/test/src/lib.rs:637:41 [INFO] [stderr] 36: 0x594fd45d3e14 - std::sys::backtrace::__rust_begin_short_backtrace::h97ea8cee4828663e [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/backtrace.rs:158:18 [INFO] [stderr] 37: 0x594fd45d766a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h5d7539d5f78cee61 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/thread/mod.rs:562:17 [INFO] [stderr] 38: 0x594fd45d766a - as core::ops::function::FnOnce<()>>::call_once::he4c551e23c5e9b22 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stderr] 39: 0x594fd45d766a - std::panicking::catch_unwind::do_call::h522b41a6c157aaba [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:590:40 [INFO] [stderr] 40: 0x594fd45d766a - std::panicking::catch_unwind::h0efbf72006b8e365 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:553:19 [INFO] [stderr] 41: 0x594fd45d766a - std::panic::catch_unwind::h3b081041e6c97066 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panic.rs:359:14 [INFO] [stderr] 42: 0x594fd45d766a - std::thread::Builder::spawn_unchecked_::{{closure}}::ha751309815d5d8cf [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/thread/mod.rs:560:30 [INFO] [stderr] 43: 0x594fd45d766a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2084b887a5fe25a7 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 44: 0x594fd461dfff - as core::ops::function::FnOnce>::call_once::h3adbd6ccf5f737af [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/boxed.rs:2085:9 [INFO] [stderr] 45: 0x594fd461dfff - std::sys::thread::unix::Thread::new::thread_start::hb3dc6483caa1b987 [INFO] [stderr] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/thread/unix.rs:124:17 [INFO] [stderr] 46: 0x7d7e4b657aa4 - [INFO] [stderr] 47: 0x7d7e4b6e4a64 - 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" "876ab05643bcbe3302d1aab4da041f52e19db78618775877c695d41ce1931ab8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "876ab05643bcbe3302d1aab4da041f52e19db78618775877c695d41ce1931ab8", kill_on_drop: false }` [INFO] [stdout] 876ab05643bcbe3302d1aab4da041f52e19db78618775877c695d41ce1931ab8