[INFO] fetching crate luah 1.1.0... [INFO] testing luah-1.1.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate luah 1.1.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate luah 1.1.0 [INFO] finished tweaking crates.io crate luah 1.1.0 [INFO] tweaked toml for crates.io crate luah 1.1.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate luah 1.1.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate luah 1.1.0 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29fd26dd14ea5447c340f85c78d28ee23ccf32d4b317fb41b8915f4ebac6cd59 [INFO] running `Command { std: "docker" "start" "-a" "29fd26dd14ea5447c340f85c78d28ee23ccf32d4b317fb41b8915f4ebac6cd59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29fd26dd14ea5447c340f85c78d28ee23ccf32d4b317fb41b8915f4ebac6cd59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29fd26dd14ea5447c340f85c78d28ee23ccf32d4b317fb41b8915f4ebac6cd59", kill_on_drop: false }` [INFO] [stdout] 29fd26dd14ea5447c340f85c78d28ee23ccf32d4b317fb41b8915f4ebac6cd59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eadf5560cd985842636843191c4f91753d5ee026a2be9acf68cd5c99bfb142e3 [INFO] running `Command { std: "docker" "start" "-a" "eadf5560cd985842636843191c4f91753d5ee026a2be9acf68cd5c99bfb142e3", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling unindent v0.1.11 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling pyo3-build-config v0.19.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling pyo3-ffi v0.19.2 [INFO] [stderr] Compiling pyo3 v0.19.2 [INFO] [stderr] Compiling pyo3-macros-backend v0.19.2 [INFO] [stderr] Compiling pyo3-macros v0.19.2 [INFO] [stderr] Compiling luah v1.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [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/parse.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 40 | UnaryOp(FnBc2u8, usize), // (opcode, operand) [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] [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/parse.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 41 | BinaryOp(FnBc3u8, usize, usize), // (opcode, left-operand, right-operand) [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] [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/parse.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 47 | Compare(FnBcBool, usize, usize, Vec, Vec), [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] [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/parse.rs:1186:12 [INFO] [stdout] | [INFO] [stdout] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [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] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stdout] 1186 + if std::ptr::fn_addr_eq(opr, ByteCode::Add as fn(u8, u8, u8) -> ByteCode) || opr == ByteCode::Mul { // commutative [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/parse.rs:1186:36 [INFO] [stdout] | [INFO] [stdout] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [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] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stdout] 1186 + if opr == ByteCode::Add || std::ptr::fn_addr_eq(opr, ByteCode::Mul as fn(u8, u8, u8) -> ByteCode) { // commutative [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/parse.rs:1212:12 [INFO] [stdout] | [INFO] [stdout] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [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] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stdout] 1212 + if std::ptr::fn_addr_eq(opr, ByteCode::Equal as fn(u8, u8, bool) -> ByteCode) || opr == ByteCode::NotEq { // commutative [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/parse.rs:1212:38 [INFO] [stdout] | [INFO] [stdout] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [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] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stdout] 1212 + if opr == ByteCode::Equal || std::ptr::fn_addr_eq(opr, ByteCode::NotEq as fn(u8, u8, bool) -> ByteCode) { // commutative [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/parse.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 40 | UnaryOp(FnBc2u8, usize), // (opcode, operand) [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] [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/parse.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 41 | BinaryOp(FnBc3u8, usize, usize), // (opcode, left-operand, right-operand) [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] [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/parse.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 47 | Compare(FnBcBool, usize, usize, Vec, Vec), [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] [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/parse.rs:1186:12 [INFO] [stdout] | [INFO] [stdout] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [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] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stdout] 1186 + if std::ptr::fn_addr_eq(opr, ByteCode::Add as fn(u8, u8, u8) -> ByteCode) || opr == ByteCode::Mul { // commutative [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/parse.rs:1186:36 [INFO] [stdout] | [INFO] [stdout] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [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] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stdout] 1186 + if opr == ByteCode::Add || std::ptr::fn_addr_eq(opr, ByteCode::Mul as fn(u8, u8, u8) -> ByteCode) { // commutative [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/parse.rs:1212:12 [INFO] [stdout] | [INFO] [stdout] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [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] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stdout] 1212 + if std::ptr::fn_addr_eq(opr, ByteCode::Equal as fn(u8, u8, bool) -> ByteCode) || opr == ByteCode::NotEq { // commutative [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/parse.rs:1212:38 [INFO] [stdout] | [INFO] [stdout] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [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] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stdout] 1212 + if opr == ByteCode::Equal || std::ptr::fn_addr_eq(opr, ByteCode::NotEq as fn(u8, u8, bool) -> ByteCode) { // commutative [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.74s [INFO] running `Command { std: "docker" "inspect" "eadf5560cd985842636843191c4f91753d5ee026a2be9acf68cd5c99bfb142e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eadf5560cd985842636843191c4f91753d5ee026a2be9acf68cd5c99bfb142e3", kill_on_drop: false }` [INFO] [stdout] eadf5560cd985842636843191c4f91753d5ee026a2be9acf68cd5c99bfb142e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2adff2400a5ee4f9ce5897bdb44de6ff90682e1273df64de53c58dd2706063b1 [INFO] running `Command { std: "docker" "start" "-a" "2adff2400a5ee4f9ce5897bdb44de6ff90682e1273df64de53c58dd2706063b1", kill_on_drop: false }` [INFO] [stderr] Compiling luah v1.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [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/parse.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 40 | UnaryOp(FnBc2u8, usize), // (opcode, operand) [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] [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/parse.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 41 | BinaryOp(FnBc3u8, usize, usize), // (opcode, left-operand, right-operand) [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] [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/parse.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 47 | Compare(FnBcBool, usize, usize, Vec, Vec), [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] [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/parse.rs:1186:12 [INFO] [stdout] | [INFO] [stdout] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [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] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stdout] 1186 + if std::ptr::fn_addr_eq(opr, ByteCode::Add as fn(u8, u8, u8) -> ByteCode) || opr == ByteCode::Mul { // commutative [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/parse.rs:1186:36 [INFO] [stdout] | [INFO] [stdout] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [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] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stdout] 1186 + if opr == ByteCode::Add || std::ptr::fn_addr_eq(opr, ByteCode::Mul as fn(u8, u8, u8) -> ByteCode) { // commutative [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/parse.rs:1212:12 [INFO] [stdout] | [INFO] [stdout] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [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] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stdout] 1212 + if std::ptr::fn_addr_eq(opr, ByteCode::Equal as fn(u8, u8, bool) -> ByteCode) || opr == ByteCode::NotEq { // commutative [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/parse.rs:1212:38 [INFO] [stdout] | [INFO] [stdout] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [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] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stdout] 1212 + if opr == ByteCode::Equal || std::ptr::fn_addr_eq(opr, ByteCode::NotEq as fn(u8, u8, bool) -> ByteCode) { // commutative [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/parse.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 40 | UnaryOp(FnBc2u8, usize), // (opcode, operand) [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] [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/parse.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 41 | BinaryOp(FnBc3u8, usize, usize), // (opcode, left-operand, right-operand) [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] [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/parse.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 47 | Compare(FnBcBool, usize, usize, Vec, Vec), [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] [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/parse.rs:1186:12 [INFO] [stdout] | [INFO] [stdout] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [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] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stdout] 1186 + if std::ptr::fn_addr_eq(opr, ByteCode::Add as fn(u8, u8, u8) -> ByteCode) || opr == ByteCode::Mul { // commutative [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/parse.rs:1186:36 [INFO] [stdout] | [INFO] [stdout] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [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] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stdout] 1186 + if opr == ByteCode::Add || std::ptr::fn_addr_eq(opr, ByteCode::Mul as fn(u8, u8, u8) -> ByteCode) { // commutative [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/parse.rs:1212:12 [INFO] [stdout] | [INFO] [stdout] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [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] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stdout] 1212 + if std::ptr::fn_addr_eq(opr, ByteCode::Equal as fn(u8, u8, bool) -> ByteCode) || opr == ByteCode::NotEq { // commutative [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/parse.rs:1212:38 [INFO] [stdout] | [INFO] [stdout] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [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] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stdout] 1212 + if opr == ByteCode::Equal || std::ptr::fn_addr_eq(opr, ByteCode::NotEq as fn(u8, u8, bool) -> ByteCode) { // commutative [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.91s [INFO] running `Command { std: "docker" "inspect" "2adff2400a5ee4f9ce5897bdb44de6ff90682e1273df64de53c58dd2706063b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2adff2400a5ee4f9ce5897bdb44de6ff90682e1273df64de53c58dd2706063b1", kill_on_drop: false }` [INFO] [stdout] 2adff2400a5ee4f9ce5897bdb44de6ff90682e1273df64de53c58dd2706063b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9729ad69892809b8d8fe23766c49a6f2680a5e2ee2cddad2ca408a75179ffd44 [INFO] running `Command { std: "docker" "start" "-a" "9729ad69892809b8d8fe23766c49a6f2680a5e2ee2cddad2ca408a75179ffd44", kill_on_drop: false }` [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/parse.rs:40:13 [INFO] [stderr] | [INFO] [stderr] 14 | #[derive(Debug, PartialEq)] [INFO] [stderr] | --------- in this derive macro expansion [INFO] [stderr] ... [INFO] [stderr] 40 | UnaryOp(FnBc2u8, usize), // (opcode, operand) [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/parse.rs:41:14 [INFO] [stderr] | [INFO] [stderr] 14 | #[derive(Debug, PartialEq)] [INFO] [stderr] | --------- in this derive macro expansion [INFO] [stderr] ... [INFO] [stderr] 41 | BinaryOp(FnBc3u8, usize, usize), // (opcode, left-operand, right-operand) [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/parse.rs:47:13 [INFO] [stderr] | [INFO] [stderr] 14 | #[derive(Debug, PartialEq)] [INFO] [stderr] | --------- in this derive macro expansion [INFO] [stderr] ... [INFO] [stderr] 47 | Compare(FnBcBool, usize, usize, Vec, Vec), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/parse.rs:1186:12 [INFO] [stderr] | [INFO] [stderr] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stderr] 1186 + if std::ptr::fn_addr_eq(opr, ByteCode::Add as fn(u8, u8, u8) -> ByteCode) || opr == ByteCode::Mul { // commutative [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/parse.rs:1186:36 [INFO] [stderr] | [INFO] [stderr] 1186 | if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 1186 - if opr == ByteCode::Add || opr == ByteCode::Mul { // commutative [INFO] [stderr] 1186 + if opr == ByteCode::Add || std::ptr::fn_addr_eq(opr, ByteCode::Mul as fn(u8, u8, u8) -> ByteCode) { // commutative [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/parse.rs:1212:12 [INFO] [stderr] | [INFO] [stderr] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stderr] 1212 + if std::ptr::fn_addr_eq(opr, ByteCode::Equal as fn(u8, u8, bool) -> ByteCode) || opr == ByteCode::NotEq { // commutative [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/parse.rs:1212:38 [INFO] [stderr] | [INFO] [stderr] 1212 | if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 1212 - if opr == ByteCode::Equal || opr == ByteCode::NotEq { // commutative [INFO] [stderr] 1212 + if opr == ByteCode::Equal || std::ptr::fn_addr_eq(opr, ByteCode::NotEq as fn(u8, u8, bool) -> ByteCode) { // commutative [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/lib.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `luah` (bin "luah" test) generated 7 warnings [INFO] [stderr] warning: `luah` (lib test) generated 8 warnings (7 duplicates) (run `cargo fix --lib -p luah --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/luah-59c12e65642a2b1f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/luah-803daad23ad0d93b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9729ad69892809b8d8fe23766c49a6f2680a5e2ee2cddad2ca408a75179ffd44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9729ad69892809b8d8fe23766c49a6f2680a5e2ee2cddad2ca408a75179ffd44", kill_on_drop: false }` [INFO] [stdout] 9729ad69892809b8d8fe23766c49a6f2680a5e2ee2cddad2ca408a75179ffd44