[INFO] cloning repository https://github.com/VincentPT/rust-calculator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VincentPT/rust-calculator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVincentPT%2Frust-calculator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVincentPT%2Frust-calculator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fc217999e622eb5ccb7997c6484c0c2784117275 [INFO] checking VincentPT/rust-calculator/fc217999e622eb5ccb7997c6484c0c2784117275 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%2FVincentPT%2Frust-calculator" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VincentPT/rust-calculator 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/VincentPT/rust-calculator [INFO] finished tweaking git repo https://github.com/VincentPT/rust-calculator [INFO] tweaked toml for git repo https://github.com/VincentPT/rust-calculator written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/VincentPT/rust-calculator 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 2ea9a4d0d19a08685d193b4514ce8b1cee2a0d6825d73dee64db876a12d5dae2 [INFO] running `Command { std: "docker" "start" "-a" "2ea9a4d0d19a08685d193b4514ce8b1cee2a0d6825d73dee64db876a12d5dae2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ea9a4d0d19a08685d193b4514ce8b1cee2a0d6825d73dee64db876a12d5dae2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ea9a4d0d19a08685d193b4514ce8b1cee2a0d6825d73dee64db876a12d5dae2", kill_on_drop: false }` [INFO] [stdout] 2ea9a4d0d19a08685d193b4514ce8b1cee2a0d6825d73dee64db876a12d5dae2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 322b545b57c69f8ac01688b3b0c8f10660a968ec92b46eb01e69feca80aa3c6d [INFO] running `Command { std: "docker" "start" "-a" "322b545b57c69f8ac01688b3b0c8f10660a968ec92b46eb01e69feca80aa3c6d", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling target-lexicon v0.12.14 [INFO] [stderr] Compiling winnow v0.6.5 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling anyhow v1.0.80 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Compiling cfg-expr v0.15.7 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling indexmap v2.2.5 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling gio v0.16.7 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking unic-ucd-bidi v0.9.0 [INFO] [stderr] Checking kurbo v0.9.5 [INFO] [stderr] Checking unic-bidi v0.9.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling gtk v0.16.2 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking xi-unicode v0.3.0 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Compiling field-offset v0.3.6 [INFO] [stderr] Checking type-map v0.4.0 [INFO] [stderr] Checking piet v0.6.2 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling serde_spanned v0.6.5 [INFO] [stderr] Compiling druid-shell v0.8.3 [INFO] [stderr] Checking self_cell v1.0.3 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking self_cell v0.10.3 [INFO] [stderr] Compiling toml_edit v0.22.6 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking keyboard-types v0.6.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking time v0.3.34 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling toml v0.8.10 [INFO] [stderr] Compiling system-deps v6.2.0 [INFO] [stderr] Compiling druid-derive v0.5.1 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Compiling glib-macros v0.16.8 [INFO] [stderr] Compiling gtk3-macros v0.16.3 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling glib-sys v0.16.3 [INFO] [stderr] Compiling gobject-sys v0.16.3 [INFO] [stderr] Compiling gio-sys v0.16.3 [INFO] [stderr] Compiling cairo-sys-rs v0.16.3 [INFO] [stderr] Compiling pango-sys v0.16.3 [INFO] [stderr] Compiling atk-sys v0.16.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling gdk-sys v0.16.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.16.3 [INFO] [stderr] Checking tinystr v0.7.5 [INFO] [stderr] Compiling gtk-sys v0.16.0 [INFO] [stderr] Compiling pangocairo-sys v0.16.3 [INFO] [stderr] Checking unic-langid-impl v0.9.4 [INFO] [stderr] Checking fluent-syntax v0.11.0 [INFO] [stderr] Checking unic-langid v0.9.4 [INFO] [stderr] Checking intl_pluralrules v7.0.2 [INFO] [stderr] Checking fluent-langneg v0.13.0 [INFO] [stderr] Checking intl-memoizer v0.5.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking fluent-bundle v0.15.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking glib v0.16.9 [INFO] [stderr] Checking cairo-rs v0.16.7 [INFO] [stderr] Checking atk v0.16.0 [INFO] [stderr] Checking pango v0.16.5 [INFO] [stderr] Checking gdk-pixbuf v0.16.7 [INFO] [stderr] Checking pangocairo v0.16.3 [INFO] [stderr] Checking gdk v0.16.2 [INFO] [stderr] Checking piet-cairo v0.6.2 [INFO] [stderr] Checking piet-common v0.6.2 [INFO] [stderr] Checking druid v0.8.3 [INFO] [stderr] Checking rust-caculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `ID_MOD` is never used [INFO] [stdout] --> src/calc/functions.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const ID_MOD: FunctionId = 4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_POW` is never used [INFO] [stdout] --> src/calc/functions.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const ID_POW: FunctionId = 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_ABS` is never used [INFO] [stdout] --> src/calc/functions.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const ID_ABS: FunctionId = 7; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_NEG` is never used [INFO] [stdout] --> src/calc/functions.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const ID_NEG: FunctionId = 8; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_LN` is never used [INFO] [stdout] --> src/calc/functions.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const ID_LN: FunctionId = 12; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRIODITY_USER_FUNCTION` is never used [INFO] [stdout] --> src/calc/functions.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const PRIODITY_USER_FUNCTION: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `op_size` is never used [INFO] [stdout] --> src/calc/evaluator.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Evaluator { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn op_size(&self) -> usize { [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/main.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 75 | let painter = Painter::new(|ctx, _, env| { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 89 | / Label::new(label) [INFO] [stdout] 90 | | .with_text_size(24.) [INFO] [stdout] 91 | | .center() [INFO] [stdout] 92 | | .background(painter) [INFO] [stdout] 93 | | .expand() [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/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 102 | let painter = Painter::new(|ctx, _, env| { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 127 | / Label::new(label_str) [INFO] [stdout] 128 | | .with_text_size(24.) [INFO] [stdout] 129 | | .center() [INFO] [stdout] 130 | | .background(painter) [INFO] [stdout] 131 | | .expand() [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/main.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 136 | let painter = Painter::new(|ctx, _, env| { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 150 | / Label::new(digit.to_string()) [INFO] [stdout] 151 | | .with_text_size(24.) [INFO] [stdout] 152 | | .center() [INFO] [stdout] 153 | | .background(painter) [INFO] [stdout] 154 | | .expand() [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/main.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 159 | w1: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 160 | w2: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 161 | w3: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 162 | w4: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 163 | w5: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 164 | ) -> impl Widget { [INFO] [stdout] 165 | / Flex::row() [INFO] [stdout] 166 | | .with_flex_child(w1, 1.0) [INFO] [stdout] 167 | | .with_spacer(1.0) [INFO] [stdout] 168 | | .with_flex_child(w2, 1.0) [INFO] [stdout] ... | [INFO] [stdout] 172 | | .with_flex_child(w4, 1.0) [INFO] [stdout] 173 | | .with_spacer(1.0) [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/main.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 178 | let lb_history = Label::new(|data: &String, _env: &_| data.clone()) [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 182 | let lb_result = Label::new(|data: &String, _env: &_| data.clone()) [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 186 | / Flex::column() [INFO] [stdout] 187 | | .with_flex_spacer(0.2) [INFO] [stdout] 188 | | .with_child(lb_history) [INFO] [stdout] 189 | | .with_flex_spacer(0.2) [INFO] [stdout] ... | [INFO] [stdout] 246 | | ) [INFO] [stdout] 247 | | .with_spacer(1.0) [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/main.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 178 | let lb_history = Label::new(|data: &String, _env: &_| data.clone()) [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 182 | let lb_result = Label::new(|data: &String, _env: &_| data.clone()) [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 249 | / flex_row( [INFO] [stdout] 250 | | digit_button('0'), [INFO] [stdout] 251 | | op_button_label(".".to_string()), [INFO] [stdout] 252 | | op_button_label("√".to_string()), [INFO] [stdout] 253 | | op_button_label_id("x²".to_string(), "²".to_string()), [INFO] [stdout] 254 | | op_feature(Feature::Eval), [INFO] [stdout] 255 | | ), [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/calc/context.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn scope_current(context:& RefCell, scope: F) -> T [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 27 | where F: FnOnce(&RefCell) -> T { [INFO] [stdout] 28 | CURRENT_CONTEXT.with(|c| { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 29 | | c.swap(context); [INFO] [stdout] 30 | | [INFO] [stdout] 31 | | let t = scope(c); [INFO] [stdout] ... | [INFO] [stdout] 35 | | t [INFO] [stdout] 36 | | }) [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 7 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-caculator` (bin "rust-caculator") due to 8 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: constant `ID_MOD` is never used [INFO] [stdout] --> src/calc/functions.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const ID_MOD: FunctionId = 4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_POW` is never used [INFO] [stdout] --> src/calc/functions.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const ID_POW: FunctionId = 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_ABS` is never used [INFO] [stdout] --> src/calc/functions.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const ID_ABS: FunctionId = 7; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_NEG` is never used [INFO] [stdout] --> src/calc/functions.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const ID_NEG: FunctionId = 8; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_LN` is never used [INFO] [stdout] --> src/calc/functions.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const ID_LN: FunctionId = 12; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRIODITY_USER_FUNCTION` is never used [INFO] [stdout] --> src/calc/functions.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const PRIODITY_USER_FUNCTION: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `op_size` is never used [INFO] [stdout] --> src/calc/evaluator.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Evaluator { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn op_size(&self) -> usize { [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/main.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 75 | let painter = Painter::new(|ctx, _, env| { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 89 | / Label::new(label) [INFO] [stdout] 90 | | .with_text_size(24.) [INFO] [stdout] 91 | | .center() [INFO] [stdout] 92 | | .background(painter) [INFO] [stdout] 93 | | .expand() [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/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 102 | let painter = Painter::new(|ctx, _, env| { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 127 | / Label::new(label_str) [INFO] [stdout] 128 | | .with_text_size(24.) [INFO] [stdout] 129 | | .center() [INFO] [stdout] 130 | | .background(painter) [INFO] [stdout] 131 | | .expand() [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/main.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 136 | let painter = Painter::new(|ctx, _, env| { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 150 | / Label::new(digit.to_string()) [INFO] [stdout] 151 | | .with_text_size(24.) [INFO] [stdout] 152 | | .center() [INFO] [stdout] 153 | | .background(painter) [INFO] [stdout] 154 | | .expand() [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/main.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 159 | w1: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 160 | w2: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 161 | w3: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 162 | w4: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 163 | w5: impl Widget + 'static, [INFO] [stdout] | ---------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 164 | ) -> impl Widget { [INFO] [stdout] 165 | / Flex::row() [INFO] [stdout] 166 | | .with_flex_child(w1, 1.0) [INFO] [stdout] 167 | | .with_spacer(1.0) [INFO] [stdout] 168 | | .with_flex_child(w2, 1.0) [INFO] [stdout] ... | [INFO] [stdout] 172 | | .with_flex_child(w4, 1.0) [INFO] [stdout] 173 | | .with_spacer(1.0) [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/main.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 178 | let lb_history = Label::new(|data: &String, _env: &_| data.clone()) [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 182 | let lb_result = Label::new(|data: &String, _env: &_| data.clone()) [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 186 | / Flex::column() [INFO] [stdout] 187 | | .with_flex_spacer(0.2) [INFO] [stdout] 188 | | .with_child(lb_history) [INFO] [stdout] 189 | | .with_flex_spacer(0.2) [INFO] [stdout] ... | [INFO] [stdout] 246 | | ) [INFO] [stdout] 247 | | .with_spacer(1.0) [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/main.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 178 | let lb_history = Label::new(|data: &String, _env: &_| data.clone()) [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 182 | let lb_result = Label::new(|data: &String, _env: &_| data.clone()) [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 249 | / flex_row( [INFO] [stdout] 250 | | digit_button('0'), [INFO] [stdout] 251 | | op_button_label(".".to_string()), [INFO] [stdout] 252 | | op_button_label("√".to_string()), [INFO] [stdout] 253 | | op_button_label_id("x²".to_string(), "²".to_string()), [INFO] [stdout] 254 | | op_feature(Feature::Eval), [INFO] [stdout] 255 | | ), [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/calc/context.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn scope_current(context:& RefCell, scope: F) -> T [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 27 | where F: FnOnce(&RefCell) -> T { [INFO] [stdout] 28 | CURRENT_CONTEXT.with(|c| { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 29 | | c.swap(context); [INFO] [stdout] 30 | | [INFO] [stdout] 31 | | let t = scope(c); [INFO] [stdout] ... | [INFO] [stdout] 35 | | t [INFO] [stdout] 36 | | }) [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 7 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-caculator` (bin "rust-caculator" test) due to 8 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "322b545b57c69f8ac01688b3b0c8f10660a968ec92b46eb01e69feca80aa3c6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "322b545b57c69f8ac01688b3b0c8f10660a968ec92b46eb01e69feca80aa3c6d", kill_on_drop: false }` [INFO] [stdout] 322b545b57c69f8ac01688b3b0c8f10660a968ec92b46eb01e69feca80aa3c6d