[INFO] fetching crate message_plugins 0.2.0... [INFO] testing message_plugins-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate message_plugins 0.2.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate message_plugins 0.2.0 [INFO] finished tweaking crates.io crate message_plugins 0.2.0 [INFO] tweaked toml for crates.io crate message_plugins 0.2.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate message_plugins 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 31 packages to latest compatible versions [INFO] [stderr] Adding libloading v0.6.7 (available: v0.8.8) [INFO] [stderr] Adding tokio v0.2.25 (available: v1.47.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3b99b3c640c9154a618fdae3481192a54695e214e2e522f099c4d848e31b282 [INFO] running `Command { std: "docker" "start" "-a" "a3b99b3c640c9154a618fdae3481192a54695e214e2e522f099c4d848e31b282", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3b99b3c640c9154a618fdae3481192a54695e214e2e522f099c4d848e31b282", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3b99b3c640c9154a618fdae3481192a54695e214e2e522f099c4d848e31b282", kill_on_drop: false }` [INFO] [stdout] a3b99b3c640c9154a618fdae3481192a54695e214e2e522f099c4d848e31b282 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94a48ea792be5e499360aad5b0906503c2815c66af8f6fc27f173ca64b511034 [INFO] running `Command { std: "docker" "start" "-a" "94a48ea792be5e499360aad5b0906503c2815c66af8f6fc27f173ca64b511034", kill_on_drop: false }` [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling message_plugins v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: references are not nullable, so checking them for null will always return false [INFO] [stdout] --> src/lib.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | if ((*instance.as_ptr()).as_ref() as *const dyn Plugin).is_null() { [INFO] [stdout] | ^-----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expression has type `&dyn Plugin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Option<&dyn Any>`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:256:29 [INFO] [stdout] | [INFO] [stdout] 256 | pub type FfiPluginInit = unsafe extern "C" fn(*mut Box>, Option<&dyn Any>); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "94a48ea792be5e499360aad5b0906503c2815c66af8f6fc27f173ca64b511034", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94a48ea792be5e499360aad5b0906503c2815c66af8f6fc27f173ca64b511034", kill_on_drop: false }` [INFO] [stdout] 94a48ea792be5e499360aad5b0906503c2815c66af8f6fc27f173ca64b511034 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d53d3dcd9fefce1a466c4b3a22c046d741cc1a82fb241bf7f884a190a8636afc [INFO] running `Command { std: "docker" "start" "-a" "d53d3dcd9fefce1a466c4b3a22c046d741cc1a82fb241bf7f884a190a8636afc", kill_on_drop: false }` [INFO] [stdout] warning: references are not nullable, so checking them for null will always return false [INFO] [stdout] --> src/lib.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | if ((*instance.as_ptr()).as_ref() as *const dyn Plugin).is_null() { [INFO] [stdout] | ^-----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expression has type `&dyn Plugin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Option<&dyn Any>`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:256:29 [INFO] [stdout] | [INFO] [stdout] 256 | pub type FfiPluginInit = unsafe extern "C" fn(*mut Box>, Option<&dyn Any>); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling message_plugins v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: references are not nullable, so checking them for null will always return false [INFO] [stdout] --> src/lib.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | if ((*instance.as_ptr()).as_ref() as *const dyn Plugin).is_null() { [INFO] [stdout] | ^-----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expression has type `&dyn Plugin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Option<&dyn Any>`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:256:29 [INFO] [stdout] | [INFO] [stdout] 256 | pub type FfiPluginInit = unsafe extern "C" fn(*mut Box>, Option<&dyn Any>); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "d53d3dcd9fefce1a466c4b3a22c046d741cc1a82fb241bf7f884a190a8636afc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d53d3dcd9fefce1a466c4b3a22c046d741cc1a82fb241bf7f884a190a8636afc", kill_on_drop: false }` [INFO] [stdout] d53d3dcd9fefce1a466c4b3a22c046d741cc1a82fb241bf7f884a190a8636afc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7e41c2985a4c81c82b326a79562def463a9699f91d400841a11ccf9932c3014b [INFO] running `Command { std: "docker" "start" "-a" "7e41c2985a4c81c82b326a79562def463a9699f91d400841a11ccf9932c3014b", kill_on_drop: false }` [INFO] [stderr] warning: references are not nullable, so checking them for null will always return false [INFO] [stderr] --> src/lib.rs:220:12 [INFO] [stderr] | [INFO] [stderr] 220 | if ((*instance.as_ptr()).as_ref() as *const dyn Plugin).is_null() { [INFO] [stderr] | ^-----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expression has type `&dyn Plugin` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `Option<&dyn Any>`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:256:29 [INFO] [stderr] | [INFO] [stderr] 256 | pub type FfiPluginInit = unsafe extern "C" fn(*mut Box>, Option<&dyn Any>); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stderr] = note: enum has no representation hint [INFO] [stderr] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `message_plugins` (lib) generated 2 warnings [INFO] [stderr] warning: `message_plugins` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/message_plugins-728996143ebb90e8) [INFO] [stderr] Doc-tests message_plugins [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] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - construct_plugin_with_constructor (line 204) ... FAILED [INFO] [stdout] test src/lib.rs - construct_plugin (line 230) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - construct_plugin_with_constructor (line 204) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Plugin` in this scope [INFO] [stdout] --> src/lib.rs:206:59 [INFO] [stdout] | [INFO] [stdout] 4 | unsafe extern "C" fn plugin_constructor(ptr: *mut Box>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use message_plugins::Plugin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `YourMessageType` in this scope [INFO] [stdout] --> src/lib.rs:206:66 [INFO] [stdout] | [INFO] [stdout] 4 | unsafe extern "C" fn plugin_constructor(ptr: *mut Box>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | unsafe extern "C" fn plugin_constructor(ptr: *mut Box>) { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `YourPlugin` [INFO] [stdout] --> src/lib.rs:207:27 [INFO] [stdout] | [INFO] [stdout] 5 | let plugin = Box::new(YourPlugin::new()); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `YourPlugin` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `insert_instace` in this scope [INFO] [stdout] --> src/lib.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 6 | insert_instace(ptr, plugin); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - construct_plugin (line 230) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Plugin` in this scope [INFO] [stdout] --> src/lib.rs:232:59 [INFO] [stdout] | [INFO] [stdout] 4 | unsafe extern "C" fn plugin_constructor(ptr: *mut Box>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use message_plugins::Plugin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `YourMessageType` in this scope [INFO] [stdout] --> src/lib.rs:232:66 [INFO] [stdout] | [INFO] [stdout] 4 | unsafe extern "C" fn plugin_constructor(ptr: *mut Box>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | unsafe extern "C" fn plugin_constructor(ptr: *mut Box>) { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `YourPlugin` [INFO] [stdout] --> src/lib.rs:233:27 [INFO] [stdout] | [INFO] [stdout] 5 | let plugin = Box::new(YourPlugin::new()); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `YourPlugin` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `insert_instace` in this scope [INFO] [stdout] --> src/lib.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 6 | insert_instace(ptr, plugin); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - construct_plugin (line 230) [INFO] [stdout] src/lib.rs - construct_plugin_with_constructor (line 204) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "7e41c2985a4c81c82b326a79562def463a9699f91d400841a11ccf9932c3014b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e41c2985a4c81c82b326a79562def463a9699f91d400841a11ccf9932c3014b", kill_on_drop: false }` [INFO] [stdout] 7e41c2985a4c81c82b326a79562def463a9699f91d400841a11ccf9932c3014b