[INFO] fetching crate null_fn 0.1.1... [INFO] testing null_fn-0.1.1 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate null_fn 0.1.1 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate null_fn 0.1.1 [INFO] finished tweaking crates.io crate null_fn 0.1.1 [INFO] tweaked toml for crates.io crate null_fn 0.1.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate null_fn 0.1.1 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f794a4ad592398c03b6713c28f6fbdaa11dc63bd9b2eec87e5388f0579dc2a80 [INFO] running `Command { std: "docker" "start" "-a" "f794a4ad592398c03b6713c28f6fbdaa11dc63bd9b2eec87e5388f0579dc2a80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f794a4ad592398c03b6713c28f6fbdaa11dc63bd9b2eec87e5388f0579dc2a80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f794a4ad592398c03b6713c28f6fbdaa11dc63bd9b2eec87e5388f0579dc2a80", kill_on_drop: false }` [INFO] [stdout] f794a4ad592398c03b6713c28f6fbdaa11dc63bd9b2eec87e5388f0579dc2a80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b7d331abd81840919821c447627221395460b739dbf54c808da366c65529cda [INFO] running `Command { std: "docker" "start" "-a" "0b7d331abd81840919821c447627221395460b739dbf54c808da366c65529cda", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling null_fn v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.93s [INFO] running `Command { std: "docker" "inspect" "0b7d331abd81840919821c447627221395460b739dbf54c808da366c65529cda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b7d331abd81840919821c447627221395460b739dbf54c808da366c65529cda", kill_on_drop: false }` [INFO] [stdout] 0b7d331abd81840919821c447627221395460b739dbf54c808da366c65529cda [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74785f470c6ad22f03c49369b9a0eb79922475cd45e8ed7e53af54927943c292 [INFO] running `Command { std: "docker" "start" "-a" "74785f470c6ad22f03c49369b9a0eb79922475cd45e8ed7e53af54927943c292", kill_on_drop: false }` [INFO] [stderr] Compiling null_fn v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "74785f470c6ad22f03c49369b9a0eb79922475cd45e8ed7e53af54927943c292", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74785f470c6ad22f03c49369b9a0eb79922475cd45e8ed7e53af54927943c292", kill_on_drop: false }` [INFO] [stdout] 74785f470c6ad22f03c49369b9a0eb79922475cd45e8ed7e53af54927943c292 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7f1ed3b38a0bfba24ec694a696d910723c886e8790c37a6bc2fdf6b724a2b957 [INFO] running `Command { std: "docker" "start" "-a" "7f1ed3b38a0bfba24ec694a696d910723c886e8790c37a6bc2fdf6b724a2b957", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/null_fn-7e03521a267cb2dd) [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] Doc-tests null_fn [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - null_fn (line 19) ... FAILED [INFO] [stdout] test src/lib.rs - (line 11) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - null_fn (line 19) stdout ---- [INFO] [stdout] error: expected expression, found `;` [INFO] [stdout] --> src/lib.rs:30:89 [INFO] [stdout] | [INFO] [stdout] 13 | UTIL_PlayerByUserId = /* magically find the pointer to the function; sigscan? */; [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `UTIL_PlayerByUserId` is defined multiple times [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 4 | static mut UTIL_PlayerByUserId: unsafe extern "C" fn(userid: i32) -> *mut c_void = unsafe { std::mem::transmute::<*const (), _>(std::ptr:... [INFO] [stdout] | ----------------------------------------------------------------------------------------- previous definition of the value `UTIL_PlayerByUserId` here [INFO] [stdout] ... [INFO] [stdout] 7 | static mut UTIL_PlayerByUserId: unsafe extern "C" fn(userid: i32) -> *mut c_void = std::ptr::null(); // works! [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UTIL_PlayerByUserId` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `UTIL_PlayerByUserId` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `null_fn` in this scope [INFO] [stdout] --> src/lib.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[null_fn] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `null_fn` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#null_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use null_fn::null_fn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:21:75 [INFO] [stdout] | [INFO] [stdout] 4 | static mut UTIL_PlayerByUserId: unsafe extern "C" fn(userid: i32) -> *mut c_void = unsafe { std::mem::transmute::<*const (), _>(std::ptr:... [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 2 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:24:75 [INFO] [stdout] | [INFO] [stdout] 7 | static mut UTIL_PlayerByUserId: unsafe extern "C" fn(userid: i32) -> *mut c_void = std::ptr::null(); // works! [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 2 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0428. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 11) stdout ---- [INFO] [stdout] error: expected expression, found `;` [INFO] [stdout] --> src/lib.rs:22:89 [INFO] [stdout] | [INFO] [stdout] 13 | UTIL_PlayerByUserId = /* magically find the pointer to the function; sigscan? */; [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `UTIL_PlayerByUserId` is defined multiple times [INFO] [stdout] --> src/lib.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 4 | static mut UTIL_PlayerByUserId: unsafe extern "C" fn(userid: i32) -> *mut c_void = unsafe { std::mem::transmute::<*const (), _>(std::ptr:... [INFO] [stdout] | ----------------------------------------------------------------------------------------- previous definition of the value `UTIL_PlayerByUserId` here [INFO] [stdout] ... [INFO] [stdout] 7 | static mut UTIL_PlayerByUserId: unsafe extern "C" fn(userid: i32) -> *mut c_void = std::ptr::null(); // works! [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UTIL_PlayerByUserId` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `UTIL_PlayerByUserId` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `null_fn` in this scope [INFO] [stdout] --> src/lib.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[null_fn] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `null_fn` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#null_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use null_fn::null_fn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:13:75 [INFO] [stdout] | [INFO] [stdout] 4 | static mut UTIL_PlayerByUserId: unsafe extern "C" fn(userid: i32) -> *mut c_void = unsafe { std::mem::transmute::<*const (), _>(std::ptr:... [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 2 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:16:75 [INFO] [stdout] | [INFO] [stdout] 7 | static mut UTIL_PlayerByUserId: unsafe extern "C" fn(userid: i32) -> *mut c_void = std::ptr::null(); // works! [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 2 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0428. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] src/lib.rs - null_fn (line 19) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "7f1ed3b38a0bfba24ec694a696d910723c886e8790c37a6bc2fdf6b724a2b957", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f1ed3b38a0bfba24ec694a696d910723c886e8790c37a6bc2fdf6b724a2b957", kill_on_drop: false }` [INFO] [stdout] 7f1ed3b38a0bfba24ec694a696d910723c886e8790c37a6bc2fdf6b724a2b957