[INFO] fetching crate better-web-view 0.6.0... [INFO] checking better-web-view-0.6.0 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] extracting crate better-web-view 0.6.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate better-web-view 0.6.0 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate better-web-view 0.6.0 [INFO] finished tweaking crates.io crate better-web-view 0.6.0 [INFO] tweaked toml for crates.io crate better-web-view 0.6.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 16 packages [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.5.0) [INFO] [stderr] Adding urlencoding v1.3.3 (latest: v2.1.3) [INFO] [stderr] Adding webview-sys v0.1.4 (latest: v0.6.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded urlencoding v1.3.3 [INFO] [stderr] Downloaded boxfnonce v0.1.1 [INFO] [stderr] Downloaded webview-sys v0.1.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cb939c703171e47e0eaf69c9fabb47ab0fd409e3648d61d08a6f9e4e07fe5bee [INFO] running `Command { std: "docker" "start" "-a" "cb939c703171e47e0eaf69c9fabb47ab0fd409e3648d61d08a6f9e4e07fe5bee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb939c703171e47e0eaf69c9fabb47ab0fd409e3648d61d08a6f9e4e07fe5bee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb939c703171e47e0eaf69c9fabb47ab0fd409e3648d61d08a6f9e4e07fe5bee", kill_on_drop: false }` [INFO] [stdout] cb939c703171e47e0eaf69c9fabb47ab0fd409e3648d61d08a6f9e4e07fe5bee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22b1a478ab640258c6359cf5bce987f8e05ac136285949182f580a109aa257fb [INFO] running `Command { std: "docker" "start" "-a" "22b1a478ab640258c6359cf5bce987f8e05ac136285949182f580a109aa257fb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Checking boxfnonce v0.1.1 [INFO] [stderr] Checking urlencoding v1.3.3 [INFO] [stderr] Compiling webview-sys v0.1.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.57 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Checking serde v1.0.197 [INFO] [stderr] Checking serde_json v1.0.115 [INFO] [stderr] Checking better-web-view v0.6.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `ffi` is imported redundantly [INFO] [stdout] --> src/dialog.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use ffi::{self, DialogFlags, DialogType}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | extern crate webview_sys as ffi; [INFO] [stdout] | -------------------------------- the item `ffi` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ffi` is imported redundantly [INFO] [stdout] --> src/dialog.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use ffi::{self, DialogFlags, DialogType}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | extern crate webview_sys as ffi; [INFO] [stdout] | -------------------------------- the item `ffi` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 28 | Custom(Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | Custom(Box), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 241 | invoke_handler: Box, &str) -> WVResult + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 241 | invoke_handler: Box, &str) -> WVResult + 'a>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 28 | Custom(Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | Custom(Box), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 241 | invoke_handler: Box, &str) -> WVResult + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 241 | invoke_handler: Box, &str) -> WVResult + 'a>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:39:32 [INFO] [stdout] | [INFO] [stdout] 39 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 39 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:39:32 [INFO] [stdout] | [INFO] [stdout] 39 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 39 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:287:22 [INFO] [stdout] | [INFO] [stdout] 287 | Some(ffi_invoke_handler::), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^ expected "C" fn, found "system" fn [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `extern "C" fn(_, _)` [INFO] [stdout] found fn item `extern "system" fn(_, _) {ffi_invoke_handler::}` [INFO] [stdout] help: the type constructed contains `extern "system" fn(*mut ffi::CWebView, *const i8) {ffi_invoke_handler::}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | Some(ffi_invoke_handler::), [INFO] [stdout] | ^^^^^-----------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:579:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:287:22 [INFO] [stdout] | [INFO] [stdout] 287 | Some(ffi_invoke_handler::), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^ expected "C" fn, found "system" fn [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `extern "C" fn(_, _)` [INFO] [stdout] found fn item `extern "system" fn(_, _) {ffi_invoke_handler::}` [INFO] [stdout] help: the type constructed contains `extern "system" fn(*mut ffi::CWebView, *const i8) {ffi_invoke_handler::}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | Some(ffi_invoke_handler::), [INFO] [stdout] | ^^^^^-----------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:579:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `extern "system" fn(*mut ffi::CWebView, *mut std::ffi::c_void) {ffi_dispatch_handler::}` as `extern "C" fn(*mut ffi::CWebView, *mut std::ffi::c_void)` [INFO] [stdout] --> src/lib.rs:502:22 [INFO] [stdout] | [INFO] [stdout] 502 | Some(ffi_dispatch_handler:: as _), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `extern "system" fn(*mut ffi::CWebView, *mut std::ffi::c_void) {ffi_dispatch_handler::}` as `extern "C" fn(*mut ffi::CWebView, *mut std::ffi::c_void)` [INFO] [stdout] --> src/lib.rs:502:22 [INFO] [stdout] | [INFO] [stdout] 502 | Some(ffi_dispatch_handler:: as _), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `better-web-view` (lib) due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `better-web-view` (lib test) due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "22b1a478ab640258c6359cf5bce987f8e05ac136285949182f580a109aa257fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22b1a478ab640258c6359cf5bce987f8e05ac136285949182f580a109aa257fb", kill_on_drop: false }` [INFO] [stdout] 22b1a478ab640258c6359cf5bce987f8e05ac136285949182f580a109aa257fb