[INFO] fetching crate dummy_xml 0.1.6... [INFO] checking dummy_xml-0.1.6 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate dummy_xml 0.1.6 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate dummy_xml 0.1.6 on toolchain 7014e13d5becc920d4bea3cd87942c8a13d359bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "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-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7942461afa501ef72162e2f8f17ef604077cfa7d6bd40ad63dcd8632a2623dd [INFO] running `Command { std: "docker" "start" "-a" "c7942461afa501ef72162e2f8f17ef604077cfa7d6bd40ad63dcd8632a2623dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7942461afa501ef72162e2f8f17ef604077cfa7d6bd40ad63dcd8632a2623dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7942461afa501ef72162e2f8f17ef604077cfa7d6bd40ad63dcd8632a2623dd", kill_on_drop: false }` [INFO] [stdout] c7942461afa501ef72162e2f8f17ef604077cfa7d6bd40ad63dcd8632a2623dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail_expr_drop_order" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b251db61c7780c5cc9b99b50ca53c77d348b641d77263ff2b7fa6711250b02fc [INFO] running `Command { std: "docker" "start" "-a" "b251db61c7780c5cc9b99b50ca53c77d348b641d77263ff2b7fa6711250b02fc", 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: 5 warnings emitted [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "b251db61c7780c5cc9b99b50ca53c77d348b641d77263ff2b7fa6711250b02fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b251db61c7780c5cc9b99b50ca53c77d348b641d77263ff2b7fa6711250b02fc", kill_on_drop: false }` [INFO] [stdout] b251db61c7780c5cc9b99b50ca53c77d348b641d77263ff2b7fa6711250b02fc