[INFO] cloning repository https://github.com/Adi-df/index_alloc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Adi-df/index_alloc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdi-df%2Findex_alloc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdi-df%2Findex_alloc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51d7e58e02ac1ae25ee12f0d51be0dc5a1059274 [INFO] checking Adi-df/index_alloc against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied-retry-0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdi-df%2Findex_alloc" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Adi-df/index_alloc [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/Adi-df/index_alloc [INFO] tweaked toml for git repo https://github.com/Adi-df/index_alloc written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Adi-df/index_alloc 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/Adi-df/index_alloc 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 0b6e43606b304af8c4c32dff6169c4152d168aa7944571e46b5f13a52b7a2ac3 [INFO] running `Command { std: "docker" "start" "-a" "0b6e43606b304af8c4c32dff6169c4152d168aa7944571e46b5f13a52b7a2ac3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b6e43606b304af8c4c32dff6169c4152d168aa7944571e46b5f13a52b7a2ac3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b6e43606b304af8c4c32dff6169c4152d168aa7944571e46b5f13a52b7a2ac3", kill_on_drop: false }` [INFO] [stdout] 0b6e43606b304af8c4c32dff6169c4152d168aa7944571e46b5f13a52b7a2ac3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] d231405fc638ddb5b18840de9900158534a8c06ede53dc469cad44f525642ef6 [INFO] running `Command { std: "docker" "start" "-a" "d231405fc638ddb5b18840de9900158534a8c06ede53dc469cad44f525642ef6", kill_on_drop: false }` [INFO] [stderr] Checking index_alloc v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: `#[must_use]` attribute cannot be used on trait methods in impl blocks [INFO] [stdout] --> src/rc.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 198 | #[must_use] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[must_use]` can be applied to data types, foreign functions, functions, inherent methods, provided trait methods, required trait methods, and traits [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[must_use]` attribute cannot be used on trait methods in impl blocks [INFO] [stdout] --> src/lib.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | #[must_use] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[must_use]` can be applied to data types, foreign functions, functions, inherent methods, provided trait methods, required trait methods, and traits [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[must_use]` attribute cannot be used on trait methods in impl blocks [INFO] [stdout] --> src/rc.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 198 | #[must_use] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[must_use]` can be applied to data types, foreign functions, functions, inherent methods, provided trait methods, required trait methods, and traits [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[must_use]` attribute cannot be used on trait methods in impl blocks [INFO] [stdout] --> src/lib.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | #[must_use] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[must_use]` can be applied to data types, foreign functions, functions, inherent methods, provided trait methods, required trait methods, and traits [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lib.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 150 | &'a self, [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 151 | val: U, [INFO] [stdout] 152 | ) -> Result, IndexError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden 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: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 152 | ) -> Result, IndexError> [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/boxed.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn try_free(self) -> Result<(), IndexError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 101 | | for Box<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 104 | { [INFO] [stdout] 105 | 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/boxed.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn allocator(&self) -> &'a IndexAllocator { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 101 | | for Box<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 104 | { [INFO] [stdout] 105 | 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/rc.rs:149:22 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn downgrade(&self) -> Weak<'a, T, MEMORY_SIZE, INDEX_SIZE> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 206 | | for Rc<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 207 | | where [INFO] [stdout] 208 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 209 | { [INFO] [stdout] 210 | 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/rc.rs:159:25 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 206 | | for Rc<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 207 | | where [INFO] [stdout] 208 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 209 | { [INFO] [stdout] 210 | 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/rc.rs:165:23 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 206 | | for Rc<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 207 | | where [INFO] [stdout] 208 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 209 | { [INFO] [stdout] 210 | 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/rc.rs:171:22 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn allocator(&self) -> &'a IndexAllocator { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 206 | | for Rc<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 207 | | where [INFO] [stdout] 208 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 209 | { [INFO] [stdout] 210 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `index_alloc` (lib) due to 6 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lib.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 150 | &'a self, [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 151 | val: U, [INFO] [stdout] 152 | ) -> Result, IndexError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden 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: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 152 | ) -> Result, IndexError> [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/boxed.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn try_free(self) -> Result<(), IndexError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 101 | | for Box<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 104 | { [INFO] [stdout] 105 | 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/boxed.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn allocator(&self) -> &'a IndexAllocator { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 101 | | for Box<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 104 | { [INFO] [stdout] 105 | 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/rc.rs:149:22 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn downgrade(&self) -> Weak<'a, T, MEMORY_SIZE, INDEX_SIZE> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 206 | | for Rc<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 207 | | where [INFO] [stdout] 208 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 209 | { [INFO] [stdout] 210 | 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/rc.rs:159:25 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 206 | | for Rc<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 207 | | where [INFO] [stdout] 208 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 209 | { [INFO] [stdout] 210 | 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/rc.rs:165:23 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 206 | | for Rc<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 207 | | where [INFO] [stdout] 208 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 209 | { [INFO] [stdout] 210 | 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/rc.rs:171:22 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn allocator(&self) -> &'a IndexAllocator { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | / impl<'a, T, const MEMORY_SIZE: usize, const INDEX_SIZE: usize> Deref [INFO] [stdout] 206 | | for Rc<'a, T, MEMORY_SIZE, INDEX_SIZE> [INFO] [stdout] 207 | | where [INFO] [stdout] 208 | | T: ?Sized, [INFO] [stdout] | |______________- trait implemented here [INFO] [stdout] 209 | { [INFO] [stdout] 210 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `index_alloc` (lib test) due to 6 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d231405fc638ddb5b18840de9900158534a8c06ede53dc469cad44f525642ef6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d231405fc638ddb5b18840de9900158534a8c06ede53dc469cad44f525642ef6", kill_on_drop: false }` [INFO] [stdout] d231405fc638ddb5b18840de9900158534a8c06ede53dc469cad44f525642ef6