[INFO] fetching crate extendr-api 0.4.0... [INFO] checking extendr-api-0.4.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate extendr-api 0.4.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate extendr-api 0.4.0 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate extendr-api 0.4.0 [INFO] finished tweaking crates.io crate extendr-api 0.4.0 [INFO] tweaked toml for crates.io crate extendr-api 0.4.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 01525d972720b793aaf5047dac72705f9a3be97f2e0d8401eb2fbde08e109bfc [INFO] running `Command { std: "docker" "start" "-a" "01525d972720b793aaf5047dac72705f9a3be97f2e0d8401eb2fbde08e109bfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01525d972720b793aaf5047dac72705f9a3be97f2e0d8401eb2fbde08e109bfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01525d972720b793aaf5047dac72705f9a3be97f2e0d8401eb2fbde08e109bfc", kill_on_drop: false }` [INFO] [stdout] 01525d972720b793aaf5047dac72705f9a3be97f2e0d8401eb2fbde08e109bfc [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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 283bfff15a12023409eb45ad9cd58ac9337dd4be06106fa74b67c7811c7df9bb [INFO] running `Command { std: "docker" "start" "-a" "283bfff15a12023409eb45ad9cd58ac9337dd4be06106fa74b67c7811c7df9bb", kill_on_drop: false }` [INFO] [stderr] Compiling libR-sys v0.4.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rstest_macros v0.16.0 [INFO] [stderr] Checking futures-util v0.3.28 [INFO] [stderr] Compiling extendr-engine v0.4.0 [INFO] [stderr] Compiling extendr-api v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Compiling extendr-macros v0.4.0 [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/robj/mod.rs:756:53 [INFO] [stdout] | [INFO] [stdout] 756 | let ptr = $fn(self.get()) as *const $type; [INFO] [stdout] | -^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 786 | make_typed_slice!(Robj, VECTOR_PTR, VECSXP); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `make_typed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/robj/mod.rs:768:53 [INFO] [stdout] | [INFO] [stdout] 768 | let ptr = $fn(self.get()) as *mut $type; [INFO] [stdout] | -^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 786 | make_typed_slice!(Robj, VECTOR_PTR, VECSXP); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `make_typed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/thread_safety.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 82 | libR_sys::Rf_error(err_str.as_ptr() as *const std::os::raw::c_char); [INFO] [stdout] | ------------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 83 | } [INFO] [stdout] 84 | unreachable!("handle_panic unreachable") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/thread_safety.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 95 | libR_sys::Rf_error(R_ERROR_BUF.as_ref().unwrap().as_ptr()); [INFO] [stdout] | ---------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | unreachable!("Rf_error does not return"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rstest v0.16.0 [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/robj/mod.rs:756:33 [INFO] [stdout] | [INFO] [stdout] 756 | let ptr = $fn(self.get()) as *const $type; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] ... [INFO] [stdout] 786 | make_typed_slice!(Robj, VECTOR_PTR, VECSXP); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `make_typed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/robj/mod.rs:768:33 [INFO] [stdout] | [INFO] [stdout] 768 | let ptr = $fn(self.get()) as *mut $type; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] ... [INFO] [stdout] 786 | make_typed_slice!(Robj, VECTOR_PTR, VECSXP); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `make_typed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/robj/mod.rs:756:53 [INFO] [stdout] | [INFO] [stdout] 756 | let ptr = $fn(self.get()) as *const $type; [INFO] [stdout] | -^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 786 | make_typed_slice!(Robj, VECTOR_PTR, VECSXP); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `make_typed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/robj/mod.rs:768:53 [INFO] [stdout] | [INFO] [stdout] 768 | let ptr = $fn(self.get()) as *mut $type; [INFO] [stdout] | -^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 786 | make_typed_slice!(Robj, VECTOR_PTR, VECSXP); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `make_typed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/thread_safety.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 82 | libR_sys::Rf_error(err_str.as_ptr() as *const std::os::raw::c_char); [INFO] [stdout] | ------------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 83 | } [INFO] [stdout] 84 | unreachable!("handle_panic unreachable") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/thread_safety.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 95 | libR_sys::Rf_error(R_ERROR_BUF.as_ref().unwrap().as_ptr()); [INFO] [stdout] | ---------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | unreachable!("Rf_error does not return"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/robj/tests.rs:345:20 [INFO] [stdout] | [INFO] [stdout] 345 | let iter = ::from_robj(&robj).unwrap().iter(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 346 | assert_eq!(iter.collect::>(), src); [INFO] [stdout] | ---- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 345 ~ let binding = ::from_robj(&robj).unwrap(); [INFO] [stdout] 346 ~ let iter = binding.iter(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/robj/tests.rs:350:20 [INFO] [stdout] | [INFO] [stdout] 350 | let iter = ::from_robj(&robj).unwrap().iter(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 351 | assert_eq!(iter.collect::>(), src); [INFO] [stdout] | ---- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 350 ~ let binding = ::from_robj(&robj).unwrap(); [INFO] [stdout] 351 ~ let iter = binding.iter(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/robj/mod.rs:756:33 [INFO] [stdout] | [INFO] [stdout] 756 | let ptr = $fn(self.get()) as *const $type; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] ... [INFO] [stdout] 786 | make_typed_slice!(Robj, VECTOR_PTR, VECSXP); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `make_typed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/robj/mod.rs:768:33 [INFO] [stdout] | [INFO] [stdout] 768 | let ptr = $fn(self.get()) as *mut $type; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] ... [INFO] [stdout] 786 | make_typed_slice!(Robj, VECTOR_PTR, VECSXP); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `make_typed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `extendr-api` (lib test) due to 3 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "283bfff15a12023409eb45ad9cd58ac9337dd4be06106fa74b67c7811c7df9bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "283bfff15a12023409eb45ad9cd58ac9337dd4be06106fa74b67c7811c7df9bb", kill_on_drop: false }` [INFO] [stdout] 283bfff15a12023409eb45ad9cd58ac9337dd4be06106fa74b67c7811c7df9bb