[INFO] cloning repository https://github.com/b-eyselein/rust_ebnf_tester [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/b-eyselein/rust_ebnf_tester" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fb-eyselein%2Frust_ebnf_tester", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fb-eyselein%2Frust_ebnf_tester'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dab4f7441de417e419b49a54bae3874d19b3cc08 [INFO] checking b-eyselein/rust_ebnf_tester/dab4f7441de417e419b49a54bae3874d19b3cc08 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fb-eyselein%2Frust_ebnf_tester" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/b-eyselein/rust_ebnf_tester 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 git repo https://github.com/b-eyselein/rust_ebnf_tester [INFO] finished tweaking git repo https://github.com/b-eyselein/rust_ebnf_tester [INFO] tweaked toml for git repo https://github.com/b-eyselein/rust_ebnf_tester written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/b-eyselein/rust_ebnf_tester 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-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e22332cde6c0e929a5d544ed13d01deeee274dd9393a0493f6061867d42c826 [INFO] running `Command { std: "docker" "start" "-a" "9e22332cde6c0e929a5d544ed13d01deeee274dd9393a0493f6061867d42c826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e22332cde6c0e929a5d544ed13d01deeee274dd9393a0493f6061867d42c826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e22332cde6c0e929a5d544ed13d01deeee274dd9393a0493f6061867d42c826", kill_on_drop: false }` [INFO] [stdout] 9e22332cde6c0e929a5d544ed13d01deeee274dd9393a0493f6061867d42c826 [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 -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] d245f8eba891f0b020650bab8a537f9a08d89819597fc090da7bd74167499142 [INFO] running `Command { std: "docker" "start" "-a" "d245f8eba891f0b020650bab8a537f9a08d89819597fc090da7bd74167499142", kill_on_drop: false }` [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking ebnf_tester v0.1.0 (/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/backus_naur_form.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn optional(sub_element: BackusNaurProduction) -> Self { [INFO] [stdout] | --------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | BackusNaurProduction::Optional(Box::new(sub_element)) [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] 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/extended_backus_naur_form/ebnf_element.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn optional(sub_element: ExtendedBackusNaurProduction) -> Self { [INFO] [stdout] | ----------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 28 | Self::Optional(Box::new(sub_element)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/extended_backus_naur_form/ebnf_element.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn repetition_zero(sub_element: ExtendedBackusNaurProduction) -> Self { [INFO] [stdout] | ----------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 32 | Self::RepetitionZero(Box::new(sub_element)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/extended_backus_naur_form/ebnf_element.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn repetition_one(sub_element: ExtendedBackusNaurProduction) -> Self { [INFO] [stdout] | ----------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 36 | Self::RepetitionOne(Box::new(sub_element)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/extended_backus_naur_form/element_conversion_result.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn simple(output_element: BackusNaurProduction) -> Self { [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | new_rules: Vec::new(), [INFO] [stdout] | ^^^^^^^^^^ [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 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ebnf_tester` (bin "ebnf_tester" test) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variants `Epsilon`, `Terminal`, `Variable`, `Optional`, `Alternative`, and `Sequence` are never constructed [INFO] [stdout] --> src/backus_naur_form.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum BackusNaurProduction { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] 5 | Epsilon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | Terminal(Terminal), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | Variable(Variable), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | Optional(Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | Alternative(Vec), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | Sequence(Vec), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BackusNaurProduction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Cell` is never used [INFO] [stdout] --> src/chomsky_normal_form.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Cell<'a> = HashSet<&'a char>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Row` is never used [INFO] [stdout] --> src/chomsky_normal_form.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type Row<'a> = Vec>; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ChomskyTable` is never used [INFO] [stdout] --> src/chomsky_normal_form.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type ChomskyTable<'a> = Vec>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChomskyGrammar` is never constructed [INFO] [stdout] --> src/chomsky_normal_form.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ChomskyGrammar { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `search_rules_producing_terminal`, `search_rules_producing_sequence`, `build_table`, and `derive` are never used [INFO] [stdout] --> src/chomsky_normal_form.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl ChomskyGrammar { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 17 | /// checks which vars produce c as terminal... [INFO] [stdout] 18 | fn search_rules_producing_terminal(&self, terminal: &char) -> Cell { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn search_rules_producing_sequence(&self, first_var: &char, second_var: &char) -> Cell { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn build_table(&self, word: &[char]) -> ChomskyTable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn derive(&self, word: &[char]) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ChomskyProduction` is never used [INFO] [stdout] --> src/chomsky_production.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ChomskyProduction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `produces_terminal` and `produces_sequence` are never used [INFO] [stdout] --> src/chomsky_production.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ChomskyProduction { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 9 | pub fn produces_terminal(&self, c: &char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn produces_sequence(&self, var1: &char, var2: &char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_child_elements` is never used [INFO] [stdout] --> src/extended_backus_naur_form/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn convert_child_elements(child_elements: &Vec) -> ElementsConversionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_variable` is never used [INFO] [stdout] --> src/extended_backus_naur_form/mod.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn next_variable() -> Variable { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_to_bnf` is never used [INFO] [stdout] --> src/extended_backus_naur_form/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn convert_to_bnf(el: &ExtendedBackusNaurProduction) -> ElementConversionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/extended_backus_naur_form/ebnf_element.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ExtendedBackusNaurProduction { [INFO] [stdout] | ---------------------------- variants in this enum [INFO] [stdout] 7 | Epsilon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | Terminal(Terminal), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | Variable(Variable), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | Optional(Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | RepetitionZero(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | RepetitionOne(Box), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 13 | Alternative(Vec), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | Sequence(Vec), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExtendedBackusNaurProduction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `simple` is never used [INFO] [stdout] --> src/extended_backus_naur_form/element_conversion_result.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ElementConversionResult<'_> { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn simple(output_element: BackusNaurProduction) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `empty` is never used [INFO] [stdout] --> src/extended_backus_naur_form/element_conversion_result.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ElementsConversionResult<'_> { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 35 | pub fn empty() -> Self { [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/extended_backus_naur_form/element_conversion_result.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn simple(output_element: BackusNaurProduction) -> Self { [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | new_rules: Vec::new(), [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] error: aborting due to 1 previous error; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ebnf_tester` (bin "ebnf_tester") due to 2 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d245f8eba891f0b020650bab8a537f9a08d89819597fc090da7bd74167499142", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d245f8eba891f0b020650bab8a537f9a08d89819597fc090da7bd74167499142", kill_on_drop: false }` [INFO] [stdout] d245f8eba891f0b020650bab8a537f9a08d89819597fc090da7bd74167499142