[INFO] fetching crate aolifu-rust 0.1.0... [INFO] checking aolifu-rust-0.1.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate aolifu-rust 0.1.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate aolifu-rust 0.1.0 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 aolifu-rust 0.1.0 [INFO] finished tweaking crates.io crate aolifu-rust 0.1.0 [INFO] tweaked toml for crates.io crate aolifu-rust 0.1.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate crates.io crate aolifu-rust 0.1.0 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 777cc37d80482d5d636c19d595b1eaad8bb6ee5221af56ccbd0205989e332e6c [INFO] running `Command { std: "docker" "start" "-a" "777cc37d80482d5d636c19d595b1eaad8bb6ee5221af56ccbd0205989e332e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "777cc37d80482d5d636c19d595b1eaad8bb6ee5221af56ccbd0205989e332e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "777cc37d80482d5d636c19d595b1eaad8bb6ee5221af56ccbd0205989e332e6c", kill_on_drop: false }` [INFO] [stdout] 777cc37d80482d5d636c19d595b1eaad8bb6ee5221af56ccbd0205989e332e6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] ef1df7ad51cce037bd46953fe73d34a6c72b4b9caf79f0f7bdde4666ef4e54ab [INFO] running `Command { std: "docker" "start" "-a" "ef1df7ad51cce037bd46953fe73d34a6c72b4b9caf79f0f7bdde4666ef4e54ab", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking aolifu-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::arch::x86_64::_bittest` [INFO] [stdout] --> src/trait_mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::arch::x86_64::_bittest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/trait_mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::arch::x86_64::_bittest` [INFO] [stdout] --> src/trait_mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::arch::x86_64::_bittest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/trait_mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/collection/vector.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let v = vec![ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panic.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panic.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panic.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let f = File::open("hello.txt").unwrap_or_else( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/trait_mod.rs:66:66 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn notify_five(a: T, b: U) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/trait_mod.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn notify_six(a: T, b: U) -> String [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/closure.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let s = example_closure(String::from("hello")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | fn seat_at_table(){} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn take_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | fn serve_order(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/lib.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | fn take_payment(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/collection/vector.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/collection/vector.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/collection/vector.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_append` is never used [INFO] [stdout] --> src/string.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn string_append() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_deep_clone` is never used [INFO] [stdout] --> src/string.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn string_deep_clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> src/generic.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generic.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Color { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 11 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x2` is never used [INFO] [stdout] --> src/generic.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Color { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 17 | fn x2(&self) -> &i32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Option` is never used [INFO] [stdout] --> src/generic.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Result` is never used [INFO] [stdout] --> src/generic.rs:54:6 [INFO] [stdout] | [INFO] [stdout] 54 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/trait_mod.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `New` is never used [INFO] [stdout] --> src/trait_mod.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 92 | impl Pair{ [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 93 | fn New(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/trait_mod.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 102 | impl Pair { [INFO] [stdout] | -------------------------------------- method in this implementation [INFO] [stdout] 103 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/lifecycle.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/iterator.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_my_size` is never used [INFO] [stdout] --> src/iterator.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/iterator.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | struct Counter{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `New` is never used [INFO] [stdout] --> src/iterator.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 77 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 78 | fn New() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `colorMap` should have a snake case name [INFO] [stdout] --> src/collection/hashmap.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let colorMap: HashMap<_, _> = colors.iter().zip(nums.iter()).collect(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `color_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [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/panic.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 48 | let f = File::open("hello.txt"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let mut f = match f { [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | Ok(file) => file, [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 51 | Err(e) => return Err(e), [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 56 | match f.read_to_string(&mut s) { [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: method `New` should have a snake case name [INFO] [stdout] --> src/guess_number.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn New(value: i32) -> Guess { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/generic.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Name: T, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Type` should have a snake case name [INFO] [stdout] --> src/generic.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Type: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 7 | r#type: T, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/generic.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Name: T, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Type` should have a snake case name [INFO] [stdout] --> src/generic.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Type: U, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 24 | r#type: U, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/trait_mod.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | fn New(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/collection/vector.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let v = vec![ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fileName` should have a snake case name [INFO] [stdout] --> src/command.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | fileName: String, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/command.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn New(args: &[String]) -> Result { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/command.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let fileName = args[2].clone(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New_two` should have a snake case name [INFO] [stdout] --> src/command.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn New_two(mut args: std::env::Args) -> Result { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/command.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let fileName = match args.next(){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/closure.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn New(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/iterator.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | fn New() -> Counter { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panic.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panic.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panic.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let f = File::open("hello.txt").unwrap_or_else( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aolifu-rust` (lib) due to 2 previous errors; 45 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/trait_mod.rs:66:66 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn notify_five(a: T, b: U) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/trait_mod.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn notify_six(a: T, b: U) -> String [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/closure.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let s = example_closure(String::from("hello")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | fn seat_at_table(){} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn take_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | fn serve_order(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/lib.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | fn take_payment(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/collection/vector.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/collection/vector.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/collection/vector.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_append` is never used [INFO] [stdout] --> src/string.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn string_append() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_deep_clone` is never used [INFO] [stdout] --> src/string.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn string_deep_clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> src/generic.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generic.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Color { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 11 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x2` is never used [INFO] [stdout] --> src/generic.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Color { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 17 | fn x2(&self) -> &i32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Option` is never used [INFO] [stdout] --> src/generic.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Result` is never used [INFO] [stdout] --> src/generic.rs:54:6 [INFO] [stdout] | [INFO] [stdout] 54 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/trait_mod.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `New` is never used [INFO] [stdout] --> src/trait_mod.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 92 | impl Pair{ [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 93 | fn New(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/trait_mod.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 102 | impl Pair { [INFO] [stdout] | -------------------------------------- method in this implementation [INFO] [stdout] 103 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `colorMap` should have a snake case name [INFO] [stdout] --> src/collection/hashmap.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let colorMap: HashMap<_, _> = colors.iter().zip(nums.iter()).collect(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `color_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [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/panic.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 48 | let f = File::open("hello.txt"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let mut f = match f { [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | Ok(file) => file, [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 51 | Err(e) => return Err(e), [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 56 | match f.read_to_string(&mut s) { [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: method `New` should have a snake case name [INFO] [stdout] --> src/guess_number.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn New(value: i32) -> Guess { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/generic.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Name: T, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Type` should have a snake case name [INFO] [stdout] --> src/generic.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Type: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 7 | r#type: T, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/generic.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Name: T, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Type` should have a snake case name [INFO] [stdout] --> src/generic.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Type: U, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 24 | r#type: U, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/trait_mod.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | fn New(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fileName` should have a snake case name [INFO] [stdout] --> src/command.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | fileName: String, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/command.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn New(args: &[String]) -> Result { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/command.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let fileName = args[2].clone(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New_two` should have a snake case name [INFO] [stdout] --> src/command.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn New_two(mut args: std::env::Args) -> Result { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileName` should have a snake case name [INFO] [stdout] --> src/command.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let fileName = match args.next(){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/closure.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn New(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `New` should have a snake case name [INFO] [stdout] --> src/iterator.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | fn New() -> Counter { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aolifu-rust` (lib test) due to 2 previous errors; 40 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ef1df7ad51cce037bd46953fe73d34a6c72b4b9caf79f0f7bdde4666ef4e54ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef1df7ad51cce037bd46953fe73d34a6c72b4b9caf79f0f7bdde4666ef4e54ab", kill_on_drop: false }` [INFO] [stdout] ef1df7ad51cce037bd46953fe73d34a6c72b4b9caf79f0f7bdde4666ef4e54ab