[INFO] cloning repository https://github.com/yjhmelody/lua-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yjhmelody/lua-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyjhmelody%2Flua-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyjhmelody%2Flua-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b2a0cb41ad5d46bbf47b0b89d914bfdde613fe97 [INFO] checking yjhmelody/lua-rs against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyjhmelody%2Flua-rs" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yjhmelody/lua-rs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yjhmelody/lua-rs [INFO] finished tweaking git repo https://github.com/yjhmelody/lua-rs [INFO] tweaked toml for git repo https://github.com/yjhmelody/lua-rs written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/yjhmelody/lua-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1fcae047ce8dbd55db62b552b61b0062b16ca5192b48935af3fd6518400c01ac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1fcae047ce8dbd55db62b552b61b0062b16ca5192b48935af3fd6518400c01ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1fcae047ce8dbd55db62b552b61b0062b16ca5192b48935af3fd6518400c01ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fcae047ce8dbd55db62b552b61b0062b16ca5192b48935af3fd6518400c01ac", kill_on_drop: false }` [INFO] [stdout] 1fcae047ce8dbd55db62b552b61b0062b16ca5192b48935af3fd6518400c01ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f3664760fd454fe9c27de4889023cf2aa61e92f400671282cf9a795f0aedcac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1f3664760fd454fe9c27de4889023cf2aa61e92f400671282cf9a795f0aedcac", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling regex v1.1.2 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.6.5 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking lua-rs v0.2.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/compiler/codegen.rs:1583:9 [INFO] [stdout] | [INFO] [stdout] 1583 | fs::write("./tests/test.out", bytes); [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lexer` [INFO] [stdout] --> src/compiler/codegen.rs:1553:25 [INFO] [stdout] | [INFO] [stdout] 1553 | let mut lexer = Lexer::from_iter(s.into_bytes(), "test".to_string()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1507 | use crate::compiler::lexer::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_block` in this scope [INFO] [stdout] --> src/compiler/codegen.rs:1554:21 [INFO] [stdout] | [INFO] [stdout] 1554 | let block = parse_block(&mut lexer).expect("parse error"); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1507 | use crate::compiler::parser::parse_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `gen_prototype` in this scope [INFO] [stdout] --> src/compiler/codegen.rs:1556:21 [INFO] [stdout] | [INFO] [stdout] 1556 | let proto = gen_prototype(Box::new(block)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1507 | use crate::compiler::codegen::gen_prototype; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lexer` [INFO] [stdout] --> src/compiler/codegen.rs:1578:25 [INFO] [stdout] | [INFO] [stdout] 1578 | let mut lexer = Lexer::from_iter(s.into_bytes(), "test".to_string()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1507 | use crate::compiler::lexer::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_block` in this scope [INFO] [stdout] --> src/compiler/codegen.rs:1579:21 [INFO] [stdout] | [INFO] [stdout] 1579 | let block = parse_block(&mut lexer).expect("parse error"); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1507 | use crate::compiler::parser::parse_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `gen_prototype` in this scope [INFO] [stdout] --> src/compiler/codegen.rs:1580:21 [INFO] [stdout] | [INFO] [stdout] 1580 | let proto = gen_prototype(Box::new(block)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1507 | use crate::compiler::codegen::gen_prototype; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encode` in this scope [INFO] [stdout] --> src/compiler/codegen.rs:1582:21 [INFO] [stdout] | [INFO] [stdout] 1582 | let bytes = encode(proto.unwrap(), Some("@hello2.lua".to_string())); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1507 | use crate::binary::encode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/compiler/codegen.rs (8 fixes) [INFO] [stderr] Fixed src/compiler/parser.rs (1 fix) [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lua-rs` due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function is never used: `test_encode` [INFO] [stdout] --> src/binary/mod.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn test_encode() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/binary/mod.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | fs::write("./tests/test.out", s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "1f3664760fd454fe9c27de4889023cf2aa61e92f400671282cf9a795f0aedcac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f3664760fd454fe9c27de4889023cf2aa61e92f400671282cf9a795f0aedcac", kill_on_drop: false }` [INFO] [stdout] 1f3664760fd454fe9c27de4889023cf2aa61e92f400671282cf9a795f0aedcac