[INFO] fetching crate cgc-single-threaded 0.1.1... [INFO] checking cgc-single-threaded-0.1.1 against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied [INFO] extracting crate cgc-single-threaded 0.1.1 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate cgc-single-threaded 0.1.1 [INFO] finished tweaking crates.io crate cgc-single-threaded 0.1.1 [INFO] tweaked toml for crates.io crate cgc-single-threaded 0.1.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate cgc-single-threaded 0.1.1 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 crates.io crate cgc-single-threaded 0.1.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" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] e8298bb8b4b08dc6fd2e88517232de86116ff537b3dad5b7125f0b8488c980c6 [INFO] running `Command { std: "docker" "start" "-a" "e8298bb8b4b08dc6fd2e88517232de86116ff537b3dad5b7125f0b8488c980c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8298bb8b4b08dc6fd2e88517232de86116ff537b3dad5b7125f0b8488c980c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8298bb8b4b08dc6fd2e88517232de86116ff537b3dad5b7125f0b8488c980c6", kill_on_drop: false }` [INFO] [stdout] e8298bb8b4b08dc6fd2e88517232de86116ff537b3dad5b7125f0b8488c980c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 68f65800d5724eb858c357fb61b1951d77531c7cd5193ca71f922e2a62751ba9 [INFO] running `Command { std: "docker" "start" "-a" "68f65800d5724eb858c357fb61b1951d77531c7cd5193ca71f922e2a62751ba9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling syn v1.0.13 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Checking smallvec v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v1.9.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking chrono v0.4.10 [INFO] [stderr] Checking simple_logger v1.6.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling rustversion v1.0.1 [INFO] [stderr] Compiling time-macros-impl v0.1.0 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Checking time v0.2.3 [INFO] [stderr] Checking cgc-single-threaded v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/mem.rs:933:16 [INFO] [stdout] | [INFO] [stdout] 933 | #[cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `trace-gc`, and `trace-gc-timings` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/mem.rs:941:16 [INFO] [stdout] | [INFO] [stdout] 941 | #[cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `trace-gc`, and `trace-gc-timings` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/mem.rs:947:16 [INFO] [stdout] | [INFO] [stdout] 947 | #[cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `trace-gc`, and `trace-gc-timings` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/mem.rs:953:16 [INFO] [stdout] | [INFO] [stdout] 953 | #[cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `trace-gc`, and `trace-gc-timings` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::*` [INFO] [stdout] --> src/mem.rs:799:5 [INFO] [stdout] | [INFO] [stdout] 799 | use std::hash::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/mem.rs:933:16 [INFO] [stdout] | [INFO] [stdout] 933 | #[cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `trace-gc`, and `trace-gc-timings` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/mem.rs:941:16 [INFO] [stdout] | [INFO] [stdout] 941 | #[cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `trace-gc`, and `trace-gc-timings` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/mem.rs:947:16 [INFO] [stdout] | [INFO] [stdout] 947 | #[cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `trace-gc`, and `trace-gc-timings` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/mem.rs:953:16 [INFO] [stdout] | [INFO] [stdout] 953 | #[cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `trace-gc`, and `trace-gc-timings` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::*` [INFO] [stdout] --> src/mem.rs:799:5 [INFO] [stdout] | [INFO] [stdout] 799 | use std::hash::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicPtr::::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/mem.rs:936:14 [INFO] [stdout] | [INFO] [stdout] 936 | .compare_and_swap(current, other, Ordering::AcqRel) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicPtr::::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/mem.rs:936:14 [INFO] [stdout] | [INFO] [stdout] 936 | .compare_and_swap(current, other, Ordering::AcqRel) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/mem.rs:775:16 [INFO] [stdout] | [INFO] [stdout] 775 | pub fn set(&self, val: T) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 822 | impl std::ops::Deref for Ptr { [INFO] [stdout] | ---------------------------------- trait implemented here [INFO] [stdout] 823 | 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/mem.rs:779:20 [INFO] [stdout] | [INFO] [stdout] 779 | pub fn replace(&self, val: T) -> T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 822 | impl std::ops::Deref for Ptr { [INFO] [stdout] | ---------------------------------- trait implemented here [INFO] [stdout] 823 | 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/mem.rs:783:17 [INFO] [stdout] | [INFO] [stdout] 783 | pub fn take(&self) -> T [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 822 | impl std::ops::Deref for Ptr { [INFO] [stdout] | ---------------------------------- trait implemented here [INFO] [stdout] 823 | 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/mem.rs:790:20 [INFO] [stdout] | [INFO] [stdout] 790 | pub fn is_null(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 822 | impl std::ops::Deref for Ptr { [INFO] [stdout] | ---------------------------------- trait implemented here [INFO] [stdout] 823 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cgc-single-threaded` (lib test) due to 4 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/mem.rs:775:16 [INFO] [stdout] | [INFO] [stdout] 775 | pub fn set(&self, val: T) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 822 | impl std::ops::Deref for Ptr { [INFO] [stdout] | ---------------------------------- trait implemented here [INFO] [stdout] 823 | 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/mem.rs:779:20 [INFO] [stdout] | [INFO] [stdout] 779 | pub fn replace(&self, val: T) -> T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 822 | impl std::ops::Deref for Ptr { [INFO] [stdout] | ---------------------------------- trait implemented here [INFO] [stdout] 823 | 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/mem.rs:783:17 [INFO] [stdout] | [INFO] [stdout] 783 | pub fn take(&self) -> T [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 822 | impl std::ops::Deref for Ptr { [INFO] [stdout] | ---------------------------------- trait implemented here [INFO] [stdout] 823 | 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/mem.rs:790:20 [INFO] [stdout] | [INFO] [stdout] 790 | pub fn is_null(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 822 | impl std::ops::Deref for Ptr { [INFO] [stdout] | ---------------------------------- trait implemented here [INFO] [stdout] 823 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cgc-single-threaded` (lib) due to 4 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "68f65800d5724eb858c357fb61b1951d77531c7cd5193ca71f922e2a62751ba9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68f65800d5724eb858c357fb61b1951d77531c7cd5193ca71f922e2a62751ba9", kill_on_drop: false }` [INFO] [stdout] 68f65800d5724eb858c357fb61b1951d77531c7cd5193ca71f922e2a62751ba9