[INFO] fetching crate dummy_xml 0.1.6... [INFO] checking dummy_xml-0.1.6 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate dummy_xml 0.1.6 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate dummy_xml 0.1.6 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate dummy_xml 0.1.6 [INFO] finished tweaking crates.io crate dummy_xml 0.1.6 [INFO] tweaked toml for crates.io crate dummy_xml 0.1.6 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3836ebcfc038dfa669817739c0dcce92151d5e758e87f04651a314e15383c8ee [INFO] running `Command { std: "docker" "start" "-a" "3836ebcfc038dfa669817739c0dcce92151d5e758e87f04651a314e15383c8ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3836ebcfc038dfa669817739c0dcce92151d5e758e87f04651a314e15383c8ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3836ebcfc038dfa669817739c0dcce92151d5e758e87f04651a314e15383c8ee", kill_on_drop: false }` [INFO] [stdout] 3836ebcfc038dfa669817739c0dcce92151d5e758e87f04651a314e15383c8ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06f2490784073b2d4bccb13bc53af4253c191e491752e04e4e41196d3fc099d3 [INFO] running `Command { std: "docker" "start" "-a" "06f2490784073b2d4bccb13bc53af4253c191e491752e04e4e41196d3fc099d3", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking dummy_xml v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:82:52 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { self.prev.as_ref().map(|attr| attr.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `node::Attribute` does not implement `Borrow`, so calling `borrow` on `&node::Attribute` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 82 - unsafe { self.prev.as_ref().map(|attr| attr.borrow()) } [INFO] [stdout] 82 + unsafe { self.prev.as_ref().map(|attr| attr) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `node::Attribute`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Clone)] [INFO] [stdout] 6 | pub struct Attribute { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:178:52 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { self.prev.as_ref().map(|node| node.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `node::Node<'_>` does not implement `Borrow`, so calling `borrow` on `&node::Node<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 178 - unsafe { self.prev.as_ref().map(|node| node.borrow()) } [INFO] [stdout] 178 + unsafe { self.prev.as_ref().map(|node| node) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `node::Node<'_>`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 24 + #[derive(Clone)] [INFO] [stdout] 25 | pub struct Node<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:188:54 [INFO] [stdout] | [INFO] [stdout] 188 | unsafe { self.parent.as_ref().map(|node| node.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `node::Node<'_>` does not implement `Borrow`, so calling `borrow` on `&node::Node<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 188 - unsafe { self.parent.as_ref().map(|node| node.borrow()) } [INFO] [stdout] 188 + unsafe { self.parent.as_ref().map(|node| node) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `node::Node<'_>`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 24 + #[derive(Clone)] [INFO] [stdout] 25 | pub struct Node<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:208:58 [INFO] [stdout] | [INFO] [stdout] 208 | unsafe { self.last_child.as_ref().map(|node| node.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `node::Node<'_>` does not implement `Borrow`, so calling `borrow` on `&node::Node<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 208 - unsafe { self.last_child.as_ref().map(|node| node.borrow()) } [INFO] [stdout] 208 + unsafe { self.last_child.as_ref().map(|node| node) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `node::Node<'_>`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 24 + #[derive(Clone)] [INFO] [stdout] 25 | pub struct Node<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:228:57 [INFO] [stdout] | [INFO] [stdout] 228 | unsafe { self.last_attr.as_ref().map(|node| node.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `node::Attribute` does not implement `Borrow`, so calling `borrow` on `&node::Attribute` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 228 - unsafe { self.last_attr.as_ref().map(|node| node.borrow()) } [INFO] [stdout] 228 + unsafe { self.last_attr.as_ref().map(|node| node) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `node::Attribute`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Clone)] [INFO] [stdout] 6 | pub struct Attribute { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:82:52 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { self.prev.as_ref().map(|attr| attr.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Attribute` does not implement `Borrow`, so calling `borrow` on `&Attribute` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 82 - unsafe { self.prev.as_ref().map(|attr| attr.borrow()) } [INFO] [stdout] 82 + unsafe { self.prev.as_ref().map(|attr| attr) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Attribute`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Clone)] [INFO] [stdout] 6 | pub struct Attribute { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:178:52 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { self.prev.as_ref().map(|node| node.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Node<'_>` does not implement `Borrow`, so calling `borrow` on `&Node<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 178 - unsafe { self.prev.as_ref().map(|node| node.borrow()) } [INFO] [stdout] 178 + unsafe { self.prev.as_ref().map(|node| node) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Node<'_>`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 24 + #[derive(Clone)] [INFO] [stdout] 25 | pub struct Node<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:188:54 [INFO] [stdout] | [INFO] [stdout] 188 | unsafe { self.parent.as_ref().map(|node| node.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Node<'_>` does not implement `Borrow`, so calling `borrow` on `&Node<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 188 - unsafe { self.parent.as_ref().map(|node| node.borrow()) } [INFO] [stdout] 188 + unsafe { self.parent.as_ref().map(|node| node) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Node<'_>`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 24 + #[derive(Clone)] [INFO] [stdout] 25 | pub struct Node<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:208:58 [INFO] [stdout] | [INFO] [stdout] 208 | unsafe { self.last_child.as_ref().map(|node| node.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Node<'_>` does not implement `Borrow`, so calling `borrow` on `&Node<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 208 - unsafe { self.last_child.as_ref().map(|node| node.borrow()) } [INFO] [stdout] 208 + unsafe { self.last_child.as_ref().map(|node| node) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Node<'_>`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 24 + #[derive(Clone)] [INFO] [stdout] 25 | pub struct Node<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/node.rs:228:57 [INFO] [stdout] | [INFO] [stdout] 228 | unsafe { self.last_attr.as_ref().map(|node| node.borrow()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Attribute` does not implement `Borrow`, so calling `borrow` on `&Attribute` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 228 - unsafe { self.last_attr.as_ref().map(|node| node.borrow()) } [INFO] [stdout] 228 + unsafe { self.last_attr.as_ref().map(|node| node) } [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Attribute`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Clone)] [INFO] [stdout] 6 | pub struct Attribute { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.48s [INFO] running `Command { std: "docker" "inspect" "06f2490784073b2d4bccb13bc53af4253c191e491752e04e4e41196d3fc099d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06f2490784073b2d4bccb13bc53af4253c191e491752e04e4e41196d3fc099d3", kill_on_drop: false }` [INFO] [stdout] 06f2490784073b2d4bccb13bc53af4253c191e491752e04e4e41196d3fc099d3