[INFO] fetching crate rspack_style 0.1.16... [INFO] checking rspack_style-0.1.16 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate rspack_style 0.1.16 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate rspack_style 0.1.16 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rspack_style 0.1.16 [INFO] finished tweaking crates.io crate rspack_style 0.1.16 [INFO] tweaked toml for crates.io crate rspack_style 0.1.16 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate crates.io crate rspack_style 0.1.16 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c2b78f3fdc70e4ea7ba5fd0ff55272bfd778cdf6d780e7767f2fda7f22a39c1 [INFO] running `Command { std: "docker" "start" "-a" "1c2b78f3fdc70e4ea7ba5fd0ff55272bfd778cdf6d780e7767f2fda7f22a39c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c2b78f3fdc70e4ea7ba5fd0ff55272bfd778cdf6d780e7767f2fda7f22a39c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c2b78f3fdc70e4ea7ba5fd0ff55272bfd778cdf6d780e7767f2fda7f22a39c1", kill_on_drop: false }` [INFO] [stdout] 1c2b78f3fdc70e4ea7ba5fd0ff55272bfd778cdf6d780e7767f2fda7f22a39c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0b1166960814c4c0e33639c802dc32b088d8e3e6c0d98fa7d4153e42a53ccd1 [INFO] running `Command { std: "docker" "start" "-a" "c0b1166960814c4c0e33639c802dc32b088d8e3e6c0d98fa7d4153e42a53ccd1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling semver v1.0.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking plotters-backend v0.3.2 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking crossbeam-channel v0.5.4 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking plotters-svg v0.3.1 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking once_cell v1.12.0 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking fasteval v0.2.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking criterion-plot v0.4.4 [INFO] [stderr] Checking plotters v0.3.1 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling strum_macros v0.23.1 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking tokio v1.18.2 [INFO] [stderr] Checking strum v0.23.0 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking smol_str v0.1.23 [INFO] [stderr] Checking uuid v1.1.0 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking rspack_style v0.1.16 (/opt/rustwide/workdir) [INFO] [stderr] Checking criterion v0.3.5 [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token/lib.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Token(String); [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/css/comment.rs:107:38 [INFO] [stdout] | [INFO] [stdout] 107 | if let StyleNode::Comment(cc) = x.deref().clone() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `css::node::StyleNode` does not implement `Deref`, so calling `deref` on `&css::node::StyleNode` 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] 107 - if let StyleNode::Comment(cc) = x.deref().clone() { [INFO] [stdout] 107 + if let StyleNode::Comment(cc) = x.clone() { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `css::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/css/node.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Clone)] [INFO] [stdout] 18 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/codegen.rs:27:60 [INFO] [stdout] | [INFO] [stdout] 27 | if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 27 - if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] 27 + if let StyleNode::Var(VarRuleNode::Var(var)) = item { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/codegen.rs:47:60 [INFO] [stdout] | [INFO] [stdout] 47 | if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 47 - if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] 47 + if let StyleNode::Var(VarRuleNode::Var(var)) = item { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/comment.rs:107:38 [INFO] [stdout] | [INFO] [stdout] 107 | if let StyleNode::Comment(cc) = x.deref().clone() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 107 - if let StyleNode::Comment(cc) = x.deref().clone() { [INFO] [stdout] 107 + if let StyleNode::Comment(cc) = x.clone() { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/select.rs:926:60 [INFO] [stdout] | [INFO] [stdout] 926 | if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 926 - if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] 926 + if let StyleNode::Var(VarRuleNode::Var(var)) = item { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/select.rs:946:60 [INFO] [stdout] | [INFO] [stdout] 946 | if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 946 - if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] 946 + if let StyleNode::Var(VarRuleNode::Var(var)) = item { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `rspack_style::less::var::HandleResult` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> tests/less/import.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | match ImportNode::new( [INFO] [stdout] | ___________^ [INFO] [stdout] 21 | | tt.to_char_vec(), [INFO] [stdout] 22 | | None, [INFO] [stdout] 23 | | None, [INFO] [stdout] ... | [INFO] [stdout] 26 | | &mut vec![], [INFO] [stdout] | | ------ these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 27 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rspack_style` (test "mod") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token/lib.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Token(String); [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/css/comment.rs:107:38 [INFO] [stdout] | [INFO] [stdout] 107 | if let StyleNode::Comment(cc) = x.deref().clone() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `css::node::StyleNode` does not implement `Deref`, so calling `deref` on `&css::node::StyleNode` 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] 107 - if let StyleNode::Comment(cc) = x.deref().clone() { [INFO] [stdout] 107 + if let StyleNode::Comment(cc) = x.clone() { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `css::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/css/node.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Clone)] [INFO] [stdout] 18 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/codegen.rs:27:60 [INFO] [stdout] | [INFO] [stdout] 27 | if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 27 - if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] 27 + if let StyleNode::Var(VarRuleNode::Var(var)) = item { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/codegen.rs:47:60 [INFO] [stdout] | [INFO] [stdout] 47 | if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 47 - if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] 47 + if let StyleNode::Var(VarRuleNode::Var(var)) = item { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/comment.rs:107:38 [INFO] [stdout] | [INFO] [stdout] 107 | if let StyleNode::Comment(cc) = x.deref().clone() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 107 - if let StyleNode::Comment(cc) = x.deref().clone() { [INFO] [stdout] 107 + if let StyleNode::Comment(cc) = x.clone() { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/select.rs:926:60 [INFO] [stdout] | [INFO] [stdout] 926 | if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 926 - if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] 926 + if let StyleNode::Var(VarRuleNode::Var(var)) = item { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/less/select.rs:946:60 [INFO] [stdout] | [INFO] [stdout] 946 | if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `less::node::StyleNode` does not implement `Deref`, so calling `deref` on `&less::node::StyleNode` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 946 - if let StyleNode::Var(VarRuleNode::Var(var)) = item.deref() { [INFO] [stdout] 946 + if let StyleNode::Var(VarRuleNode::Var(var)) = item { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `less::node::StyleNode`, implement `Clone` for it [INFO] [stdout] --> src/less/node.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #[derive(Clone)] [INFO] [stdout] 19 | pub enum StyleNode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c0b1166960814c4c0e33639c802dc32b088d8e3e6c0d98fa7d4153e42a53ccd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0b1166960814c4c0e33639c802dc32b088d8e3e6c0d98fa7d4153e42a53ccd1", kill_on_drop: false }` [INFO] [stdout] c0b1166960814c4c0e33639c802dc32b088d8e3e6c0d98fa7d4153e42a53ccd1