[INFO] fetching crate m68000 0.2.3... [INFO] checking m68000-0.2.3 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate m68000 0.2.3 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate m68000 0.2.3 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate m68000 0.2.3 [INFO] tweaked toml for crates.io crate m68000 0.2.3 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate m68000 0.2.3 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate m68000 0.2.3 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 072cfdd0380c384bd2df0b6c1f17bcdad2e60b2aab7deb35d83edd5ec7aa56a1 [INFO] running `Command { std: "docker" "start" "-a" "072cfdd0380c384bd2df0b6c1f17bcdad2e60b2aab7deb35d83edd5ec7aa56a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "072cfdd0380c384bd2df0b6c1f17bcdad2e60b2aab7deb35d83edd5ec7aa56a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "072cfdd0380c384bd2df0b6c1f17bcdad2e60b2aab7deb35d83edd5ec7aa56a1", kill_on_drop: false }` [INFO] [stdout] 072cfdd0380c384bd2df0b6c1f17bcdad2e60b2aab7deb35d83edd5ec7aa56a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e356d2cfc6645699e2f2716d6ac25f005612eb3149cdfd5069debead07afcd0 [INFO] running `Command { std: "docker" "start" "-a" "3e356d2cfc6645699e2f2716d6ac25f005612eb3149cdfd5069debead07afcd0", kill_on_drop: false }` [INFO] [stderr] Checking m68000 v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/memory_access.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | fn iter_u16(&mut self, addr: u32) -> MemoryIter { [INFO] [stdout] | ^^^^^^^^^ ---------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 68 | fn iter_u16(&mut self, addr: u32) -> MemoryIter<'_, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/memory_access.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | fn iter_u16(&mut self, addr: u32) -> MemoryIter { [INFO] [stdout] | ^^^^^^^^^ ---------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 68 | fn iter_u16(&mut self, addr: u32) -> MemoryIter<'_, Self> { [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] --> tests/assembler.rs:177:16 [INFO] [stdout] | [INFO] [stdout] 177 | if asm_dynamic == asm::btst_dynamic && asm_static == asm::btst_static { [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] 177 - if asm_dynamic == asm::btst_dynamic && asm_static == asm::btst_static { [INFO] [stdout] 177 + if std::ptr::fn_addr_eq(asm_dynamic, asm::btst_dynamic as fn(u8, AddressingMode) -> Vec) && asm_static == asm::btst_static { [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] --> tests/assembler.rs:177:52 [INFO] [stdout] | [INFO] [stdout] 177 | if asm_dynamic == asm::btst_dynamic && asm_static == asm::btst_static { [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] 177 - if asm_dynamic == asm::btst_dynamic && asm_static == asm::btst_static { [INFO] [stdout] 177 + if asm_dynamic == asm::btst_dynamic && std::ptr::fn_addr_eq(asm_static, asm::btst_static as fn(AddressingMode, u8) -> Vec) { [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] --> tests/assembler.rs:215:16 [INFO] [stdout] | [INFO] [stdout] 215 | if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [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] 215 - if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [INFO] [stdout] 215 + if !std::ptr::fn_addr_eq(asm, asm::jmp as fn(AddressingMode) -> Vec) && asm != asm::jsr && asm != asm::pea { [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] --> tests/assembler.rs:215:35 [INFO] [stdout] | [INFO] [stdout] 215 | if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [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] 215 - if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [INFO] [stdout] 215 + if asm != asm::jmp && !std::ptr::fn_addr_eq(asm, asm::jsr as fn(AddressingMode) -> Vec) && asm != asm::pea { [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] --> tests/assembler.rs:215:54 [INFO] [stdout] | [INFO] [stdout] 215 | if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [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] 215 - if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [INFO] [stdout] 215 + if asm != asm::jmp && asm != asm::jsr && !std::ptr::fn_addr_eq(asm, asm::pea as fn(AddressingMode) -> Vec) { [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] --> tests/assembler.rs:230:16 [INFO] [stdout] | [INFO] [stdout] 230 | if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [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] 230 - if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [INFO] [stdout] 230 + if std::ptr::fn_addr_eq(asm, asm::jmp as fn(AddressingMode) -> Vec) || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [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] --> tests/assembler.rs:230:35 [INFO] [stdout] | [INFO] [stdout] 230 | if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [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] 230 - if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [INFO] [stdout] 230 + if asm == asm::jmp || std::ptr::fn_addr_eq(asm, asm::jsr as fn(AddressingMode) -> Vec) || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [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] --> tests/assembler.rs:230:54 [INFO] [stdout] | [INFO] [stdout] 230 | if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [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] 230 - if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [INFO] [stdout] 230 + if asm == asm::jmp || asm == asm::jsr || std::ptr::fn_addr_eq(asm, asm::moveccr as fn(AddressingMode) -> Vec) || asm == asm::movesr || asm == asm::pea { [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] --> tests/assembler.rs:230:77 [INFO] [stdout] | [INFO] [stdout] 230 | if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [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] 230 - if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [INFO] [stdout] 230 + if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || std::ptr::fn_addr_eq(asm, asm::movesr as fn(AddressingMode) -> Vec) || asm == asm::pea { [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] --> tests/assembler.rs:230:99 [INFO] [stdout] | [INFO] [stdout] 230 | if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [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] 230 - if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || asm == asm::pea { [INFO] [stdout] 230 + if asm == asm::jmp || asm == asm::jsr || asm == asm::moveccr || asm == asm::movesr || std::ptr::fn_addr_eq(asm, asm::pea as fn(AddressingMode) -> Vec) { [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] --> tests/assembler.rs:233:20 [INFO] [stdout] | [INFO] [stdout] 233 | if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [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] 233 - if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [INFO] [stdout] 233 + if !std::ptr::fn_addr_eq(asm, asm::jmp as fn(AddressingMode) -> Vec) && asm != asm::jsr && asm != asm::pea { [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] --> tests/assembler.rs:233:39 [INFO] [stdout] | [INFO] [stdout] 233 | if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [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] 233 - if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [INFO] [stdout] 233 + if asm != asm::jmp && !std::ptr::fn_addr_eq(asm, asm::jsr as fn(AddressingMode) -> Vec) && asm != asm::pea { [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] --> tests/assembler.rs:233:58 [INFO] [stdout] | [INFO] [stdout] 233 | if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [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] 233 - if asm != asm::jmp && asm != asm::jsr && asm != asm::pea { [INFO] [stdout] 233 + if asm != asm::jmp && asm != asm::jsr && !std::ptr::fn_addr_eq(asm, asm::pea as fn(AddressingMode) -> Vec) { [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] --> tests/assembler.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 248 | if asm != asm::moveccr && asm != asm::movesr { [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] 248 - if asm != asm::moveccr && asm != asm::movesr { [INFO] [stdout] 248 + if !std::ptr::fn_addr_eq(asm, asm::moveccr as fn(AddressingMode) -> Vec) && asm != asm::movesr { [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] --> tests/assembler.rs:248:39 [INFO] [stdout] | [INFO] [stdout] 248 | if asm != asm::moveccr && asm != asm::movesr { [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] 248 - if asm != asm::moveccr && asm != asm::movesr { [INFO] [stdout] 248 + if asm != asm::moveccr && !std::ptr::fn_addr_eq(asm, asm::movesr as fn(AddressingMode) -> Vec) { [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] --> tests/assembler.rs:299:16 [INFO] [stdout] | [INFO] [stdout] 299 | if asm != asm::lea { [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] 299 - if asm != asm::lea { [INFO] [stdout] 299 + if !std::ptr::fn_addr_eq(asm, asm::lea as fn(u8, AddressingMode) -> Vec) { [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] --> tests/assembler.rs:315:16 [INFO] [stdout] | [INFO] [stdout] 315 | if asm != asm::lea { [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] 315 - if asm != asm::lea { [INFO] [stdout] 315 + if !std::ptr::fn_addr_eq(asm, asm::lea as fn(u8, AddressingMode) -> Vec) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.92s [INFO] running `Command { std: "docker" "inspect" "3e356d2cfc6645699e2f2716d6ac25f005612eb3149cdfd5069debead07afcd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e356d2cfc6645699e2f2716d6ac25f005612eb3149cdfd5069debead07afcd0", kill_on_drop: false }` [INFO] [stdout] 3e356d2cfc6645699e2f2716d6ac25f005612eb3149cdfd5069debead07afcd0