[INFO] cloning repository https://github.com/playXE/rsgc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/playXE/rsgc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FplayXE%2Frsgc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FplayXE%2Frsgc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f173a05f665ac061ec94209aa678b8cdd29e612 [INFO] checking playXE/rsgc against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FplayXE%2Frsgc" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/playXE/rsgc [INFO] finished tweaking git repo https://github.com/playXE/rsgc [INFO] tweaked toml for git repo https://github.com/playXE/rsgc written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/playXE/rsgc on toolchain 7b3da9103634dffd4f4365cfd8642427c781d99f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/playXE/rsgc 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" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c49bdbc141f6bedf019f33d65447a02e9de68d2e8289247f0d6db6f0f0d9ec5c [INFO] running `Command { std: "docker" "start" "-a" "c49bdbc141f6bedf019f33d65447a02e9de68d2e8289247f0d6db6f0f0d9ec5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c49bdbc141f6bedf019f33d65447a02e9de68d2e8289247f0d6db6f0f0d9ec5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c49bdbc141f6bedf019f33d65447a02e9de68d2e8289247f0d6db6f0f0d9ec5c", kill_on_drop: false }` [INFO] [stdout] c49bdbc141f6bedf019f33d65447a02e9de68d2e8289247f0d6db6f0f0d9ec5c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dinherent-method-on-receiver" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6bbf20881ab30a5441c09c1223cfb02f6dce55e4a863258bbb8a4c4fed5738e4 [INFO] running `Command { std: "docker" "start" "-a" "6bbf20881ab30a5441c09c1223cfb02f6dce55e4a863258bbb8a4c4fed5738e4", kill_on_drop: false }` [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling rustix v0.38.4 [INFO] [stderr] Checking linux-raw-sys v0.4.3 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking bitflags v2.3.3 [INFO] [stderr] Checking crossbeam-utils v0.8.16 [INFO] [stderr] Checking lock_api v0.4.10 [INFO] [stderr] Checking variance v0.1.3 [INFO] [stderr] Checking str-buf v1.0.6 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking errno v0.3.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num-traits v0.2.15 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking error-code v2.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking crossbeam-queue v0.3.8 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Checking scoped-thread-pool v1.0.4 [INFO] [stderr] Checking regex-automata v0.3.3 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking regex v1.9.1 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking rsgc v1.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `core_intrinsics` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | core_intrinsics, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `core_intrinsics` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | core_intrinsics, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_refs_to_cell` has been stable since 1.83.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | const_refs_to_cell, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_type_id` has been stable since 1.91.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | const_type_id, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `ptr_sub_ptr` has been stable since 1.87.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | ptr_sub_ptr, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_refs_to_cell` has been stable since 1.83.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | const_refs_to_cell, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_type_id` has been stable since 1.91.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | const_type_id, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `ptr_sub_ptr` has been stable since 1.87.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | ptr_sub_ptr, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | core::ptr::write_volatile(&mut SINK, val as usize); [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 84 | core::ptr::write_volatile(&raw mut SINK, val as usize); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/heap/heap.rs:813:14 [INFO] [stdout] | [INFO] [stdout] 813 | unsafe { HEAP.assume_init_mut().0 } [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: direct cast of function item into an integer [INFO] [stdout] --> src/heap/signals/unix.rs:118:41 [INFO] [stdout] | [INFO] [stdout] 118 | act.sa_sigaction = segv_handler as _; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(function_casts_as_integer)]` on by default [INFO] [stdout] help: first cast to a pointer `as *const ()` [INFO] [stdout] | [INFO] [stdout] 118 | act.sa_sigaction = segv_handler as *const () as _; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/heap/thread.rs:597:65 [INFO] [stdout] | [INFO] [stdout] 597 | !self.safepoint.is_null() && unsafe { self.safepoint != &mut SINK } [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] 597 | !self.safepoint.is_null() && unsafe { self.safepoint != &raw mut SINK } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/heap/thread.rs:602:18 [INFO] [stdout] | [INFO] [stdout] 602 | unsafe { &mut THREAD } [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] 602 | unsafe { &raw mut THREAD } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/heap/thread.rs:775:32 [INFO] [stdout] | [INFO] [stdout] 775 | thread.safepoint = &mut SINK; [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] 775 | thread.safepoint = &raw mut SINK; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | core::ptr::write_volatile(&mut SINK, val as usize); [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 84 | core::ptr::write_volatile(&raw mut SINK, val as usize); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/heap/heap.rs:813:14 [INFO] [stdout] | [INFO] [stdout] 813 | unsafe { HEAP.assume_init_mut().0 } [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: direct cast of function item into an integer [INFO] [stdout] --> src/heap/signals/unix.rs:118:41 [INFO] [stdout] | [INFO] [stdout] 118 | act.sa_sigaction = segv_handler as _; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(function_casts_as_integer)]` on by default [INFO] [stdout] help: first cast to a pointer `as *const ()` [INFO] [stdout] | [INFO] [stdout] 118 | act.sa_sigaction = segv_handler as *const () as _; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/heap/thread.rs:597:65 [INFO] [stdout] | [INFO] [stdout] 597 | !self.safepoint.is_null() && unsafe { self.safepoint != &mut SINK } [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] 597 | !self.safepoint.is_null() && unsafe { self.safepoint != &raw mut SINK } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/heap/thread.rs:602:18 [INFO] [stdout] | [INFO] [stdout] 602 | unsafe { &mut THREAD } [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] 602 | unsafe { &raw mut THREAD } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/heap/thread.rs:775:32 [INFO] [stdout] | [INFO] [stdout] 775 | thread.safepoint = &mut SINK; [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] 775 | thread.safepoint = &raw mut SINK; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: mutation of an interior mutable `const` item with call to `store` [INFO] [stdout] --> src/heap/worker_policy.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | PARALLEL_WORKER_THREADS.store(threads, atomic::Ordering::Relaxed); [INFO] [stdout] | -----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PARALLEL_WORKER_THREADS` is a interior mutable `const` item of type `AtomicUsize` [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: only the temporaries and never the original `const PARALLEL_WORKER_THREADS` will be modified [INFO] [stdout] = help: for more details on interior mutability see [INFO] [stdout] = note: `#[warn(const_item_interior_mutations)]` on by default [INFO] [stdout] help: for a shared instance of `PARALLEL_WORKER_THREADS`, consider making it a `static` item instead [INFO] [stdout] | [INFO] [stdout] 9 - const PARALLEL_WORKER_THREADS: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] 9 + static PARALLEL_WORKER_THREADS: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: mutation of an interior mutable `const` item with call to `store` [INFO] [stdout] --> src/heap/worker_policy.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | PARALLEL_WORKER_THREADS.store(args.parallel_gc_threads, atomic::Ordering::Relaxed); [INFO] [stdout] | -----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PARALLEL_WORKER_THREADS` is a interior mutable `const` item of type `AtomicUsize` [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: only the temporaries and never the original `const PARALLEL_WORKER_THREADS` will be modified [INFO] [stdout] = help: for more details on interior mutability see [INFO] [stdout] help: for a shared instance of `PARALLEL_WORKER_THREADS`, consider making it a `static` item instead [INFO] [stdout] | [INFO] [stdout] 9 - const PARALLEL_WORKER_THREADS: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] 9 + static PARALLEL_WORKER_THREADS: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: mutation of an interior mutable `const` item with call to `store` [INFO] [stdout] --> src/heap/worker_policy.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | PARALLEL_WORKER_THREADS_INITIALIZED.store(true, atomic::Ordering::Relaxed); [INFO] [stdout] | -----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PARALLEL_WORKER_THREADS_INITIALIZED` is a interior mutable `const` item of type `AtomicBool` [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: only the temporaries and never the original `const PARALLEL_WORKER_THREADS_INITIALIZED` will be modified [INFO] [stdout] = help: for more details on interior mutability see [INFO] [stdout] help: for a shared instance of `PARALLEL_WORKER_THREADS_INITIALIZED`, consider making it a `static` item instead [INFO] [stdout] | [INFO] [stdout] 10 - const PARALLEL_WORKER_THREADS_INITIALIZED: AtomicBool = AtomicBool::new(false); [INFO] [stdout] 10 + static PARALLEL_WORKER_THREADS_INITIALIZED: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn wait(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D inherent-method-on-receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:74:23 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn wait_until(&mut self, timeout: Instant) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn wait_for(&mut self, timeout: std::time::Duration) -> WaitTimeoutResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:82:23 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn wait_while(&mut self, condition: impl FnMut(&mut T) -> bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn notify(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn notify_all(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: mutation of an interior mutable `const` item with call to `store` [INFO] [stdout] --> src/heap/worker_policy.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | PARALLEL_WORKER_THREADS.store(threads, atomic::Ordering::Relaxed); [INFO] [stdout] | -----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PARALLEL_WORKER_THREADS` is a interior mutable `const` item of type `std::sync::atomic::AtomicUsize` [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: only the temporaries and never the original `const PARALLEL_WORKER_THREADS` will be modified [INFO] [stdout] = help: for more details on interior mutability see [INFO] [stdout] = note: `#[warn(const_item_interior_mutations)]` on by default [INFO] [stdout] help: for a shared instance of `PARALLEL_WORKER_THREADS`, consider making it a `static` item instead [INFO] [stdout] | [INFO] [stdout] 9 - const PARALLEL_WORKER_THREADS: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] 9 + static PARALLEL_WORKER_THREADS: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: mutation of an interior mutable `const` item with call to `store` [INFO] [stdout] --> src/heap/worker_policy.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | PARALLEL_WORKER_THREADS.store(args.parallel_gc_threads, atomic::Ordering::Relaxed); [INFO] [stdout] | -----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PARALLEL_WORKER_THREADS` is a interior mutable `const` item of type `std::sync::atomic::AtomicUsize` [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: only the temporaries and never the original `const PARALLEL_WORKER_THREADS` will be modified [INFO] [stdout] = help: for more details on interior mutability see [INFO] [stdout] help: for a shared instance of `PARALLEL_WORKER_THREADS`, consider making it a `static` item instead [INFO] [stdout] | [INFO] [stdout] 9 - const PARALLEL_WORKER_THREADS: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] 9 + static PARALLEL_WORKER_THREADS: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: mutation of an interior mutable `const` item with call to `store` [INFO] [stdout] --> src/heap/worker_policy.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | PARALLEL_WORKER_THREADS_INITIALIZED.store(true, atomic::Ordering::Relaxed); [INFO] [stdout] | -----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PARALLEL_WORKER_THREADS_INITIALIZED` is a interior mutable `const` item of type `AtomicBool` [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: only the temporaries and never the original `const PARALLEL_WORKER_THREADS_INITIALIZED` will be modified [INFO] [stdout] = help: for more details on interior mutability see [INFO] [stdout] help: for a shared instance of `PARALLEL_WORKER_THREADS_INITIALIZED`, consider making it a `static` item instead [INFO] [stdout] | [INFO] [stdout] 10 - const PARALLEL_WORKER_THREADS_INITIALIZED: AtomicBool = AtomicBool::new(false); [INFO] [stdout] 10 + static PARALLEL_WORKER_THREADS_INITIALIZED: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn wait(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D inherent-method-on-receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/system/object.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | std::mem::transmute::(value as usize) [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] 308 - std::mem::transmute::(value as usize) [INFO] [stdout] 308 + &*std::ptr::with_exposed_provenance::(value as usize) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/system/object.rs:378:18 [INFO] [stdout] | [INFO] [stdout] 378 | let vt = std::mem::transmute::(vt as usize); [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] 378 - let vt = std::mem::transmute::(vt as usize); [INFO] [stdout] 378 + let vt = &*std::ptr::with_exposed_provenance::(vt as usize); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/system/object.rs:476:19 [INFO] [stdout] | [INFO] [stdout] 476 | pub fn as_ref(&self) -> &T [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 613 | impl Deref for Handle { [INFO] [stdout] | ------------------------------------------- trait implemented here [INFO] [stdout] 614 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/system/object.rs:485:19 [INFO] [stdout] | [INFO] [stdout] 485 | pub fn as_mut(&mut self) -> &'_ mut T [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 613 | impl Deref for Handle { [INFO] [stdout] | ------------------------------------------- trait implemented here [INFO] [stdout] 614 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/system/object.rs:535:20 [INFO] [stdout] | [INFO] [stdout] 535 | pub fn replace(&mut self, other: T) -> T [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 613 | impl Deref for Handle { [INFO] [stdout] | ------------------------------------------- trait implemented here [INFO] [stdout] 614 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/system/weak_reference.rs:54:31 [INFO] [stdout] | [INFO] [stdout] 54 | let mut old_val = HEAD_REF.load(Ordering::Relaxed); [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] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:74:23 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn wait_until(&mut self, timeout: Instant) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/system/weak_reference.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | match HEAD_REF.compare_exchange_weak( [INFO] [stdout] | _______________________^ [INFO] [stdout] 58 | | old_val, [INFO] [stdout] 59 | | this_ptr, [INFO] [stdout] 60 | | Ordering::Relaxed, [INFO] [stdout] 61 | | Ordering::Relaxed, [INFO] [stdout] 62 | | ) { [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/system/weak_reference.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | let mut wr = HEAD_REF.load(Ordering::Relaxed); [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] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn wait_for(&mut self, timeout: std::time::Duration) -> WaitTimeoutResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/system/weak_reference.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | HEAD_REF.store(wr, Ordering::Relaxed); [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/system/weak_reference.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | HEAD_REF.store(wr, Ordering::Relaxed); [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] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:82:23 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn wait_while(&mut self, condition: impl FnMut(&mut T) -> bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn notify(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/sync/monitor.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn notify_all(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl<'a, T> Deref for MonitorLocker<'a, T> { [INFO] [stdout] | ------------------------------------------ trait implemented here [INFO] [stdout] 99 | type Target = MutexGuard<'a, T>; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] ::: src/sync/mutex.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 404 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/bitvector.rs:434:17 [INFO] [stdout] | [INFO] [stdout] 434 | pub fn iter(&self) -> BitIter { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 434 | pub fn iter(&self) -> BitIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/system/object.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | std::mem::transmute::(value as usize) [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] 308 - std::mem::transmute::(value as usize) [INFO] [stdout] 308 + &*std::ptr::with_exposed_provenance::(value as usize) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/system/object.rs:378:18 [INFO] [stdout] | [INFO] [stdout] 378 | let vt = std::mem::transmute::(vt as usize); [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] 378 - let vt = std::mem::transmute::(vt as usize); [INFO] [stdout] 378 + let vt = &*std::ptr::with_exposed_provenance::(vt as usize); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/system/object.rs:476:19 [INFO] [stdout] | [INFO] [stdout] 476 | pub fn as_ref(&self) -> &T [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 613 | impl Deref for Handle { [INFO] [stdout] | ------------------------------------------- trait implemented here [INFO] [stdout] 614 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/system/object.rs:485:19 [INFO] [stdout] | [INFO] [stdout] 485 | pub fn as_mut(&mut self) -> &'_ mut T [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 613 | impl Deref for Handle { [INFO] [stdout] | ------------------------------------------- trait implemented here [INFO] [stdout] 614 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/system/object.rs:535:20 [INFO] [stdout] | [INFO] [stdout] 535 | pub fn replace(&mut self, other: T) -> T [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 613 | impl Deref for Handle { [INFO] [stdout] | ------------------------------------------- trait implemented here [INFO] [stdout] 614 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/system/weak_reference.rs:54:31 [INFO] [stdout] | [INFO] [stdout] 54 | let mut old_val = HEAD_REF.load(Ordering::Relaxed); [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/system/weak_reference.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | match HEAD_REF.compare_exchange_weak( [INFO] [stdout] | _______________________^ [INFO] [stdout] 58 | | old_val, [INFO] [stdout] 59 | | this_ptr, [INFO] [stdout] 60 | | Ordering::Relaxed, [INFO] [stdout] 61 | | Ordering::Relaxed, [INFO] [stdout] 62 | | ) { [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/system/weak_reference.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | let mut wr = HEAD_REF.load(Ordering::Relaxed); [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/system/weak_reference.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | HEAD_REF.store(wr, Ordering::Relaxed); [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/system/weak_reference.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | HEAD_REF.store(wr, Ordering::Relaxed); [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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/bitvector.rs:434:17 [INFO] [stdout] | [INFO] [stdout] 434 | pub fn iter(&self) -> BitIter { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 434 | pub fn iter(&self) -> BitIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rsgc` (lib) due to 9 previous errors; 21 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rsgc` (lib test) due to 9 previous errors; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6bbf20881ab30a5441c09c1223cfb02f6dce55e4a863258bbb8a4c4fed5738e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bbf20881ab30a5441c09c1223cfb02f6dce55e4a863258bbb8a4c4fed5738e4", kill_on_drop: false }` [INFO] [stdout] 6bbf20881ab30a5441c09c1223cfb02f6dce55e4a863258bbb8a4c4fed5738e4