[INFO] fetching crate maybe-dangling 0.1.1... [INFO] testing maybe-dangling-0.1.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate maybe-dangling 0.1.1 into /workspace/builds/worker-2-tc2/source [INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config [INFO] removed /workspace/builds/worker-2-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate maybe-dangling 0.1.1 [INFO] finished tweaking crates.io crate maybe-dangling 0.1.1 [INFO] tweaked toml for crates.io crate maybe-dangling 0.1.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate maybe-dangling 0.1.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4321bcc340490ee63a374e81e34f4828379c51f5f119b799acf50e290360e6f9 [INFO] running `Command { std: "docker" "start" "-a" "4321bcc340490ee63a374e81e34f4828379c51f5f119b799acf50e290360e6f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4321bcc340490ee63a374e81e34f4828379c51f5f119b799acf50e290360e6f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4321bcc340490ee63a374e81e34f4828379c51f5f119b799acf50e290360e6f9", kill_on_drop: false }` [INFO] [stdout] 4321bcc340490ee63a374e81e34f4828379c51f5f119b799acf50e290360e6f9 [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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b63c00db39ae9cd8ef8cf47b6d2ab31b4455ddd735a9cf8d14feec4d298a114d [INFO] running `Command { std: "docker" "start" "-a" "b63c00db39ae9cd8ef8cf47b6d2ab31b4455ddd735a9cf8d14feec4d298a114d", kill_on_drop: false }` [INFO] [stderr] Compiling maybe-dangling v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/maybe_dangling.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 321 | fn deref_mut(&mut self) -> &mut T { [INFO] [stdout] | --------------------------------- move the `impl` block outside of this method `deref_mut` [INFO] [stdout] 322 | impl ::core::ops::Deref for MaybeDangling { [INFO] [stdout] | ^^^^^^^^------------------^^^^^-------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `MaybeDangling` is not local [INFO] [stdout] | `Deref` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/manually_drop.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 109 | fn deref_mut(&mut self) -> &mut T { [INFO] [stdout] | --------------------------------- move the `impl` block outside of this method `deref_mut` [INFO] [stdout] 110 | impl Deref for ManuallyDrop { [INFO] [stdout] | ^^^^^^^^-----^^^^^------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `ManuallyDrop` is not local [INFO] [stdout] | `Deref` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "b63c00db39ae9cd8ef8cf47b6d2ab31b4455ddd735a9cf8d14feec4d298a114d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b63c00db39ae9cd8ef8cf47b6d2ab31b4455ddd735a9cf8d14feec4d298a114d", kill_on_drop: false }` [INFO] [stdout] b63c00db39ae9cd8ef8cf47b6d2ab31b4455ddd735a9cf8d14feec4d298a114d [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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10acbed947cde7a0fe1c530ad4527e17340ea042367fd6293dfeffe26bf4e0b9 [INFO] running `Command { std: "docker" "start" "-a" "10acbed947cde7a0fe1c530ad4527e17340ea042367fd6293dfeffe26bf4e0b9", kill_on_drop: false }` [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/maybe_dangling.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 321 | fn deref_mut(&mut self) -> &mut T { [INFO] [stdout] | --------------------------------- move the `impl` block outside of this method `deref_mut` [INFO] [stdout] 322 | impl ::core::ops::Deref for MaybeDangling { [INFO] [stdout] | ^^^^^^^^------------------^^^^^-------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `MaybeDangling` is not local [INFO] [stdout] | `Deref` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling maybe-dangling v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/manually_drop.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 109 | fn deref_mut(&mut self) -> &mut T { [INFO] [stdout] | --------------------------------- move the `impl` block outside of this method `deref_mut` [INFO] [stdout] 110 | impl Deref for ManuallyDrop { [INFO] [stdout] | ^^^^^^^^-----^^^^^------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `ManuallyDrop` is not local [INFO] [stdout] | `Deref` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/maybe_dangling.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 321 | fn deref_mut(&mut self) -> &mut T { [INFO] [stdout] | --------------------------------- move the `impl` block outside of this method `deref_mut` [INFO] [stdout] 322 | impl ::core::ops::Deref for MaybeDangling { [INFO] [stdout] | ^^^^^^^^------------------^^^^^-------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `MaybeDangling` is not local [INFO] [stdout] | `Deref` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/manually_drop.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 109 | fn deref_mut(&mut self) -> &mut T { [INFO] [stdout] | --------------------------------- move the `impl` block outside of this method `deref_mut` [INFO] [stdout] 110 | impl Deref for ManuallyDrop { [INFO] [stdout] | ^^^^^^^^-----^^^^^------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `ManuallyDrop` is not local [INFO] [stdout] | `Deref` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] running `Command { std: "docker" "inspect" "10acbed947cde7a0fe1c530ad4527e17340ea042367fd6293dfeffe26bf4e0b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10acbed947cde7a0fe1c530ad4527e17340ea042367fd6293dfeffe26bf4e0b9", kill_on_drop: false }` [INFO] [stdout] 10acbed947cde7a0fe1c530ad4527e17340ea042367fd6293dfeffe26bf4e0b9 [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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] aac198d7901b54a1be942a524f1a6d67e8d114379f5c671f0efd55d89057a95d [INFO] running `Command { std: "docker" "start" "-a" "aac198d7901b54a1be942a524f1a6d67e8d114379f5c671f0efd55d89057a95d", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/maybe_dangling.rs:322:9 [INFO] [stderr] | [INFO] [stderr] 321 | fn deref_mut(&mut self) -> &mut T { [INFO] [stderr] | --------------------------------- move the `impl` block outside of this method `deref_mut` [INFO] [stderr] 322 | impl ::core::ops::Deref for MaybeDangling { [INFO] [stderr] | ^^^^^^^^------------------^^^^^-------------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `MaybeDangling` is not local [INFO] [stderr] | `Deref` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/manually_drop.rs:110:9 [INFO] [stderr] | [INFO] [stderr] 109 | fn deref_mut(&mut self) -> &mut T { [INFO] [stderr] | --------------------------------- move the `impl` block outside of this method `deref_mut` [INFO] [stderr] 110 | impl Deref for ManuallyDrop { [INFO] [stderr] | ^^^^^^^^-----^^^^^------------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `ManuallyDrop` is not local [INFO] [stderr] | `Deref` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: `maybe-dangling` (lib) generated 2 warnings [INFO] [stderr] warning: `maybe-dangling` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/maybe_dangling-187d64ba7337f651) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests maybe_dangling [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/maybe_dangling.rs - maybe_dangling::MaybeDangling (line 199) - compile fail ... ok [INFO] [stdout] test src/maybe_dangling.rs - maybe_dangling::MaybeDangling (line 221) ... ok [INFO] [stdout] test src/maybe_dangling.rs - maybe_dangling::MaybeDangling (line 131) ... ok [INFO] [stdout] test src/maybe_dangling.rs - maybe_dangling::MaybeDangling (line 172) - compile fail ... ok [INFO] [stdout] test src/maybe_dangling.rs - maybe_dangling::MaybeDangling (line 151) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.45s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "aac198d7901b54a1be942a524f1a6d67e8d114379f5c671f0efd55d89057a95d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aac198d7901b54a1be942a524f1a6d67e8d114379f5c671f0efd55d89057a95d", kill_on_drop: false }` [INFO] [stdout] aac198d7901b54a1be942a524f1a6d67e8d114379f5c671f0efd55d89057a95d