[INFO] fetching crate instance-copy-on-write 0.9.1... [INFO] checking instance-copy-on-write-0.9.1 against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied [INFO] extracting crate instance-copy-on-write 0.9.1 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate instance-copy-on-write 0.9.1 [INFO] finished tweaking crates.io crate instance-copy-on-write 0.9.1 [INFO] tweaked toml for crates.io crate instance-copy-on-write 0.9.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate instance-copy-on-write 0.9.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 instance-copy-on-write 0.9.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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 1a060603355fb333988c196337fabdb6a7ae823d07b069c143a83e3a43fdc9d9 [INFO] running `Command { std: "docker" "start" "-a" "1a060603355fb333988c196337fabdb6a7ae823d07b069c143a83e3a43fdc9d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a060603355fb333988c196337fabdb6a7ae823d07b069c143a83e3a43fdc9d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a060603355fb333988c196337fabdb6a7ae823d07b069c143a83e3a43fdc9d9", kill_on_drop: false }` [INFO] [stdout] 1a060603355fb333988c196337fabdb6a7ae823d07b069c143a83e3a43fdc9d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 99a3b09289a0430780f7d873351b5ff08a6b6cb2347942ba30c719195e8bca9c [INFO] running `Command { std: "docker" "start" "-a" "99a3b09289a0430780f7d873351b5ff08a6b6cb2347942ba30c719195e8bca9c", kill_on_drop: false }` [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking instance-copy-on-write v0.9.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/lib.rs:189:34 [INFO] [stdout] | [INFO] [stdout] 189 | struct Test { s: String }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `instance-copy-on-write` (lib) due to 21 previous errors [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/cow_mutex.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'weak, ITEM: Sized> Deref for ICoWWeakRead<'weak, ITEM> [INFO] [stdout] | ------------------------------------------------------------ trait implemented here [INFO] [stdout] 39 | { [INFO] [stdout] 40 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 53 | fn item_updated(&self) -> bool [INFO] [stdout] | ^^^^^ [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/cow_mutex.rs:133:30 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 133 | fn clone_copy_into_inner(self) -> ITEM [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/cow_mutex.rs:143:24 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 143 | fn copy_into_inner(self) -> ITEM [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/cow_mutex.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 153 | fn weak(&self) -> Weak [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/cow_mutex.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 164 | fn upgrade_copy(self) -> ICoWCopy<'read, ITEM> [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/cow_mutex.rs:184:27 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 184 | fn upgrade_clone_copy(self) -> ICoWCopy<'read, ITEM> [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/cow_mutex.rs:204:24 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 204 | fn upgrade_default(self) -> ICoWCopy<'read, ITEM> [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/cow_mutex.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 238 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 239 | { [INFO] [stdout] 240 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 261 | fn prev_val(&self) -> &ITEM [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/cow_mutex.rs:288:15 [INFO] [stdout] | [INFO] [stdout] 238 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 239 | { [INFO] [stdout] 240 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 288 | fn commit(self) -> Result<(), (ICoWError, Self)> [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/cow_mutex.rs:340:24 [INFO] [stdout] | [INFO] [stdout] 238 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 239 | { [INFO] [stdout] 240 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 340 | fn commit_blocking(self, ignore_excl: bool) -> Result<(), Self> [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/cow_mutex.rs:364:19 [INFO] [stdout] | [INFO] [stdout] 238 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 239 | { [INFO] [stdout] 240 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 364 | fn into_inner(self) -> ITEM [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/cow_mutex.rs:410:17 [INFO] [stdout] | [INFO] [stdout] 410 | fn prev_val(&self) -> &ITEM [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | impl<'lock, ITEM: Sized> Deref for ICoWLock<'lock, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 435 | { [INFO] [stdout] 436 | type Target = ITEM; [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/cow_mutex.rs:424:15 [INFO] [stdout] | [INFO] [stdout] 424 | fn commit(mut self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | impl<'lock, ITEM: Sized> Deref for ICoWLock<'lock, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 435 | { [INFO] [stdout] 436 | type Target = ITEM; [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/cow_refcell.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 50 | fn into_inner(self) -> Rc [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/cow_refcell.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 57 | fn weak(&self) -> Weak [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/cow_refcell.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 68 | fn upgrade_copy(self) -> ICoWCopy<'read, ITEM> [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/cow_refcell.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 88 | fn upgrade_clone_copy(self) -> ICoWCopy<'read, ITEM> [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/cow_refcell.rs:108:24 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 108 | fn upgrade_default(self) -> ICoWCopy<'read, ITEM> [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/cow_refcell.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 142 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 143 | { [INFO] [stdout] 144 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 165 | fn prev_val(&self) -> &ITEM [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/cow_refcell.rs:176:15 [INFO] [stdout] | [INFO] [stdout] 142 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 143 | { [INFO] [stdout] 144 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 176 | fn commit(self) [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/cow_refcell.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 142 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 143 | { [INFO] [stdout] 144 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 187 | fn into_inner(self) -> ITEM [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read0` [INFO] [stdout] --> src/lib.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | let read0 = icow.read(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_read0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read1` [INFO] [stdout] --> src/lib.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let read1 = icow.read(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_read1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc` [INFO] [stdout] --> src/lib.rs:425:18 [INFO] [stdout] | [INFO] [stdout] 425 | let (se, rc) = mpsc::channel::<()>(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read0` [INFO] [stdout] --> src/lib.rs:493:13 [INFO] [stdout] | [INFO] [stdout] 493 | let read0 = icow.read(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_read0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read2` [INFO] [stdout] --> src/lib.rs:494:13 [INFO] [stdout] | [INFO] [stdout] 494 | let read2 = icow.read(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_read2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read0` [INFO] [stdout] --> src/lib.rs:686:17 [INFO] [stdout] | [INFO] [stdout] 686 | let read0 = icow.read(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_read0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read2` [INFO] [stdout] --> src/lib.rs:687:17 [INFO] [stdout] | [INFO] [stdout] 687 | let read2 = icow.read(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_read2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `s` is never read [INFO] [stdout] --> src/lib.rs:168:23 [INFO] [stdout] | [INFO] [stdout] 168 | struct Test { s: String } [INFO] [stdout] | ---- ^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Test` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `s` is never read [INFO] [stdout] --> src/lib.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | struct Test { s: String }; [INFO] [stdout] | ---- ^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Test` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/cow_mutex.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'weak, ITEM: Sized> Deref for ICoWWeakRead<'weak, ITEM> [INFO] [stdout] | ------------------------------------------------------------ trait implemented here [INFO] [stdout] 39 | { [INFO] [stdout] 40 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 53 | fn item_updated(&self) -> bool [INFO] [stdout] | ^^^^^ [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/cow_mutex.rs:133:30 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 133 | fn clone_copy_into_inner(self) -> ITEM [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/cow_mutex.rs:143:24 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 143 | fn copy_into_inner(self) -> ITEM [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/cow_mutex.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 153 | fn weak(&self) -> Weak [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/cow_mutex.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 164 | fn upgrade_copy(self) -> ICoWCopy<'read, ITEM> [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/cow_mutex.rs:184:27 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 184 | fn upgrade_clone_copy(self) -> ICoWCopy<'read, ITEM> [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/cow_mutex.rs:204:24 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 120 | { [INFO] [stdout] 121 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 204 | fn upgrade_default(self) -> ICoWCopy<'read, ITEM> [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/cow_mutex.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 238 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 239 | { [INFO] [stdout] 240 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 261 | fn prev_val(&self) -> &ITEM [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/cow_mutex.rs:288:15 [INFO] [stdout] | [INFO] [stdout] 238 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 239 | { [INFO] [stdout] 240 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 288 | fn commit(self) -> Result<(), (ICoWError, Self)> [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/cow_mutex.rs:340:24 [INFO] [stdout] | [INFO] [stdout] 238 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 239 | { [INFO] [stdout] 240 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 340 | fn commit_blocking(self, ignore_excl: bool) -> Result<(), Self> [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/cow_mutex.rs:364:19 [INFO] [stdout] | [INFO] [stdout] 238 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 239 | { [INFO] [stdout] 240 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 364 | fn into_inner(self) -> ITEM [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/cow_mutex.rs:410:17 [INFO] [stdout] | [INFO] [stdout] 410 | fn prev_val(&self) -> &ITEM [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | impl<'lock, ITEM: Sized> Deref for ICoWLock<'lock, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 435 | { [INFO] [stdout] 436 | type Target = ITEM; [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/cow_mutex.rs:424:15 [INFO] [stdout] | [INFO] [stdout] 424 | fn commit(mut self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | impl<'lock, ITEM: Sized> Deref for ICoWLock<'lock, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 435 | { [INFO] [stdout] 436 | type Target = ITEM; [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/cow_refcell.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 50 | fn into_inner(self) -> Rc [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/cow_refcell.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 57 | fn weak(&self) -> Weak [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/cow_refcell.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 68 | fn upgrade_copy(self) -> ICoWCopy<'read, ITEM> [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/cow_refcell.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 88 | fn upgrade_clone_copy(self) -> ICoWCopy<'read, ITEM> [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/cow_refcell.rs:108:24 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'read, ITEM: Sized> Deref for ICoWRead<'read, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 37 | { [INFO] [stdout] 38 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 108 | fn upgrade_default(self) -> ICoWCopy<'read, ITEM> [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/cow_refcell.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 142 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 143 | { [INFO] [stdout] 144 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 165 | fn prev_val(&self) -> &ITEM [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/cow_refcell.rs:176:15 [INFO] [stdout] | [INFO] [stdout] 142 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 143 | { [INFO] [stdout] 144 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 176 | fn commit(self) [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/cow_refcell.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 142 | impl<'copy, ITEM: Sized> Deref for ICoWCopy<'copy, ITEM> [INFO] [stdout] | -------------------------------------------------------- trait implemented here [INFO] [stdout] 143 | { [INFO] [stdout] 144 | type Target = ITEM; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] ... [INFO] [stdout] 187 | fn into_inner(self) -> ITEM [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:471:17 [INFO] [stdout] | [INFO] [stdout] 471 | se2.send(()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 471 | let _ = se2.send(()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `instance-copy-on-write` (lib test) due to 21 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "99a3b09289a0430780f7d873351b5ff08a6b6cb2347942ba30c719195e8bca9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99a3b09289a0430780f7d873351b5ff08a6b6cb2347942ba30c719195e8bca9c", kill_on_drop: false }` [INFO] [stdout] 99a3b09289a0430780f7d873351b5ff08a6b6cb2347942ba30c719195e8bca9c