[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] 9375d005994ec8f99e5dc5184fe3d637aab2bfd9 [INFO] checking yjhmelody/lua-rs against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyjhmelody%2Flua-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yjhmelody/lua-rs on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yjhmelody/lua-rs 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ff4d0c8a88403d49dd6ec745ce9bddae8a89cc942378f09fd07ca493d26f785 [INFO] running `Command { std: "docker" "start" "-a" "9ff4d0c8a88403d49dd6ec745ce9bddae8a89cc942378f09fd07ca493d26f785", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ff4d0c8a88403d49dd6ec745ce9bddae8a89cc942378f09fd07ca493d26f785", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ff4d0c8a88403d49dd6ec745ce9bddae8a89cc942378f09fd07ca493d26f785", kill_on_drop: false }` [INFO] [stdout] 9ff4d0c8a88403d49dd6ec745ce9bddae8a89cc942378f09fd07ca493d26f785 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb4ded1364f66b38ce6fcdc1abc52061929cca95e5f174fe794429cdce1f1989 [INFO] running `Command { std: "docker" "start" "-a" "eb4ded1364f66b38ce6fcdc1abc52061929cca95e5f174fe794429cdce1f1989", kill_on_drop: false }` [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking lua-rs v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/compiler/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/compiler/codegen.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | use std::cell::{Ref, RefCell}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/compiler/codegen.rs:881:43 [INFO] [stdout] | [INFO] [stdout] 881 | self.emit_jmp(block.last_line, a, (pc_before_block as isize - self.pc() as isize - 1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 881 - self.emit_jmp(block.last_line, a, (pc_before_block as isize - self.pc() as isize - 1)); [INFO] [stdout] 881 + self.emit_jmp(block.last_line, a, pc_before_block as isize - self.pc() as isize - 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/compiler/codegen.rs:909:43 [INFO] [stdout] | [INFO] [stdout] 909 | self.emit_jmp(block.last_line, 0, (pc_before_exp as isize - self.pc() as isize - 1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 909 - self.emit_jmp(block.last_line, 0, (pc_before_exp as isize - self.pc() as isize - 1)); [INFO] [stdout] 909 + self.emit_jmp(block.last_line, 0, pc_before_exp as isize - self.pc() as isize - 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/compiler/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/compiler/codegen.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | use std::cell::{Ref, RefCell}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/compiler/codegen.rs:881:43 [INFO] [stdout] | [INFO] [stdout] 881 | self.emit_jmp(block.last_line, a, (pc_before_block as isize - self.pc() as isize - 1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 881 - self.emit_jmp(block.last_line, a, (pc_before_block as isize - self.pc() as isize - 1)); [INFO] [stdout] 881 + self.emit_jmp(block.last_line, a, pc_before_block as isize - self.pc() as isize - 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/compiler/codegen.rs:909:43 [INFO] [stdout] | [INFO] [stdout] 909 | self.emit_jmp(block.last_line, 0, (pc_before_exp as isize - self.pc() as isize - 1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 909 - self.emit_jmp(block.last_line, 0, (pc_before_exp as isize - self.pc() as isize - 1)); [INFO] [stdout] 909 + self.emit_jmp(block.last_line, 0, pc_before_exp as isize - self.pc() as isize - 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/compiler/codegen.rs:1498:9 [INFO] [stdout] | [INFO] [stdout] 1498 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binary::encode` [INFO] [stdout] --> src/compiler/codegen.rs:1500:9 [INFO] [stdout] | [INFO] [stdout] 1500 | use crate::binary::encode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::lexer::*` [INFO] [stdout] --> src/compiler/codegen.rs:1501:9 [INFO] [stdout] | [INFO] [stdout] 1501 | use crate::compiler::lexer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::parser::*` [INFO] [stdout] --> src/compiler/codegen.rs:1502:9 [INFO] [stdout] | [INFO] [stdout] 1502 | use crate::compiler::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/compiler/codegen.rs:1504:9 [INFO] [stdout] | [INFO] [stdout] 1504 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/parser.rs:993:13 [INFO] [stdout] | [INFO] [stdout] 993 | let block = parse_block(&mut lexer).expect("parse error"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proto` [INFO] [stdout] --> src/binary/mod.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let proto = decode(s); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_encode` is never used [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: function `test_encode` is never used [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/compiler/codegen.rs:1583:9 [INFO] [stdout] | [INFO] [stdout] 1583 | fs::write("./tests/test.out", bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1583 | let _ = fs::write("./tests/test.out", bytes); [INFO] [stdout] | +++++++ [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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = fs::write("./tests/test.out", s); [INFO] [stdout] | +++++++ [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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = fs::write("./tests/test.out", s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/state/ops.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | if fop == fnone { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 113 - if fop == fnone { [INFO] [stdout] 113 + if std::ptr::fn_addr_eq(fop, fnone as fn(f64, f64) -> f64) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/state/ops.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | if iop != inone { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 122 - if iop != inone { [INFO] [stdout] 122 + if !std::ptr::fn_addr_eq(iop, inone as fn(i64, i64) -> i64) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/state/ops.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | if fop == fnone { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 113 - if fop == fnone { [INFO] [stdout] 113 + if std::ptr::fn_addr_eq(fop, fnone as fn(f64, f64) -> f64) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/state/ops.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | if iop != inone { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 122 - if iop != inone { [INFO] [stdout] 122 + if !std::ptr::fn_addr_eq(iop, inone as fn(i64, i64) -> i64) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.51s [INFO] running `Command { std: "docker" "inspect" "eb4ded1364f66b38ce6fcdc1abc52061929cca95e5f174fe794429cdce1f1989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb4ded1364f66b38ce6fcdc1abc52061929cca95e5f174fe794429cdce1f1989", kill_on_drop: false }` [INFO] [stdout] eb4ded1364f66b38ce6fcdc1abc52061929cca95e5f174fe794429cdce1f1989