[INFO] fetching crate galvan-transpiler 0.0.0-dev09... [INFO] checking galvan-transpiler-0.0.0-dev09 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] extracting crate galvan-transpiler 0.0.0-dev09 into /workspace/builds/worker-5-tc2/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-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate galvan-transpiler 0.0.0-dev09 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76b602b3b734288fc8f01e5f2a5c443dfb07d3b8b7b1a9975a1cb5bab5afdb29 [INFO] running `Command { std: "docker" "start" "-a" "76b602b3b734288fc8f01e5f2a5c443dfb07d3b8b7b1a9975a1cb5bab5afdb29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76b602b3b734288fc8f01e5f2a5c443dfb07d3b8b7b1a9975a1cb5bab5afdb29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76b602b3b734288fc8f01e5f2a5c443dfb07d3b8b7b1a9975a1cb5bab5afdb29", kill_on_drop: false }` [INFO] [stdout] 76b602b3b734288fc8f01e5f2a5c443dfb07d3b8b7b1a9975a1cb5bab5afdb29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] adc34e1d93d3684c3e20e79b6932bd0f40f22d83a482400faa0637375256c734 [INFO] running `Command { std: "docker" "start" "-a" "adc34e1d93d3684c3e20e79b6932bd0f40f22d83a482400faa0637375256c734", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Checking 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] Checking log v0.4.20 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking 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 galvan-test-macro v0.0.0-dev09 [INFO] [stderr] Compiling pest v2.7.6 [INFO] [stderr] Checking galvan-files v0.0.0-dev09 [INFO] [stderr] Checking 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] Checking galvan-pest v0.0.0-dev09 [INFO] [stderr] Checking galvan-ast v0.0.0-dev09 [INFO] [stderr] Checking galvan-resolver v0.0.0-dev09 [INFO] [stderr] Checking 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 `Clone` and `Debug`, 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] [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 `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [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: 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] [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] running `Command { std: "docker" "inspect" "adc34e1d93d3684c3e20e79b6932bd0f40f22d83a482400faa0637375256c734", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adc34e1d93d3684c3e20e79b6932bd0f40f22d83a482400faa0637375256c734", kill_on_drop: false }` [INFO] [stdout] adc34e1d93d3684c3e20e79b6932bd0f40f22d83a482400faa0637375256c734