[INFO] cloning repository https://github.com/whiteand/protos-ts [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/whiteand/protos-ts" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhiteand%2Fprotos-ts", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhiteand%2Fprotos-ts'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f137e4f6cf4377f9ad2f0b2803c23b100ffc9fd [INFO] testing whiteand/protos-ts against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhiteand%2Fprotos-ts" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/whiteand/protos-ts [INFO] finished tweaking git repo https://github.com/whiteand/protos-ts [INFO] tweaked toml for git repo https://github.com/whiteand/protos-ts written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/whiteand/protos-ts on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/whiteand/protos-ts 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e08644ab7ba3de8306be5d044646f1518befb4ce87716e657839ae81bae34014 [INFO] running `Command { std: "docker" "start" "-a" "e08644ab7ba3de8306be5d044646f1518befb4ce87716e657839ae81bae34014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e08644ab7ba3de8306be5d044646f1518befb4ce87716e657839ae81bae34014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e08644ab7ba3de8306be5d044646f1518befb4ce87716e657839ae81bae34014", kill_on_drop: false }` [INFO] [stdout] e08644ab7ba3de8306be5d044646f1518befb4ce87716e657839ae81bae34014 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 799d043b2449870eb098ad9c6cf9ac1d02dd29a94605a77a01446bd72973cc46 [INFO] running `Command { std: "docker" "start" "-a" "799d043b2449870eb098ad9c6cf9ac1d02dd29a94605a77a01446bd72973cc46", kill_on_drop: false }` [INFO] [stderr] Compiling path-clean v0.1.0 [INFO] [stderr] Compiling protos-ts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `or` and `not` are never used [INFO] [stdout] --> proto/compiler/ts/ast.rs:705:8 [INFO] [stdout] | [INFO] [stdout] 702 | pub(crate) trait ExpressionChain { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 705 | fn or(&self, other: Rc) -> Expression; [INFO] [stdout] | ^^ [INFO] [stdout] 706 | fn not(&self) -> Expression; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `WrapableExpr` is never used [INFO] [stdout] --> proto/compiler/ts/ast.rs:709:18 [INFO] [stdout] | [INFO] [stdout] 709 | pub(crate) trait WrapableExpr { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SetParent` is never used [INFO] [stdout] --> proto/proto_scope/traits.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | pub(in crate::proto) trait SetParent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ParentScope` is never used [INFO] [stdout] --> proto/proto_scope/traits.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | pub(in crate::proto) trait ParentScope { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RegisterDeclaration` is never used [INFO] [stdout] --> proto/proto_scope/traits.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | pub(in crate::proto) trait RegisterDeclaration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/file_to_folder.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | let message_declaration = match message_scope.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ProtoScope` does not implement `Deref`, so calling `deref` on `&ProtoScope` 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] 60 - let message_declaration = match message_scope.deref() { [INFO] [stdout] 60 + let message_declaration = match message_scope { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ProtoScope`, implement `Clone` for it [INFO] [stdout] --> proto/proto_scope.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 + #[derive(Clone)] [INFO] [stdout] 20 | pub(crate) enum ProtoScope { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:438:63 [INFO] [stdout] | [INFO] [stdout] 438 | Expression::CallExpression(call_exrp) => call_exrp.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::CallExpression` does not implement `Deref`, so calling `deref` on `&ast::CallExpression` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 438 - Expression::CallExpression(call_exrp) => call_exrp.deref().into(), [INFO] [stdout] 438 + Expression::CallExpression(call_exrp) => call_exrp.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::CallExpression`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:502:1 [INFO] [stdout] | [INFO] [stdout] 502 + #[derive(Clone)] [INFO] [stdout] 503 | pub(crate) struct CallExpression { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:457:36 [INFO] [stdout] | [INFO] [stdout] 457 | element_access_expr.deref().into() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::ElementAccessExpression` does not implement `Deref`, so calling `deref` on `&ast::ElementAccessExpression` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 457 - element_access_expr.deref().into() [INFO] [stdout] 457 + element_access_expr.into() [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::ElementAccessExpression`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:567:1 [INFO] [stdout] | [INFO] [stdout] 567 + #[derive(Clone)] [INFO] [stdout] 568 | pub(crate) struct ElementAccessExpression { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:459:72 [INFO] [stdout] | [INFO] [stdout] 459 | Expression::PrefixUnaryExpression(unary_expr) => unary_expr.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::PrefixUnaryExpression` does not implement `Deref`, so calling `deref` on `&ast::PrefixUnaryExpression` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 459 - Expression::PrefixUnaryExpression(unary_expr) => unary_expr.deref().into(), [INFO] [stdout] 459 + Expression::PrefixUnaryExpression(unary_expr) => unary_expr.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::PrefixUnaryExpression`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:609:1 [INFO] [stdout] | [INFO] [stdout] 609 + #[derive(Clone)] [INFO] [stdout] 610 | pub(crate) struct PrefixUnaryExpression { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:460:60 [INFO] [stdout] | [INFO] [stdout] 460 | Expression::ConditionalExpression(cond) => cond.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::ConditionalExpression` does not implement `Deref`, so calling `deref` on `&ast::ConditionalExpression` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 460 - Expression::ConditionalExpression(cond) => cond.deref().into(), [INFO] [stdout] 460 + Expression::ConditionalExpression(cond) => cond.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::ConditionalExpression`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:588:1 [INFO] [stdout] | [INFO] [stdout] 588 + #[derive(Clone)] [INFO] [stdout] 589 | pub(crate) struct ConditionalExpression { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:693:55 [INFO] [stdout] | [INFO] [stdout] 693 | Statement::IfStatement(if_stmt) => if_stmt.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::IfStatement` does not implement `Deref`, so calling `deref` on `&ast::IfStatement` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 693 - Statement::IfStatement(if_stmt) => if_stmt.deref().into(), [INFO] [stdout] 693 + Statement::IfStatement(if_stmt) => if_stmt.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::IfStatement`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:943:1 [INFO] [stdout] | [INFO] [stdout] 943 + #[derive(Clone)] [INFO] [stdout] 944 | pub(crate) struct IfStatement { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:694:45 [INFO] [stdout] | [INFO] [stdout] 694 | Statement::Block(block) => block.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::Block` does not implement `Deref`, so calling `deref` on `&ast::Block` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 694 - Statement::Block(block) => block.deref().into(), [INFO] [stdout] 694 + Statement::Block(block) => block.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::Block`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:950:1 [INFO] [stdout] | [INFO] [stdout] 950 + #[derive(Clone)] [INFO] [stdout] 951 | pub(crate) struct Block { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.deref()` on a double reference, which returns `&str` instead of dereferencing the inner type [INFO] [stdout] --> proto/syntax.rs:833:51 [INFO] [stdout] | [INFO] [stdout] 833 | let file_name = Rc::from(parts.last().unwrap().deref()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.30s [INFO] running `Command { std: "docker" "inspect" "799d043b2449870eb098ad9c6cf9ac1d02dd29a94605a77a01446bd72973cc46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "799d043b2449870eb098ad9c6cf9ac1d02dd29a94605a77a01446bd72973cc46", kill_on_drop: false }` [INFO] [stdout] 799d043b2449870eb098ad9c6cf9ac1d02dd29a94605a77a01446bd72973cc46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 985b67aa705f6be48bba3a6b501607ed6e7229586486ec110c9678188a4a11fa [INFO] running `Command { std: "docker" "start" "-a" "985b67aa705f6be48bba3a6b501607ed6e7229586486ec110c9678188a4a11fa", kill_on_drop: false }` [INFO] [stderr] Compiling protos-ts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `or` and `not` are never used [INFO] [stdout] --> proto/compiler/ts/ast.rs:705:8 [INFO] [stdout] | [INFO] [stdout] 702 | pub(crate) trait ExpressionChain { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 705 | fn or(&self, other: Rc) -> Expression; [INFO] [stdout] | ^^ [INFO] [stdout] 706 | fn not(&self) -> Expression; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `WrapableExpr` is never used [INFO] [stdout] --> proto/compiler/ts/ast.rs:709:18 [INFO] [stdout] | [INFO] [stdout] 709 | pub(crate) trait WrapableExpr { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SetParent` is never used [INFO] [stdout] --> proto/proto_scope/traits.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | pub(in crate::proto) trait SetParent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ParentScope` is never used [INFO] [stdout] --> proto/proto_scope/traits.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | pub(in crate::proto) trait ParentScope { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RegisterDeclaration` is never used [INFO] [stdout] --> proto/proto_scope/traits.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | pub(in crate::proto) trait RegisterDeclaration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/file_to_folder.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | let message_declaration = match message_scope.deref() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ProtoScope` does not implement `Deref`, so calling `deref` on `&ProtoScope` 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] 60 - let message_declaration = match message_scope.deref() { [INFO] [stdout] 60 + let message_declaration = match message_scope { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ProtoScope`, implement `Clone` for it [INFO] [stdout] --> proto/proto_scope.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 + #[derive(Clone)] [INFO] [stdout] 20 | pub(crate) enum ProtoScope { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:438:63 [INFO] [stdout] | [INFO] [stdout] 438 | Expression::CallExpression(call_exrp) => call_exrp.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::CallExpression` does not implement `Deref`, so calling `deref` on `&ast::CallExpression` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 438 - Expression::CallExpression(call_exrp) => call_exrp.deref().into(), [INFO] [stdout] 438 + Expression::CallExpression(call_exrp) => call_exrp.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::CallExpression`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:502:1 [INFO] [stdout] | [INFO] [stdout] 502 + #[derive(Clone)] [INFO] [stdout] 503 | pub(crate) struct CallExpression { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:457:36 [INFO] [stdout] | [INFO] [stdout] 457 | element_access_expr.deref().into() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::ElementAccessExpression` does not implement `Deref`, so calling `deref` on `&ast::ElementAccessExpression` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 457 - element_access_expr.deref().into() [INFO] [stdout] 457 + element_access_expr.into() [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::ElementAccessExpression`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:567:1 [INFO] [stdout] | [INFO] [stdout] 567 + #[derive(Clone)] [INFO] [stdout] 568 | pub(crate) struct ElementAccessExpression { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:459:72 [INFO] [stdout] | [INFO] [stdout] 459 | Expression::PrefixUnaryExpression(unary_expr) => unary_expr.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::PrefixUnaryExpression` does not implement `Deref`, so calling `deref` on `&ast::PrefixUnaryExpression` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 459 - Expression::PrefixUnaryExpression(unary_expr) => unary_expr.deref().into(), [INFO] [stdout] 459 + Expression::PrefixUnaryExpression(unary_expr) => unary_expr.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::PrefixUnaryExpression`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:609:1 [INFO] [stdout] | [INFO] [stdout] 609 + #[derive(Clone)] [INFO] [stdout] 610 | pub(crate) struct PrefixUnaryExpression { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:460:60 [INFO] [stdout] | [INFO] [stdout] 460 | Expression::ConditionalExpression(cond) => cond.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::ConditionalExpression` does not implement `Deref`, so calling `deref` on `&ast::ConditionalExpression` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 460 - Expression::ConditionalExpression(cond) => cond.deref().into(), [INFO] [stdout] 460 + Expression::ConditionalExpression(cond) => cond.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::ConditionalExpression`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:588:1 [INFO] [stdout] | [INFO] [stdout] 588 + #[derive(Clone)] [INFO] [stdout] 589 | pub(crate) struct ConditionalExpression { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:693:55 [INFO] [stdout] | [INFO] [stdout] 693 | Statement::IfStatement(if_stmt) => if_stmt.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::IfStatement` does not implement `Deref`, so calling `deref` on `&ast::IfStatement` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 693 - Statement::IfStatement(if_stmt) => if_stmt.deref().into(), [INFO] [stdout] 693 + Statement::IfStatement(if_stmt) => if_stmt.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::IfStatement`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:943:1 [INFO] [stdout] | [INFO] [stdout] 943 + #[derive(Clone)] [INFO] [stdout] 944 | pub(crate) struct IfStatement { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> proto/compiler/ts/render_file.rs:694:45 [INFO] [stdout] | [INFO] [stdout] 694 | Statement::Block(block) => block.deref().into(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `ast::Block` does not implement `Deref`, so calling `deref` on `&ast::Block` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 694 - Statement::Block(block) => block.deref().into(), [INFO] [stdout] 694 + Statement::Block(block) => block.into(), [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `ast::Block`, implement `Clone` for it [INFO] [stdout] --> proto/compiler/ts/ast.rs:950:1 [INFO] [stdout] | [INFO] [stdout] 950 + #[derive(Clone)] [INFO] [stdout] 951 | pub(crate) struct Block { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.deref()` on a double reference, which returns `&str` instead of dereferencing the inner type [INFO] [stdout] --> proto/syntax.rs:833:51 [INFO] [stdout] | [INFO] [stdout] 833 | let file_name = Rc::from(parts.last().unwrap().deref()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.91s [INFO] running `Command { std: "docker" "inspect" "985b67aa705f6be48bba3a6b501607ed6e7229586486ec110c9678188a4a11fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "985b67aa705f6be48bba3a6b501607ed6e7229586486ec110c9678188a4a11fa", kill_on_drop: false }` [INFO] [stdout] 985b67aa705f6be48bba3a6b501607ed6e7229586486ec110c9678188a4a11fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 1423caefc77bb8baeb7ac9244463d0964acad9a3d1c43c92226b44d8e81dbe98 [INFO] running `Command { std: "docker" "start" "-a" "1423caefc77bb8baeb7ac9244463d0964acad9a3d1c43c92226b44d8e81dbe98", kill_on_drop: false }` [INFO] [stderr] warning: methods `or` and `not` are never used [INFO] [stderr] --> proto/compiler/ts/ast.rs:705:8 [INFO] [stderr] | [INFO] [stderr] 702 | pub(crate) trait ExpressionChain { [INFO] [stderr] | --------------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 705 | fn or(&self, other: Rc) -> Expression; [INFO] [stderr] | ^^ [INFO] [stderr] 706 | fn not(&self) -> Expression; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait `WrapableExpr` is never used [INFO] [stderr] --> proto/compiler/ts/ast.rs:709:18 [INFO] [stderr] | [INFO] [stderr] 709 | pub(crate) trait WrapableExpr { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `SetParent` is never used [INFO] [stderr] --> proto/proto_scope/traits.rs:12:28 [INFO] [stderr] | [INFO] [stderr] 12 | pub(in crate::proto) trait SetParent { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `ParentScope` is never used [INFO] [stderr] --> proto/proto_scope/traits.rs:16:28 [INFO] [stderr] | [INFO] [stderr] 16 | pub(in crate::proto) trait ParentScope { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `RegisterDeclaration` is never used [INFO] [stderr] --> proto/proto_scope/traits.rs:20:28 [INFO] [stderr] | [INFO] [stderr] 20 | pub(in crate::proto) trait RegisterDeclaration { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stderr] --> proto/compiler/ts/file_to_folder.rs:60:50 [INFO] [stderr] | [INFO] [stderr] 60 | let message_declaration = match message_scope.deref() { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `ProtoScope` does not implement `Deref`, so calling `deref` on `&ProtoScope` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 60 - let message_declaration = match message_scope.deref() { [INFO] [stderr] 60 + let message_declaration = match message_scope { [INFO] [stderr] | [INFO] [stderr] help: if you meant to clone `ProtoScope`, implement `Clone` for it [INFO] [stderr] --> proto/proto_scope.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 + #[derive(Clone)] [INFO] [stderr] 20 | pub(crate) enum ProtoScope { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stderr] --> proto/compiler/ts/render_file.rs:438:63 [INFO] [stderr] | [INFO] [stderr] 438 | Expression::CallExpression(call_exrp) => call_exrp.deref().into(), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `ast::CallExpression` does not implement `Deref`, so calling `deref` on `&ast::CallExpression` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 438 - Expression::CallExpression(call_exrp) => call_exrp.deref().into(), [INFO] [stderr] 438 + Expression::CallExpression(call_exrp) => call_exrp.into(), [INFO] [stderr] | [INFO] [stderr] help: if you meant to clone `ast::CallExpression`, implement `Clone` for it [INFO] [stderr] --> proto/compiler/ts/ast.rs:502:1 [INFO] [stderr] | [INFO] [stderr] 502 + #[derive(Clone)] [INFO] [stderr] 503 | pub(crate) struct CallExpression { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stderr] --> proto/compiler/ts/render_file.rs:457:36 [INFO] [stderr] | [INFO] [stderr] 457 | element_access_expr.deref().into() [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `ast::ElementAccessExpression` does not implement `Deref`, so calling `deref` on `&ast::ElementAccessExpression` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 457 - element_access_expr.deref().into() [INFO] [stderr] 457 + element_access_expr.into() [INFO] [stderr] | [INFO] [stderr] help: if you meant to clone `ast::ElementAccessExpression`, implement `Clone` for it [INFO] [stderr] --> proto/compiler/ts/ast.rs:567:1 [INFO] [stderr] | [INFO] [stderr] 567 + #[derive(Clone)] [INFO] [stderr] 568 | pub(crate) struct ElementAccessExpression { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stderr] --> proto/compiler/ts/render_file.rs:459:72 [INFO] [stderr] | [INFO] [stderr] 459 | Expression::PrefixUnaryExpression(unary_expr) => unary_expr.deref().into(), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `ast::PrefixUnaryExpression` does not implement `Deref`, so calling `deref` on `&ast::PrefixUnaryExpression` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 459 - Expression::PrefixUnaryExpression(unary_expr) => unary_expr.deref().into(), [INFO] [stderr] 459 + Expression::PrefixUnaryExpression(unary_expr) => unary_expr.into(), [INFO] [stderr] | [INFO] [stderr] help: if you meant to clone `ast::PrefixUnaryExpression`, implement `Clone` for it [INFO] [stderr] --> proto/compiler/ts/ast.rs:609:1 [INFO] [stderr] | [INFO] [stderr] 609 + #[derive(Clone)] [INFO] [stderr] 610 | pub(crate) struct PrefixUnaryExpression { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stderr] --> proto/compiler/ts/render_file.rs:460:60 [INFO] [stderr] | [INFO] [stderr] 460 | Expression::ConditionalExpression(cond) => cond.deref().into(), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `ast::ConditionalExpression` does not implement `Deref`, so calling `deref` on `&ast::ConditionalExpression` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 460 - Expression::ConditionalExpression(cond) => cond.deref().into(), [INFO] [stderr] 460 + Expression::ConditionalExpression(cond) => cond.into(), [INFO] [stderr] | [INFO] [stderr] help: if you meant to clone `ast::ConditionalExpression`, implement `Clone` for it [INFO] [stderr] --> proto/compiler/ts/ast.rs:588:1 [INFO] [stderr] | [INFO] [stderr] 588 + #[derive(Clone)] [INFO] [stderr] 589 | pub(crate) struct ConditionalExpression { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stderr] --> proto/compiler/ts/render_file.rs:693:55 [INFO] [stderr] | [INFO] [stderr] 693 | Statement::IfStatement(if_stmt) => if_stmt.deref().into(), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `ast::IfStatement` does not implement `Deref`, so calling `deref` on `&ast::IfStatement` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 693 - Statement::IfStatement(if_stmt) => if_stmt.deref().into(), [INFO] [stderr] 693 + Statement::IfStatement(if_stmt) => if_stmt.into(), [INFO] [stderr] | [INFO] [stderr] help: if you meant to clone `ast::IfStatement`, implement `Clone` for it [INFO] [stderr] --> proto/compiler/ts/ast.rs:943:1 [INFO] [stderr] | [INFO] [stderr] 943 + #[derive(Clone)] [INFO] [stderr] 944 | pub(crate) struct IfStatement { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stderr] --> proto/compiler/ts/render_file.rs:694:45 [INFO] [stderr] | [INFO] [stderr] 694 | Statement::Block(block) => block.deref().into(), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `ast::Block` does not implement `Deref`, so calling `deref` on `&ast::Block` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 694 - Statement::Block(block) => block.deref().into(), [INFO] [stderr] 694 + Statement::Block(block) => block.into(), [INFO] [stderr] | [INFO] [stderr] help: if you meant to clone `ast::Block`, implement `Clone` for it [INFO] [stderr] --> proto/compiler/ts/ast.rs:950:1 [INFO] [stderr] | [INFO] [stderr] 950 + #[derive(Clone)] [INFO] [stderr] 951 | pub(crate) struct Block { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: using `.deref()` on a double reference, which returns `&str` instead of dereferencing the inner type [INFO] [stderr] --> proto/syntax.rs:833:51 [INFO] [stderr] | [INFO] [stderr] 833 | let file_name = Rc::from(parts.last().unwrap().deref()); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `protos-ts` (bin "protos-ts" test) generated 13 warnings (run `cargo fix --bin "protos-ts" --tests` to apply 7 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/protos_ts-25c9f592f06d48a1) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test proto::compiler::ts::render_file::test_enum_declaration::it_works ... ok [INFO] [stdout] test proto::compiler::ts::render_file::test_import_declaration::it_works ... ok [INFO] [stdout] test proto::compiler::ts::render_file::test_interface_declaration::it_works ... ok [INFO] [stdout] test proto::proto_scope::enum_scope::test_format::test_enum_format ... ok [INFO] [stdout] test proto::syntax::test::it_works ... ok [INFO] [stdout] test proto::compiler::ts::render_file::test_type::it_renders_array_with_nested_type ... ok [INFO] [stdout] test proto::compiler::ts::render_file::test_type::it_renders_bool_array ... ok [INFO] [stdout] test proto::compiler::ts::render_file::test_type::it_renders_union ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1423caefc77bb8baeb7ac9244463d0964acad9a3d1c43c92226b44d8e81dbe98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1423caefc77bb8baeb7ac9244463d0964acad9a3d1c43c92226b44d8e81dbe98", kill_on_drop: false }` [INFO] [stdout] 1423caefc77bb8baeb7ac9244463d0964acad9a3d1c43c92226b44d8e81dbe98