[INFO] fetching crate galvan-transpiler 0.0.0-dev09... [INFO] testing galvan-transpiler-0.0.0-dev09 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate galvan-transpiler 0.0.0-dev09 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate galvan-transpiler 0.0.0-dev09 [INFO] finished tweaking crates.io crate galvan-transpiler 0.0.0-dev09 [INFO] tweaked toml for crates.io crate galvan-transpiler 0.0.0-dev09 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate galvan-transpiler 0.0.0-dev09 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 crates.io crate galvan-transpiler 0.0.0-dev09 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] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded galvan-test-macro v0.0.0-dev09 [INFO] [stderr] Downloaded galvan-ast v0.0.0-dev09 [INFO] [stderr] Downloaded pest_generator v2.7.6 [INFO] [stderr] Downloaded typeunion v0.1.0 [INFO] [stderr] Downloaded pest-ast v0.3.4 [INFO] [stderr] Downloaded galvan-resolver v0.0.0-dev09 [INFO] [stderr] Downloaded pest_derive v2.7.6 [INFO] [stderr] Downloaded galvan-files v0.0.0-dev09 [INFO] [stderr] Downloaded from-pest v0.3.2 [INFO] [stderr] Downloaded galvan-pest v0.0.0-dev09 [INFO] [stderr] Downloaded pest_meta v2.7.6 [INFO] [stderr] Downloaded pest v2.7.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] a59e41fe40064465d839853c732d4e75a553f900559625c54f0c151c4abfd61a [INFO] running `Command { std: "docker" "start" "-a" "a59e41fe40064465d839853c732d4e75a553f900559625c54f0c151c4abfd61a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a59e41fe40064465d839853c732d4e75a553f900559625c54f0c151c4abfd61a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a59e41fe40064465d839853c732d4e75a553f900559625c54f0c151c4abfd61a", kill_on_drop: false }` [INFO] [stdout] a59e41fe40064465d839853c732d4e75a553f900559625c54f0c151c4abfd61a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 26697acf180131c24e56e2349c0bed2abd6e06252fdc01bc66b599784d0c7bfc [INFO] running `Command { std: "docker" "start" "-a" "26697acf180131c24e56e2349c0bed2abd6e06252fdc01bc66b599784d0c7bfc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling itertools v0.12.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling pest-ast v0.3.4 [INFO] [stderr] Compiling typeunion v0.1.0 [INFO] [stderr] Compiling pest v2.7.6 [INFO] [stderr] Compiling galvan-files v0.0.0-dev09 [INFO] [stderr] Compiling from-pest v0.3.2 [INFO] [stderr] Compiling pest_meta v2.7.6 [INFO] [stderr] Compiling pest_generator v2.7.6 [INFO] [stderr] Compiling pest_derive v2.7.6 [INFO] [stderr] Compiling galvan-pest v0.0.0-dev09 [INFO] [stderr] Compiling galvan-ast v0.0.0-dev09 [INFO] [stderr] Compiling galvan-resolver v0.0.0-dev09 [INFO] [stderr] Compiling galvan-transpiler v0.0.0-dev09 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/transpile_item/operator.rs:25:40 [INFO] [stdout] | [INFO] [stdout] 25 | InfixOperator::CustomInfix(op) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/type_inference.rs:105:44 [INFO] [stdout] | [INFO] [stdout] 105 | SingleExpression::FunctionCall(call) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/type_inference.rs:147:39 [INFO] [stdout] | [INFO] [stdout] 147 | InfixOperator::Arithmetic(op) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/type_inference.rs:154:40 [INFO] [stdout] | [INFO] [stdout] 154 | InfixOperator::CustomInfix(op) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scope` [INFO] [stdout] --> src/type_inference.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | scope: &Scope, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/type_inference.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | lhs: &OperatorTreeNode, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/type_inference.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | rhs: &OperatorTreeNode, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/type_inference.rs:210:37 [INFO] [stdout] | [INFO] [stdout] 210 | TypeDecl::Tuple(tuple) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Owned` and `MutOwned` are never constructed [INFO] [stdout] --> src/transpile_item/ident.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum TypeOwnership { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 27 | Owned, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | MutOwned, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeOwnership` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mapping.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn get_owned(&self, type_id: &TypeIdent) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn get_owned(&self, type_id: &TypeIdent) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mapping.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn get_borrowed(&self, type_id: &TypeIdent) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn get_borrowed(&self, type_id: &TypeIdent) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mapping.rs:27:36 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn get_mut_borrowed(&self, type_id: &TypeIdent) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn get_mut_borrowed(&self, type_id: &TypeIdent) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/sanitize.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn sanitize_name(name: &str) -> Cow { [INFO] [stdout] | ^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn sanitize_name(name: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.82s [INFO] running `Command { std: "docker" "inspect" "26697acf180131c24e56e2349c0bed2abd6e06252fdc01bc66b599784d0c7bfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26697acf180131c24e56e2349c0bed2abd6e06252fdc01bc66b599784d0c7bfc", kill_on_drop: false }` [INFO] [stdout] 26697acf180131c24e56e2349c0bed2abd6e06252fdc01bc66b599784d0c7bfc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] f7463b6de4eaca52853680cf92224b6237ec06921d2c84626b2d5db9dead17e4 [INFO] running `Command { std: "docker" "start" "-a" "f7463b6de4eaca52853680cf92224b6237ec06921d2c84626b2d5db9dead17e4", kill_on_drop: false }` [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/transpile_item/operator.rs:25:40 [INFO] [stdout] | [INFO] [stdout] 25 | InfixOperator::CustomInfix(op) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/type_inference.rs:105:44 [INFO] [stdout] | [INFO] [stdout] 105 | SingleExpression::FunctionCall(call) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/type_inference.rs:147:39 [INFO] [stdout] | [INFO] [stdout] 147 | InfixOperator::Arithmetic(op) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/type_inference.rs:154:40 [INFO] [stdout] | [INFO] [stdout] 154 | InfixOperator::CustomInfix(op) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scope` [INFO] [stdout] --> src/type_inference.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | scope: &Scope, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/type_inference.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | lhs: &OperatorTreeNode, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/type_inference.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | rhs: &OperatorTreeNode, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/type_inference.rs:210:37 [INFO] [stdout] | [INFO] [stdout] 210 | TypeDecl::Tuple(tuple) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Owned` and `MutOwned` are never constructed [INFO] [stdout] --> src/transpile_item/ident.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum TypeOwnership { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 27 | Owned, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | MutOwned, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeOwnership` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mapping.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn get_owned(&self, type_id: &TypeIdent) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn get_owned(&self, type_id: &TypeIdent) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mapping.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn get_borrowed(&self, type_id: &TypeIdent) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn get_borrowed(&self, type_id: &TypeIdent) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mapping.rs:27:36 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn get_mut_borrowed(&self, type_id: &TypeIdent) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn get_mut_borrowed(&self, type_id: &TypeIdent) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/sanitize.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn sanitize_name(name: &str) -> Cow { [INFO] [stdout] | ^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn sanitize_name(name: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Compiling galvan-test-macro v0.0.0-dev09 [INFO] [stderr] Compiling galvan-transpiler v0.0.0-dev09 (/opt/rustwide/workdir) [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> tests/test_transpilation.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / generate_code_tests!(test_transpilation, TRANSPILE, trim_all { [INFO] [stdout] 58 | | let source = Source::from_string(code); [INFO] [stdout] 59 | | let transpilation = transpile(vec![source]).unwrap(); [INFO] [stdout] 60 | | merge_outputs(transpilation) [INFO] [stdout] 61 | | }); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: Error { depth: 0, inner: Io { path: Some("example-code"), err: Os { code: 2, kind: NotFound, message: "No such file or directory" } } } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `test_utils::*` [INFO] [stdout] --> tests/test_transpilation.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | use test_utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `galvan-transpiler` (test "test_transpilation") due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/transpile_item/operator.rs:25:40 [INFO] [stdout] | [INFO] [stdout] 25 | InfixOperator::CustomInfix(op) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/type_inference.rs:105:44 [INFO] [stdout] | [INFO] [stdout] 105 | SingleExpression::FunctionCall(call) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/type_inference.rs:147:39 [INFO] [stdout] | [INFO] [stdout] 147 | InfixOperator::Arithmetic(op) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/type_inference.rs:154:40 [INFO] [stdout] | [INFO] [stdout] 154 | InfixOperator::CustomInfix(op) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scope` [INFO] [stdout] --> src/type_inference.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | scope: &Scope, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/type_inference.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | lhs: &OperatorTreeNode, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/type_inference.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | rhs: &OperatorTreeNode, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/type_inference.rs:210:37 [INFO] [stdout] | [INFO] [stdout] 210 | TypeDecl::Tuple(tuple) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Owned` and `MutOwned` are never constructed [INFO] [stdout] --> src/transpile_item/ident.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum TypeOwnership { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 27 | Owned, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | MutOwned, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeOwnership` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mapping.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn get_owned(&self, type_id: &TypeIdent) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn get_owned(&self, type_id: &TypeIdent) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mapping.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn get_borrowed(&self, type_id: &TypeIdent) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn get_borrowed(&self, type_id: &TypeIdent) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/mapping.rs:27:36 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn get_mut_borrowed(&self, type_id: &TypeIdent) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn get_mut_borrowed(&self, type_id: &TypeIdent) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/sanitize.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn sanitize_name(name: &str) -> Cow { [INFO] [stdout] | ^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn sanitize_name(name: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f7463b6de4eaca52853680cf92224b6237ec06921d2c84626b2d5db9dead17e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7463b6de4eaca52853680cf92224b6237ec06921d2c84626b2d5db9dead17e4", kill_on_drop: false }` [INFO] [stdout] f7463b6de4eaca52853680cf92224b6237ec06921d2c84626b2d5db9dead17e4