[INFO] fetching crate googletest 0.12.0... [INFO] checking googletest-0.12.0 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate googletest 0.12.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate googletest 0.12.0 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate googletest 0.12.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate googletest 0.12.0 [INFO] tweaked toml for crates.io crate googletest 0.12.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 58 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b89f02d844dceab6d769e276376a3f4600a8650a45f1a92156ed438543fef68 [INFO] running `Command { std: "docker" "start" "-a" "2b89f02d844dceab6d769e276376a3f4600a8650a45f1a92156ed438543fef68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b89f02d844dceab6d769e276376a3f4600a8650a45f1a92156ed438543fef68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b89f02d844dceab6d769e276376a3f4600a8650a45f1a92156ed438543fef68", kill_on_drop: false }` [INFO] [stdout] 2b89f02d844dceab6d769e276376a3f4600a8650a45f1a92156ed438543fef68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d70eabbf8a62e16999586ed2b987d14cdc7c6d31f8b298bf263c0735d7a76025 [INFO] running `Command { std: "docker" "start" "-a" "d70eabbf8a62e16999586ed2b987d14cdc7c6d31f8b298bf263c0735d7a76025", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Compiling googletest_macro v0.12.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Checking googletest v0.12.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/matchers/has_entry_matcher.rs (2 fixes) [INFO] [stderr] Fixed src/matchers/field_matcher.rs (3 fixes) [INFO] [stderr] Fixed src/lib.rs (1 fix) [INFO] [stderr] Fixed src/matchers/all_matcher.rs (6 fixes) [INFO] [stderr] Fixed src/matchers/unordered_elements_are_matcher.rs (3 fixes) [INFO] [stderr] Fixed src/matchers/pointwise_matcher.rs (9 fixes) [INFO] [stderr] Fixed src/matchers/contains_matcher.rs (1 fix) [INFO] [stderr] Fixed src/matcher_support/auto_eq.rs (1 fix) [INFO] [stderr] Fixed src/assertions.rs (103 fixes) [INFO] [stderr] Fixed src/matchers/elements_are_matcher.rs (1 fix) [INFO] [stderr] Fixed src/matchers/matches_pattern.rs (46 fixes) [INFO] [stderr] Fixed src/matchers/str_matcher.rs (1 fix) [INFO] [stderr] Fixed src/matchers/any_matcher.rs (6 fixes) [INFO] [stderr] Fixed src/matchers/property_matcher.rs (4 fixes) [INFO] [stderr] Migrating tests/all_matcher_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/unordered_elements_are_matcher_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/elements_are_matcher_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/any_matcher_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/composition_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/tuple_matcher_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/property_matcher_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/colorized_diff_test.rs (2 fixes) [INFO] [stderr] Migrating tests/proptest_integration_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/no_color_test.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/no_color_test.rs (2 fixes) [INFO] [stderr] Migrating tests/matches_pattern_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/field_matcher_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/pointwise_matcher_test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/colorized_diff_test.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.73s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking googletest v0.12.0 (/tmp/fixit) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/pointwise_matcher_test.rs:131:62 [INFO] [stdout] | [INFO] [stdout] 131 | let result = verify_that!(vec![1, 2, 3], pointwise!(eq, &vec![1, 3, 3])); [INFO] [stdout] | --------------------------------------------^^^^^^^^^^^^^-- [INFO] [stdout] | | | | [INFO] [stdout] | | | creates a temporary value which is freed while still in use [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/pointwise_matcher_test.rs:152:62 [INFO] [stdout] | [INFO] [stdout] 152 | let result = verify_that!(vec![1, 2, 3], pointwise!(eq, &vec![2, 3, 3])); [INFO] [stdout] | --------------------------------------------^^^^^^^^^^^^^-- [INFO] [stdout] | | | | [INFO] [stdout] | | | creates a temporary value which is freed while still in use [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `googletest` (test "pointwise_matcher_test") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/elements_are_matcher_test.rs:126:41 [INFO] [stdout] | [INFO] [stdout] 126 | verify_that!(matcher.explain_match(&vec![1, 2]), displays_as(eq("whose size is 2"))) [INFO] [stdout] | ------------------------------------^^^^^^^^^^-------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | temporary value is freed at the end of this statement [INFO] [stdout] 127 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `ElementsAre<'_, &i32>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `googletest` (test "elements_are_matcher_test") due to 1 previous error [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/elements_are_matcher_test.rs:126:41 [INFO] [stdout] | [INFO] [stdout] 126 | verify_that!(matcher.explain_match(&vec![1, 2]), displays_as(eq("whose size is 2"))) [INFO] [stdout] | ------------------------------------^^^^^^^^^^-------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | temporary value is freed at the end of this statement [INFO] [stdout] 127 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `ElementsAre<'_, &i32>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/pointwise_matcher_test.rs:131:62 [INFO] [stdout] | [INFO] [stdout] 131 | let result = verify_that!(vec![1, 2, 3], pointwise!(eq, &vec![1, 3, 3])); [INFO] [stdout] | --------------------------------------------^^^^^^^^^^^^^-- [INFO] [stdout] | | | | [INFO] [stdout] | | | creates a temporary value which is freed while still in use [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/pointwise_matcher_test.rs:152:62 [INFO] [stdout] | [INFO] [stdout] 152 | let result = verify_that!(vec![1, 2, 3], pointwise!(eq, &vec![2, 3, 3])); [INFO] [stdout] | --------------------------------------------^^^^^^^^^^^^^-- [INFO] [stdout] | | | | [INFO] [stdout] | | | creates a temporary value which is freed while still in use [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:211:32 [INFO] [stdout] | [INFO] [stdout] 210 | / verify_that!( [INFO] [stdout] 211 | | matcher.explain_match(&vec![2, 3]), [INFO] [stdout] | | ^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 212 | | displays_as(eq("which has size 2 (expected 3)")) [INFO] [stdout] 213 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 214 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 3>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:220:32 [INFO] [stdout] | [INFO] [stdout] 219 | / verify_that!( [INFO] [stdout] 220 | | matcher.explain_match(&vec![1, 1, 2]), [INFO] [stdout] | | ^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 221 | | displays_as(eq(indoc!( [INFO] [stdout] 222 | | " [INFO] [stdout] ... | [INFO] [stdout] 228 | | ))) [INFO] [stdout] 229 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 230 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 3>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:236:32 [INFO] [stdout] | [INFO] [stdout] 235 | / verify_that!( [INFO] [stdout] 236 | | matcher.explain_match(&vec![1, 1, 3]), [INFO] [stdout] | | ^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 237 | | displays_as(eq("which has no element matching the expected element #1")) [INFO] [stdout] 238 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 239 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 3>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:245:32 [INFO] [stdout] | [INFO] [stdout] 244 | / verify_that!( [INFO] [stdout] 245 | | matcher.explain_match(&vec![1, 2, 3]), [INFO] [stdout] | | ^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 246 | | displays_as(eq("whose element #1 does not match any expected elements")) [INFO] [stdout] 247 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 248 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 3>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:319:32 [INFO] [stdout] | [INFO] [stdout] 318 | / verify_that!( [INFO] [stdout] 319 | | matcher.explain_match(&vec![2, 3]), [INFO] [stdout] | | ^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 320 | | displays_as(eq("which has size 2 (expected at least 3)")) [INFO] [stdout] 321 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 322 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 3>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:328:32 [INFO] [stdout] | [INFO] [stdout] 327 | / verify_that!( [INFO] [stdout] 328 | | matcher.explain_match(&vec![1, 2, 3]), [INFO] [stdout] | | ^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 329 | | displays_as(eq("which has no element matching the expected element #2")) [INFO] [stdout] 330 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 331 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 3>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:337:32 [INFO] [stdout] | [INFO] [stdout] 336 | / verify_that!( [INFO] [stdout] 337 | | matcher.explain_match(&vec![0, 1, 2, 3]), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 338 | | displays_as(eq("which has no elements matching the expected elements #2, #3")) [INFO] [stdout] 339 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 340 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 4>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:346:33 [INFO] [stdout] | [INFO] [stdout] 345 | / verify_that!( [INFO] [stdout] 346 | | matcher .explain_match(&vec![1, 2]), [INFO] [stdout] | | ^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 347 | | displays_as(eq(indoc!( [INFO] [stdout] 348 | | " [INFO] [stdout] ... | [INFO] [stdout] 352 | | Expected element `is greater than or equal to 2` at index 1 did not match any remaining actual element.")) [INFO] [stdout] 353 | | )) [INFO] [stdout] | |______- temporary value is freed at the end of this statement [INFO] [stdout] 354 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 2>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:415:32 [INFO] [stdout] | [INFO] [stdout] 414 | / verify_that!( [INFO] [stdout] 415 | | matcher.explain_match(&vec![2, 3, 4]), [INFO] [stdout] | | ^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 416 | | displays_as(eq("which has size 3 (expected at most 2)")) [INFO] [stdout] 417 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 418 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 2>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:424:32 [INFO] [stdout] | [INFO] [stdout] 423 | / verify_that!( [INFO] [stdout] 424 | | matcher.explain_match(&vec![1, 2, 3]), [INFO] [stdout] | | ^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 425 | | displays_as(eq("whose element #0 does not match any expected elements")) [INFO] [stdout] 426 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 427 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 3>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:433:32 [INFO] [stdout] | [INFO] [stdout] 432 | / verify_that!( [INFO] [stdout] 433 | | matcher.explain_match(&vec![0, 1, 2, 3]), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 434 | | displays_as(eq("whose elements #0, #1 do not match any expected elements")) [INFO] [stdout] 435 | | ) [INFO] [stdout] | |_____- temporary value is freed at the end of this statement [INFO] [stdout] 436 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 4>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (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] --> tests/unordered_elements_are_matcher_test.rs:442:32 [INFO] [stdout] | [INFO] [stdout] 441 | / verify_that!( [INFO] [stdout] 442 | | matcher.explain_match(&vec![1, 2]), [INFO] [stdout] | | ^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 443 | | displays_as(eq(indoc!( [INFO] [stdout] 444 | | " [INFO] [stdout] ... | [INFO] [stdout] 448 | | Expected element `is greater than or equal to 3` at index 1 did not match any remaining actual element.")) [INFO] [stdout] 449 | | )) [INFO] [stdout] | |______- temporary value is freed at the end of this statement [INFO] [stdout] 450 | } [INFO] [stdout] | - borrow might be used here, when `matcher` is dropped and runs the destructor for type `UnorderedElementsAreMatcher<'_, &i32, 2>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `googletest` (test "lib") due to 15 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "d70eabbf8a62e16999586ed2b987d14cdc7c6d31f8b298bf263c0735d7a76025", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d70eabbf8a62e16999586ed2b987d14cdc7c6d31f8b298bf263c0735d7a76025", kill_on_drop: false }` [INFO] [stdout] d70eabbf8a62e16999586ed2b987d14cdc7c6d31f8b298bf263c0735d7a76025