[INFO] fetching crate dummy_xml 0.1.6... [INFO] checking dummy_xml-0.1.6 against master#22572d0994593197593e2a1b7b18d720a9a349a7 for pr-126452-1 [INFO] extracting crate dummy_xml 0.1.6 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate dummy_xml 0.1.6 on toolchain 22572d0994593197593e2a1b7b18d720a9a349a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "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-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "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-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 54775c50a75121b525e974782192c5b9c0afe9884800d5dbb9a4bc01f688e8d9 [INFO] running `Command { std: "docker" "start" "-a" "54775c50a75121b525e974782192c5b9c0afe9884800d5dbb9a4bc01f688e8d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "54775c50a75121b525e974782192c5b9c0afe9884800d5dbb9a4bc01f688e8d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54775c50a75121b525e974782192c5b9c0afe9884800d5dbb9a4bc01f688e8d9", kill_on_drop: false }` [INFO] [stdout] 54775c50a75121b525e974782192c5b9c0afe9884800d5dbb9a4bc01f688e8d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4055658d198443ab58d936237d2caa519a3ede22db8d5c2b5bd1ec82dfb8d735 [INFO] running `Command { std: "docker" "start" "-a" "4055658d198443ab58d936237d2caa519a3ede22db8d5c2b5bd1ec82dfb8d735", 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 `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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "4055658d198443ab58d936237d2caa519a3ede22db8d5c2b5bd1ec82dfb8d735", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4055658d198443ab58d936237d2caa519a3ede22db8d5c2b5bd1ec82dfb8d735", kill_on_drop: false }` [INFO] [stdout] 4055658d198443ab58d936237d2caa519a3ede22db8d5c2b5bd1ec82dfb8d735 [INFO] checking dummy_xml-0.1.6 against try#6289438dbad80b1a0029c66dd3f6abf57c2c51be for pr-126452-1 [INFO] extracting crate dummy_xml 0.1.6 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate dummy_xml 0.1.6 on toolchain 6289438dbad80b1a0029c66dd3f6abf57c2c51be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "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-7-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "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" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e0635175fca33ecf70be390382ad32db4bb0811e88ebe4c574be5a1eb1e126f [INFO] running `Command { std: "docker" "start" "-a" "3e0635175fca33ecf70be390382ad32db4bb0811e88ebe4c574be5a1eb1e126f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e0635175fca33ecf70be390382ad32db4bb0811e88ebe4c574be5a1eb1e126f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e0635175fca33ecf70be390382ad32db4bb0811e88ebe4c574be5a1eb1e126f", kill_on_drop: false }` [INFO] [stdout] 3e0635175fca33ecf70be390382ad32db4bb0811e88ebe4c574be5a1eb1e126f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b6de1d8652a3da8bd4ff76f214a286941bd49371f7525d2c95e722222e35c95f [INFO] running `Command { std: "docker" "start" "-a" "b6de1d8652a3da8bd4ff76f214a286941bd49371f7525d2c95e722222e35c95f", 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.38s [INFO] running `Command { std: "docker" "inspect" "b6de1d8652a3da8bd4ff76f214a286941bd49371f7525d2c95e722222e35c95f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6de1d8652a3da8bd4ff76f214a286941bd49371f7525d2c95e722222e35c95f", kill_on_drop: false }` [INFO] [stdout] b6de1d8652a3da8bd4ff76f214a286941bd49371f7525d2c95e722222e35c95f