[INFO] fetching crate maybe-dangling 0.1.1... [INFO] testing maybe-dangling-0.1.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate maybe-dangling 0.1.1 into /workspace/builds/worker-2-tc1/source [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config [INFO] removed /workspace/builds/worker-2-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate maybe-dangling 0.1.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 489eb2263df5e294c1944bdcd3833a24890036eba20570339b64f7b823647a3a [INFO] running `Command { std: "docker" "start" "-a" "489eb2263df5e294c1944bdcd3833a24890036eba20570339b64f7b823647a3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "489eb2263df5e294c1944bdcd3833a24890036eba20570339b64f7b823647a3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "489eb2263df5e294c1944bdcd3833a24890036eba20570339b64f7b823647a3a", kill_on_drop: false }` [INFO] [stdout] 489eb2263df5e294c1944bdcd3833a24890036eba20570339b64f7b823647a3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9c42ca92877e883eaf593469c420e158477b323177ae3b8e25bcfaa35a60782 [INFO] running `Command { std: "docker" "start" "-a" "c9c42ca92877e883eaf593469c420e158477b323177ae3b8e25bcfaa35a60782", 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.25s [INFO] running `Command { std: "docker" "inspect" "c9c42ca92877e883eaf593469c420e158477b323177ae3b8e25bcfaa35a60782", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9c42ca92877e883eaf593469c420e158477b323177ae3b8e25bcfaa35a60782", kill_on_drop: false }` [INFO] [stdout] c9c42ca92877e883eaf593469c420e158477b323177ae3b8e25bcfaa35a60782 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82f42fd52ff23ce8d13cce15a1ab894bfbe482959aa09d86718a15c9ba4d5006 [INFO] running `Command { std: "docker" "start" "-a" "82f42fd52ff23ce8d13cce15a1ab894bfbe482959aa09d86718a15c9ba4d5006", 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] [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] 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 `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "82f42fd52ff23ce8d13cce15a1ab894bfbe482959aa09d86718a15c9ba4d5006", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82f42fd52ff23ce8d13cce15a1ab894bfbe482959aa09d86718a15c9ba4d5006", kill_on_drop: false }` [INFO] [stdout] 82f42fd52ff23ce8d13cce15a1ab894bfbe482959aa09d86718a15c9ba4d5006 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 82621fc462ac8efdea0933841872618dbc23ef87601d65a6e6dc77eae792a016 [INFO] running `Command { std: "docker" "start" "-a" "82621fc462ac8efdea0933841872618dbc23ef87601d65a6e6dc77eae792a016", 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.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/maybe_dangling-187d64ba7337f651) [INFO] [stdout] [INFO] [stderr] Doc-tests maybe_dangling [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] [stdout] [INFO] [stdout] running 5 tests [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 151) ... ok [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 172) - compile fail ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.44s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "82621fc462ac8efdea0933841872618dbc23ef87601d65a6e6dc77eae792a016", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82621fc462ac8efdea0933841872618dbc23ef87601d65a6e6dc77eae792a016", kill_on_drop: false }` [INFO] [stdout] 82621fc462ac8efdea0933841872618dbc23ef87601d65a6e6dc77eae792a016