[INFO] fetching crate cargo-todo 0.2.1...
[INFO] checking cargo-todo-0.2.1 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604
[INFO] extracting crate cargo-todo 0.2.1 into /workspace/builds/worker-5-tc2/source
[INFO] validating manifest of crates.io crate cargo-todo 0.2.1 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate cargo-todo 0.2.1
[INFO] finished tweaking crates.io crate cargo-todo 0.2.1
[INFO] tweaked toml for crates.io crate cargo-todo 0.2.1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] crate crates.io crate cargo-todo 0.2.1 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ec2ce7c6c08e99a61e5abde3d6ac7860b098ee644827089de2a549f3eb6d92d6
[INFO] running `Command { std: "docker" "start" "-a" "ec2ce7c6c08e99a61e5abde3d6ac7860b098ee644827089de2a549f3eb6d92d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ec2ce7c6c08e99a61e5abde3d6ac7860b098ee644827089de2a549f3eb6d92d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ec2ce7c6c08e99a61e5abde3d6ac7860b098ee644827089de2a549f3eb6d92d6", kill_on_drop: false }`
[INFO] [stdout] ec2ce7c6c08e99a61e5abde3d6ac7860b098ee644827089de2a549f3eb6d92d6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fb3a1edc89cad5295486b628598073bf25bd622976ff7f43f3a6a0d142464a71
[INFO] running `Command { std: "docker" "start" "-a" "fb3a1edc89cad5295486b628598073bf25bd622976ff7f43f3a6a0d142464a71", kill_on_drop: false }`
[INFO] [stderr] Compiling libc v0.2.72
[INFO] [stderr] Compiling memchr v2.3.3
[INFO] [stderr] Checking unicode-width v0.1.8
[INFO] [stderr] Checking regex-syntax v0.6.18
[INFO] [stderr] Checking string_format v0.1.0
[INFO] [stderr] Checking glob v0.3.0
[INFO] [stderr] Checking thread_local v1.0.1
[INFO] [stderr] Checking walkdir v2.3.1
[INFO] [stderr] Checking string-parser v0.1.5
[INFO] [stderr] Checking textwrap v0.11.0
[INFO] [stderr] Checking aho-corasick v0.7.13
[INFO] [stderr] Checking atty v0.2.14
[INFO] [stderr] Checking dirs-sys v0.3.5
[INFO] [stderr] Checking time v0.1.43
[INFO] [stderr] Checking clap v2.33.1
[INFO] [stderr] Checking colored v1.9.3
[INFO] [stderr] Checking dirs v2.0.2
[INFO] [stderr] Checking chrono v0.4.13
[INFO] [stderr] Checking regex v1.3.9
[INFO] [stderr] Checking cargo-todo v0.2.1 (/opt/rustwide/workdir)
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/main.rs:153:20
[INFO] [stdout] |
[INFO] [stdout] 140 | fn read_lines
(filename: P) -> io::Result>>
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 141 | where P: AsRef, {
[INFO] [stdout] 142 | let file = match File::open(&filename){
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 143 | Ok(line) => line,
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 146 | let mut f = OpenOptions::new().write(true).read(true).create(true).open(&filename).unwrap();
[INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 153 | Ok(io::BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout] --> src/main.rs:249:25
[INFO] [stdout] |
[INFO] [stdout] 249 | &new_tokens.push(i.clone());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 249 | let _ = &new_tokens.push(i.clone());
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout] --> src/main.rs:267:25
[INFO] [stdout] |
[INFO] [stdout] 267 | &new_tokens.push(i.clone());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout] |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 267 | let _ = &new_tokens.push(i.clone());
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout] --> src/main.rs:281:25
[INFO] [stdout] |
[INFO] [stdout] 281 | &new_tokens.push(i.clone());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout] |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 281 | let _ = &new_tokens.push(i.clone());
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout] --> src/main.rs:299:25
[INFO] [stdout] |
[INFO] [stdout] 299 | &new_tokens.push(i.clone());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout] |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 299 | let _ = &new_tokens.push(i.clone());
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/regex.rs:15:8
[INFO] [stdout] |
[INFO] [stdout] 12 | fn read_lines(filename: P) -> io::Result>>
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 13 | where P: AsRef, {
[INFO] [stdout] 14 | let file = File::open(filename)?;
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 15 | Ok(io::BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/main.rs:153:20
[INFO] [stdout] |
[INFO] [stdout] 140 | fn read_lines(filename: P) -> io::Result>>
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 141 | where P: AsRef, {
[INFO] [stdout] 142 | let file = match File::open(&filename){
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 143 | Ok(line) => line,
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 146 | let mut f = OpenOptions::new().write(true).read(true).create(true).open(&filename).unwrap();
[INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 153 | Ok(io::BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `cargo-todo` (bin "cargo-todo" test) due to 3 previous errors; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout] --> src/main.rs:249:25
[INFO] [stdout] |
[INFO] [stdout] 249 | &new_tokens.push(i.clone());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 249 | let _ = &new_tokens.push(i.clone());
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout] --> src/main.rs:267:25
[INFO] [stdout] |
[INFO] [stdout] 267 | &new_tokens.push(i.clone());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout] |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 267 | let _ = &new_tokens.push(i.clone());
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout] --> src/main.rs:281:25
[INFO] [stdout] |
[INFO] [stdout] 281 | &new_tokens.push(i.clone());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout] |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 281 | let _ = &new_tokens.push(i.clone());
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout] --> src/main.rs:299:25
[INFO] [stdout] |
[INFO] [stdout] 299 | &new_tokens.push(i.clone());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout] |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 299 | let _ = &new_tokens.push(i.clone());
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/regex.rs:15:8
[INFO] [stdout] |
[INFO] [stdout] 12 | fn read_lines(filename: P) -> io::Result>>
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 13 | where P: AsRef, {
[INFO] [stdout] 14 | let file = File::open(filename)?;
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 15 | Ok(io::BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `cargo-todo` (bin "cargo-todo") due to 3 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "fb3a1edc89cad5295486b628598073bf25bd622976ff7f43f3a6a0d142464a71", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fb3a1edc89cad5295486b628598073bf25bd622976ff7f43f3a6a0d142464a71", kill_on_drop: false }`
[INFO] [stdout] fb3a1edc89cad5295486b628598073bf25bd622976ff7f43f3a6a0d142464a71