[INFO] fetching crate sleigh-rs 0.1.5... [INFO] checking sleigh-rs-0.1.5 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate sleigh-rs 0.1.5 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate sleigh-rs 0.1.5 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate sleigh-rs 0.1.5 [INFO] finished tweaking crates.io crate sleigh-rs 0.1.5 [INFO] tweaked toml for crates.io crate sleigh-rs 0.1.5 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 9 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea3a3aba6be72914a10d2776ebe238a6bce873c0ca67bf7f35c29c1c53459463 [INFO] running `Command { std: "docker" "start" "-a" "ea3a3aba6be72914a10d2776ebe238a6bce873c0ca67bf7f35c29c1c53459463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea3a3aba6be72914a10d2776ebe238a6bce873c0ca67bf7f35c29c1c53459463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea3a3aba6be72914a10d2776ebe238a6bce873c0ca67bf7f35c29c1c53459463", kill_on_drop: false }` [INFO] [stdout] ea3a3aba6be72914a10d2776ebe238a6bce873c0ca67bf7f35c29c1c53459463 [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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73542be073f86a960843981a68ee88b6ff525591d53f1f9c7e459ce409f045a7 [INFO] running `Command { std: "docker" "start" "-a" "73542be073f86a960843981a68ee88b6ff525591d53f1f9c7e459ce409f045a7", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking sleigh-rs v0.1.5 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `sleigh_rs` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/preprocessor/mod.rs [INFO] [stderr] * src/preprocessor/parser.rs [INFO] [stderr] * src/semantic/inner/disassembly.rs [INFO] [stderr] * src/semantic/inner/execution/expr.rs [INFO] [stderr] * src/semantic/inner/pattern/block.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/preprocessor/parser.rs:19:6 [INFO] [stderr] | [INFO] [stderr] 19 | ($parser:expr_2021, $input:expr_2021 $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/preprocessor/parser.rs:19:25 [INFO] [stderr] | [INFO] [stderr] 19 | ($parser:expr_2021, $input:expr_2021 $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::borrow::Borrow` [INFO] [stderr] --> src/preprocessor/parser.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::borrow::Borrow; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/preprocessor/mod.rs:531:55 [INFO] [stderr] | [INFO] [stderr] 531 | fn get_value<'a>(&'a self, ident: &str) -> Option<&Define> { [INFO] [stderr] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/semantic/inner/disassembly.rs:287:5 [INFO] [stderr] | [INFO] [stderr] 287 | / pub fn build( [INFO] [stderr] 288 | | mut self, [INFO] [stderr] 289 | | input: syntax::block::disassembly::Disassembly, [INFO] [stderr] 290 | | ) -> Result<(), DisassemblyError> { [INFO] [stderr] | |_____________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #123748 [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stderr] --> src/semantic/inner/disassembly.rs:298:24 [INFO] [stderr] | [INFO] [stderr] 298 | .collect::>()?; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/semantic/inner/execution/expr.rs:585:5 [INFO] [stderr] | [INFO] [stderr] 585 | / pub fn solve( [INFO] [stderr] 586 | | &mut self, [INFO] [stderr] 587 | | sleigh: &Sleigh, [INFO] [stderr] 588 | | execution: &Execution, [INFO] [stderr] 589 | | solved: &mut impl SolverStatus, [INFO] [stderr] 590 | | ) -> Result<(), ExecutionError> { [INFO] [stderr] | |___________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #123748 [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stderr] --> src/semantic/inner/execution/expr.rs:852:32 [INFO] [stderr] | [INFO] [stderr] 852 | .collect::>()?; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/semantic/inner/pattern/block.rs:874:5 [INFO] [stderr] | [INFO] [stderr] 874 | / pub fn solve( [INFO] [stderr] 875 | | &mut self, [INFO] [stderr] 876 | | sleigh: &Sleigh, [INFO] [stderr] 877 | | solved: &mut T, [INFO] [stderr] 878 | | base: &mut BlockBase, [INFO] [stderr] 879 | | ) -> Result { [INFO] [stderr] | |___________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #123748 [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stderr] --> src/semantic/inner/pattern/block.rs:890:24 [INFO] [stderr] | [INFO] [stderr] 890 | .collect::>()?; [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/preprocessor/parser.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | ($parser:expr, $input:expr $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 19 | ($parser:expr_2021, $input:expr $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/preprocessor/parser.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | ($parser:expr, $input:expr $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 19 | ($parser:expr, $input:expr_2021 $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/preprocessor/mod.rs:531:55 [INFO] [stdout] | [INFO] [stdout] 531 | fn get_value<'a>(&'a self, ident: &str) -> Option<&Define> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: aborting due to 2 previous errors; 5 warnings emitted [INFO] [stdout] warning: unused import: `VarnodeField` [INFO] [stdout] --> src/syntax/define/mod.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::bitrange::{BitRangeDef, VarnodeField}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused import: `ContextField` [INFO] [stdout] --> src/syntax/define/mod.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | pub use self::context::{Context, ContextField, ContextFieldAttribute}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] warning: unused import: `TokenField` [INFO] [stdout] --> src/syntax/define/mod.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | pub use self::token::{Token, TokenField, TokenFieldAttribute}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/semantic/inner/disassembly.rs:287:5 [INFO] [stdout] | [INFO] [stdout] 287 | / pub fn build( [INFO] [stdout] 288 | | mut self, [INFO] [stdout] 289 | | input: syntax::block::disassembly::Disassembly, [INFO] [stdout] 290 | | ) -> Result<(), DisassemblyError> { [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stdout] --> src/semantic/inner/disassembly.rs:298:24 [INFO] [stdout] | [INFO] [stdout] 298 | .collect::>()?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:585:5 [INFO] [stdout] | [INFO] [stdout] 585 | / pub fn solve( [INFO] [stdout] 586 | | &mut self, [INFO] [stdout] 587 | | sleigh: &Sleigh, [INFO] [stdout] 588 | | execution: &Execution, [INFO] [stdout] 589 | | solved: &mut impl SolverStatus, [INFO] [stdout] 590 | | ) -> Result<(), ExecutionError> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:852:32 [INFO] [stdout] | [INFO] [stdout] 852 | .collect::>()?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/semantic/inner/pattern/block.rs:874:5 [INFO] [stdout] | [INFO] [stdout] 874 | / pub fn solve( [INFO] [stdout] 875 | | &mut self, [INFO] [stdout] 876 | | sleigh: &Sleigh, [INFO] [stdout] 877 | | solved: &mut T, [INFO] [stdout] 878 | | base: &mut BlockBase, [INFO] [stdout] 879 | | ) -> Result { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stdout] --> src/semantic/inner/pattern/block.rs:890:24 [INFO] [stdout] | [INFO] [stdout] 890 | .collect::>()?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `macro_location` is never read [INFO] [stdout] --> src/preprocessor/mod.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Define { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | pub macro_location: FileSpan, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Define` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WriteAddr` is never constructed [INFO] [stdout] --> src/semantic/execution.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 245 | pub struct WriteAddr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WriteAddr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `variable_names`, `variables`, and `assertations` are never read [INFO] [stdout] --> src/semantic/inner/disassembly.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct Disassembly { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 305 | pub variable_names: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 306 | pub variables: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 307 | pub assertations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Disassembly` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expect` is never used [INFO] [stdout] --> src/syntax/parser.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait TokenHelper { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 12 | fn location(&self) -> Span; [INFO] [stdout] 13 | fn expect(&self, value: TokenType) -> Result<(), SleighError>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token` is never used [INFO] [stdout] --> src/syntax/parser.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Parser { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 25 | fn token(&mut self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/preprocessor/mod.rs:405:16 [INFO] [stdout] | [INFO] [stdout] 405 | if let Some(x) = self.parse_macro_line() { [INFO] [stdout] | ^^^^^^^^^^^^^^----------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/preprocessor/mod.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 405 ~ match self.parse_macro_line() { Some(x) => { [INFO] [stdout] 406 | return Ok(x); [INFO] [stdout] 407 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/preprocessor/mod.rs:428:27 [INFO] [stdout] | [INFO] [stdout] 428 | } else if let Ok((expansion, location)) = self.nom_it(expansion) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/preprocessor/mod.rs:434:17 [INFO] [stdout] | [INFO] [stdout] 434 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 428 ~ } else { match self.nom_it(expansion) [INFO] [stdout] 429 ~ { Ok((expansion, location)) => { [INFO] [stdout] 430 | return Ok(DrainingFileBody::Expansion( [INFO] [stdout] ... [INFO] [stdout] 433 | )); [INFO] [stdout] 434 ~ } _ => { [INFO] [stdout] 435 | return self [INFO] [stdout] ... [INFO] [stdout] 440 | .map(DrainingFileBody::Token); [INFO] [stdout] 441 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/preprocessor/parser.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 73 | NumberUnsigned::from_str_radix(x.borrow(), 16) [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/mod.rs:243:16 [INFO] [stdout] | [INFO] [stdout] 243 | if let ControlFlow::Break(rec) = [INFO] [stdout] | ________________^ [INFO] [stdout] 244 | | table.pattern_indirect_recursion(&inner, table_id) [INFO] [stdout] | |___________________________________________________-----__________^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/mod.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 243 ~ match table.pattern_indirect_recursion(&inner, table_id) [INFO] [stdout] 244 ~ { ControlFlow::Break(rec) => { [INFO] [stdout] 245 | unimplemented!( [INFO] [stdout] ... [INFO] [stdout] 248 | ); [INFO] [stdout] 249 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Option::::map_or` that must be used [INFO] [stdout] --> src/semantic/inner/execution/builder.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | / current [INFO] [stdout] 59 | | .next [INFO] [stdout] 60 | | .replace(block) [INFO] [stdout] 61 | | .map_or((), |_| panic!("multiple next")); [INFO] [stdout] | |________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the returned value, use `if let` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 58 | let _ = current [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:655:24 [INFO] [stdout] | [INFO] [stdout] 655 | if let Some(input_len) = input_len.get().final_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^---------^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:665:21 [INFO] [stdout] | [INFO] [stdout] 665 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 655 ~ match input_len.get().final_value() { Some(input_len) => { [INFO] [stdout] 656 | modified |= output_len [INFO] [stdout] ... [INFO] [stdout] 664 | .ok_or_else(error)?; [INFO] [stdout] 665 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/semantic/inner/pattern/mod.rs:301:10 [INFO] [stdout] | [INFO] [stdout] 301 | ) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/semantic/inner/pattern/mod.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 299 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 300 | sleigh: &Sleigh, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 301 | ) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | if let Some(export) = export.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 140 ~ match export.as_mut() { Some(export) => { [INFO] [stdout] 141 | //if this table exports, the new constructor need to be [INFO] [stdout] ... [INFO] [stdout] 150 | )?; [INFO] [stdout] 151 ~ } _ => { [INFO] [stdout] 152 | //first constructor will define the table export type [INFO] [stdout] 153 | *export = Some(execution.return_value); [INFO] [stdout] 154 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:180:30 [INFO] [stdout] | [INFO] [stdout] 180 | let mut checked = if let Ok(checked) = [INFO] [stdout] | ______________________________^ [INFO] [stdout] 181 | | self.pattern_recursion_checked.try_borrow_mut() [INFO] [stdout] | |_____________----------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 180 ~ let mut checked = match self.pattern_recursion_checked.try_borrow_mut() [INFO] [stdout] 181 ~ { Ok(checked) => { [INFO] [stdout] 182 | //if this table was already checked, then we don't need to check [INFO] [stdout] ... [INFO] [stdout] 187 | checked [INFO] [stdout] 188 ~ } _ => { [INFO] [stdout] 189 | //unable to lock, this means that we got here though some kind of [INFO] [stdout] 190 | //recursion [INFO] [stdout] 191 | return ControlFlow::Break(vec![me]); [INFO] [stdout] 192 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:313:43 [INFO] [stdout] | [INFO] [stdout] 313 | let new_size: &mut FieldSize = if let Some(export) = [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 314 | | export.as_mut().map(|x| x.size_mut()).flatten() [INFO] [stdout] | |_____________------________________________________________^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 317 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 313 ~ let new_size: &mut FieldSize = match export.as_mut().map(|x| x.size_mut()).flatten() [INFO] [stdout] 314 ~ { Some(export) => { [INFO] [stdout] 315 | export [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | return Ok(()); [INFO] [stdout] 318 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/syntax/parser.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | while let Some(token) = self.parse()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/syntax/parser.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/syntax/block/disassembly.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | let input = if let Ok((input, _span)) = self.value(input) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/syntax/block/disassembly.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 163 ~ let input = match self.value(input) { Ok((input, _span)) => { [INFO] [stdout] 164 | input [INFO] [stdout] 165 ~ } _ => { [INFO] [stdout] 166 | let (input, ()) = self.open_parenthesis(input)?; [INFO] [stdout] ... [INFO] [stdout] 169 | input [INFO] [stdout] 170 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/syntax/block/execution/expr.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | let expr = if let Some(((op, op_src), rest)) = rest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/syntax/block/execution/expr.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 72 ~ let expr = match rest { Some(((op, op_src), rest)) => { [INFO] [stdout] 73 | Self::Op(op_src.clone(), op, Box::new(left), Box::new(rest)) [INFO] [stdout] 74 ~ } _ => { [INFO] [stdout] 75 | left [INFO] [stdout] 76 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `sleigh_rs` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/preprocessor/mod.rs [INFO] [stderr] * src/preprocessor/parser.rs [INFO] [stderr] * src/semantic/inner/disassembly.rs [INFO] [stderr] * src/semantic/inner/execution/expr.rs [INFO] [stderr] * src/semantic/inner/pattern/block.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/preprocessor/parser.rs:19:6 [INFO] [stderr] | [INFO] [stderr] 19 | ($parser:expr_2021, $input:expr_2021 $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/preprocessor/parser.rs:19:25 [INFO] [stderr] | [INFO] [stderr] 19 | ($parser:expr_2021, $input:expr_2021 $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::borrow::Borrow` [INFO] [stderr] --> src/preprocessor/parser.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::borrow::Borrow; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/preprocessor/mod.rs:531:55 [INFO] [stderr] | [INFO] [stderr] 531 | fn get_value<'a>(&'a self, ident: &str) -> Option<&Define> { [INFO] [stderr] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/semantic/inner/disassembly.rs:287:5 [INFO] [stderr] | [INFO] [stderr] 287 | / pub fn build( [INFO] [stderr] 288 | | mut self, [INFO] [stderr] 289 | | input: syntax::block::disassembly::Disassembly, [INFO] [stderr] 290 | | ) -> Result<(), DisassemblyError> { [INFO] [stderr] | |_____________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #123748 [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stderr] --> src/semantic/inner/disassembly.rs:298:24 [INFO] [stderr] | [INFO] [stderr] 298 | .collect::>()?; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/semantic/inner/execution/expr.rs:585:5 [INFO] [stderr] | [INFO] [stderr] 585 | / pub fn solve( [INFO] [stderr] 586 | | &mut self, [INFO] [stderr] 587 | | sleigh: &Sleigh, [INFO] [stderr] 588 | | execution: &Execution, [INFO] [stderr] 589 | | solved: &mut impl SolverStatus, [INFO] [stderr] 590 | | ) -> Result<(), ExecutionError> { [INFO] [stderr] | |___________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #123748 [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stderr] --> src/semantic/inner/execution/expr.rs:852:32 [INFO] [stderr] | [INFO] [stderr] 852 | .collect::>()?; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/semantic/inner/pattern/block.rs:874:5 [INFO] [stderr] | [INFO] [stderr] 874 | / pub fn solve( [INFO] [stderr] 875 | | &mut self, [INFO] [stderr] 876 | | sleigh: &Sleigh, [INFO] [stderr] 877 | | solved: &mut T, [INFO] [stderr] 878 | | base: &mut BlockBase, [INFO] [stderr] 879 | | ) -> Result { [INFO] [stderr] | |___________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/preprocessor/parser.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | ($parser:expr, $input:expr $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 19 | ($parser:expr_2021, $input:expr $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: for more information, see issue #123748 [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/preprocessor/parser.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | ($parser:expr, $input:expr $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 19 | ($parser:expr, $input:expr_2021 $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/semantic/inner/pattern/block.rs:890:24 [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/preprocessor/mod.rs:531:55 [INFO] [stdout] | [INFO] [stdout] 531 | fn get_value<'a>(&'a self, ident: &str) -> Option<&Define> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 890 | .collect::>()?; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 5 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unused import: `VarnodeField` [INFO] [stdout] --> src/syntax/define/mod.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::bitrange::{BitRangeDef, VarnodeField}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ContextField` [INFO] [stdout] --> src/syntax/define/mod.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | pub use self::context::{Context, ContextField, ContextFieldAttribute}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenField` [INFO] [stdout] --> src/syntax/define/mod.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | pub use self::token::{Token, TokenField, TokenFieldAttribute}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/semantic/inner/disassembly.rs:287:5 [INFO] [stdout] | [INFO] [stdout] 287 | / pub fn build( [INFO] [stdout] 288 | | mut self, [INFO] [stdout] 289 | | input: syntax::block::disassembly::Disassembly, [INFO] [stdout] 290 | | ) -> Result<(), DisassemblyError> { [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stdout] --> src/semantic/inner/disassembly.rs:298:24 [INFO] [stdout] | [INFO] [stdout] 298 | .collect::>()?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:585:5 [INFO] [stdout] | [INFO] [stdout] 585 | / pub fn solve( [INFO] [stdout] 586 | | &mut self, [INFO] [stdout] 587 | | sleigh: &Sleigh, [INFO] [stdout] 588 | | execution: &Execution, [INFO] [stdout] 589 | | solved: &mut impl SolverStatus, [INFO] [stdout] 590 | | ) -> Result<(), ExecutionError> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:852:32 [INFO] [stdout] | [INFO] [stdout] 852 | .collect::>()?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/semantic/inner/pattern/block.rs:874:5 [INFO] [stdout] | [INFO] [stdout] 874 | / pub fn solve( [INFO] [stdout] 875 | | &mut self, [INFO] [stdout] 876 | | sleigh: &Sleigh, [INFO] [stdout] 877 | | solved: &mut T, [INFO] [stdout] 878 | | base: &mut BlockBase, [INFO] [stdout] 879 | | ) -> Result { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromIterator<()>` will fail [INFO] [stdout] --> src/semantic/inner/pattern/block.rs:890:24 [INFO] [stdout] | [INFO] [stdout] 890 | .collect::>()?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `macro_location` is never read [INFO] [stdout] --> src/preprocessor/mod.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Define { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | pub macro_location: FileSpan, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Define` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WriteAddr` is never constructed [INFO] [stdout] --> src/semantic/execution.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 245 | pub struct WriteAddr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WriteAddr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `variable_names`, `variables`, and `assertations` are never read [INFO] [stdout] --> src/semantic/inner/disassembly.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct Disassembly { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 305 | pub variable_names: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 306 | pub variables: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 307 | pub assertations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Disassembly` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expect` is never used [INFO] [stdout] --> src/syntax/parser.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait TokenHelper { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 12 | fn location(&self) -> Span; [INFO] [stdout] 13 | fn expect(&self, value: TokenType) -> Result<(), SleighError>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token` is never used [INFO] [stdout] --> src/syntax/parser.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Parser { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 25 | fn token(&mut self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/preprocessor/mod.rs:405:16 [INFO] [stdout] | [INFO] [stdout] 405 | if let Some(x) = self.parse_macro_line() { [INFO] [stdout] | ^^^^^^^^^^^^^^----------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/preprocessor/mod.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 405 ~ match self.parse_macro_line() { Some(x) => { [INFO] [stdout] 406 | return Ok(x); [INFO] [stdout] 407 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/preprocessor/mod.rs:428:27 [INFO] [stdout] | [INFO] [stdout] 428 | } else if let Ok((expansion, location)) = self.nom_it(expansion) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/preprocessor/mod.rs:434:17 [INFO] [stdout] | [INFO] [stdout] 434 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 428 ~ } else { match self.nom_it(expansion) [INFO] [stdout] 429 ~ { Ok((expansion, location)) => { [INFO] [stdout] 430 | return Ok(DrainingFileBody::Expansion( [INFO] [stdout] ... [INFO] [stdout] 433 | )); [INFO] [stdout] 434 ~ } _ => { [INFO] [stdout] 435 | return self [INFO] [stdout] ... [INFO] [stdout] 440 | .map(DrainingFileBody::Token); [INFO] [stdout] 441 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/preprocessor/parser.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 73 | NumberUnsigned::from_str_radix(x.borrow(), 16) [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/mod.rs:243:16 [INFO] [stdout] | [INFO] [stdout] 243 | if let ControlFlow::Break(rec) = [INFO] [stdout] | ________________^ [INFO] [stdout] 244 | | table.pattern_indirect_recursion(&inner, table_id) [INFO] [stdout] | |___________________________________________________-----__________^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/mod.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 243 ~ match table.pattern_indirect_recursion(&inner, table_id) [INFO] [stdout] 244 ~ { ControlFlow::Break(rec) => { [INFO] [stdout] 245 | unimplemented!( [INFO] [stdout] ... [INFO] [stdout] 248 | ); [INFO] [stdout] 249 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Option::::map_or` that must be used [INFO] [stdout] --> src/semantic/inner/execution/builder.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | / current [INFO] [stdout] 59 | | .next [INFO] [stdout] 60 | | .replace(block) [INFO] [stdout] 61 | | .map_or((), |_| panic!("multiple next")); [INFO] [stdout] | |________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the returned value, use `if let` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 58 | let _ = current [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:655:24 [INFO] [stdout] | [INFO] [stdout] 655 | if let Some(input_len) = input_len.get().final_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^---------^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:665:21 [INFO] [stdout] | [INFO] [stdout] 665 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 655 ~ match input_len.get().final_value() { Some(input_len) => { [INFO] [stdout] 656 | modified |= output_len [INFO] [stdout] ... [INFO] [stdout] 664 | .ok_or_else(error)?; [INFO] [stdout] 665 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/semantic/inner/pattern/mod.rs:301:10 [INFO] [stdout] | [INFO] [stdout] 301 | ) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/semantic/inner/pattern/mod.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 299 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 300 | sleigh: &Sleigh, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 301 | ) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | if let Some(export) = export.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 140 ~ match export.as_mut() { Some(export) => { [INFO] [stdout] 141 | //if this table exports, the new constructor need to be [INFO] [stdout] ... [INFO] [stdout] 150 | )?; [INFO] [stdout] 151 ~ } _ => { [INFO] [stdout] 152 | //first constructor will define the table export type [INFO] [stdout] 153 | *export = Some(execution.return_value); [INFO] [stdout] 154 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:180:30 [INFO] [stdout] | [INFO] [stdout] 180 | let mut checked = if let Ok(checked) = [INFO] [stdout] | ______________________________^ [INFO] [stdout] 181 | | self.pattern_recursion_checked.try_borrow_mut() [INFO] [stdout] | |_____________----------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 180 ~ let mut checked = match self.pattern_recursion_checked.try_borrow_mut() [INFO] [stdout] 181 ~ { Ok(checked) => { [INFO] [stdout] 182 | //if this table was already checked, then we don't need to check [INFO] [stdout] ... [INFO] [stdout] 187 | checked [INFO] [stdout] 188 ~ } _ => { [INFO] [stdout] 189 | //unable to lock, this means that we got here though some kind of [INFO] [stdout] 190 | //recursion [INFO] [stdout] 191 | return ControlFlow::Break(vec![me]); [INFO] [stdout] 192 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:313:43 [INFO] [stdout] | [INFO] [stdout] 313 | let new_size: &mut FieldSize = if let Some(export) = [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 314 | | export.as_mut().map(|x| x.size_mut()).flatten() [INFO] [stdout] | |_____________------________________________________________^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantic/inner/table/mod.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 317 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 313 ~ let new_size: &mut FieldSize = match export.as_mut().map(|x| x.size_mut()).flatten() [INFO] [stdout] 314 ~ { Some(export) => { [INFO] [stdout] 315 | export [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | return Ok(()); [INFO] [stdout] 318 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/syntax/parser.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | while let Some(token) = self.parse()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/syntax/parser.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/syntax/block/disassembly.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | let input = if let Ok((input, _span)) = self.value(input) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/syntax/block/disassembly.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 163 ~ let input = match self.value(input) { Ok((input, _span)) => { [INFO] [stdout] 164 | input [INFO] [stdout] 165 ~ } _ => { [INFO] [stdout] 166 | let (input, ()) = self.open_parenthesis(input)?; [INFO] [stdout] ... [INFO] [stdout] 169 | input [INFO] [stdout] 170 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/syntax/block/execution/expr.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | let expr = if let Some(((op, op_src), rest)) = rest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/syntax/block/execution/expr.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 72 ~ let expr = match rest { Some(((op, op_src), rest)) => { [INFO] [stdout] 73 | Self::Op(op_src.clone(), op, Box::new(left), Box::new(rest)) [INFO] [stdout] 74 ~ } _ => { [INFO] [stdout] 75 | left [INFO] [stdout] 76 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.95s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking sleigh-rs v0.1.5 (/tmp/fixit) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/preprocessor/mod.rs:531:55 [INFO] [stdout] | [INFO] [stdout] 531 | fn get_value<'a>(&'a self, ident: &str) -> Option<&Define> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VarnodeField` [INFO] [stdout] --> src/syntax/define/mod.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::bitrange::{BitRangeDef, VarnodeField}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ContextField` [INFO] [stdout] --> src/syntax/define/mod.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | pub use self::context::{Context, ContextField, ContextFieldAttribute}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenField` [INFO] [stdout] --> src/syntax/define/mod.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | pub use self::token::{Token, TokenField, TokenFieldAttribute}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/preprocessor/mod.rs:531:55 [INFO] [stdout] | [INFO] [stdout] 531 | fn get_value<'a>(&'a self, ident: &str) -> Option<&Define> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VarnodeField` [INFO] [stdout] --> src/syntax/define/mod.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::bitrange::{BitRangeDef, VarnodeField}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ContextField` [INFO] [stdout] --> src/syntax/define/mod.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | pub use self::context::{Context, ContextField, ContextFieldAttribute}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenField` [INFO] [stdout] --> src/syntax/define/mod.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | pub use self::token::{Token, TokenField, TokenFieldAttribute}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `!` cannot be built from an iterator over elements of type `()` [INFO] [stdout] --> src/semantic/inner/disassembly.rs:298:24 [INFO] [stdout] | [INFO] [stdout] 298 | .collect::>()?; [INFO] [stdout] | ------- ^^^^^^^^^^^^ value of type `!` cannot be built from `std::iter::Iterator` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator<()>` is not implemented for `!`, which is required by `Result<_, _>: FromIterator>` [INFO] [stdout] = help: the trait `FromIterator>` is implemented for `Result` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] = note: required for `Result` to implement `FromIterator>` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/iter/traits/iterator.rs:1996:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `!` cannot be built from an iterator over elements of type `()` [INFO] [stdout] --> src/semantic/inner/disassembly.rs:298:24 [INFO] [stdout] | [INFO] [stdout] 298 | .collect::>()?; [INFO] [stdout] | ------- ^^^^^^^^^^^^ value of type `!` cannot be built from `std::iter::Iterator` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator<()>` is not implemented for `!`, which is required by `Result<_, _>: FromIterator>` [INFO] [stdout] = help: the trait `FromIterator>` is implemented for `Result` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] = note: required for `Result` to implement `FromIterator>` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/iter/traits/iterator.rs:1996:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `!` cannot be built from an iterator over elements of type `()` [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:852:32 [INFO] [stdout] | [INFO] [stdout] 852 | .collect::>()?; [INFO] [stdout] | ------- ^^^^^^^^^^^^ value of type `!` cannot be built from `std::iter::Iterator` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator<()>` is not implemented for `!`, which is required by `Result<_, _>: FromIterator>` [INFO] [stdout] = help: the trait `FromIterator>` is implemented for `Result` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] = note: required for `Result` to implement `FromIterator>` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/iter/traits/iterator.rs:1996:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `!` cannot be built from an iterator over elements of type `()` [INFO] [stdout] --> src/semantic/inner/execution/expr.rs:852:32 [INFO] [stdout] | [INFO] [stdout] 852 | .collect::>()?; [INFO] [stdout] | ------- ^^^^^^^^^^^^ value of type `!` cannot be built from `std::iter::Iterator` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator<()>` is not implemented for `!`, which is required by `Result<_, _>: FromIterator>` [INFO] [stdout] = help: the trait `FromIterator>` is implemented for `Result` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] = note: required for `Result` to implement `FromIterator>` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/iter/traits/iterator.rs:1996:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `!` cannot be built from an iterator over elements of type `()` [INFO] [stdout] --> src/semantic/inner/pattern/block.rs:890:24 [INFO] [stdout] | [INFO] [stdout] 890 | .collect::>()?; [INFO] [stdout] | ------- ^^^^^^^^^^^^ value of type `!` cannot be built from `std::iter::Iterator` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator<()>` is not implemented for `!`, which is required by `Result<_, _>: FromIterator>` [INFO] [stdout] = help: the trait `FromIterator>` is implemented for `Result` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] = note: required for `Result` to implement `FromIterator>` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/iter/traits/iterator.rs:1996:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `!` cannot be built from an iterator over elements of type `()` [INFO] [stdout] --> src/semantic/inner/pattern/block.rs:890:24 [INFO] [stdout] | [INFO] [stdout] 890 | .collect::>()?; [INFO] [stdout] | ------- ^^^^^^^^^^^^ value of type `!` cannot be built from `std::iter::Iterator` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator<()>` is not implemented for `!`, which is required by `Result<_, _>: FromIterator>` [INFO] [stdout] = help: the trait `FromIterator>` is implemented for `Result` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] = note: required for `Result` to implement `FromIterator>` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/iter/traits/iterator.rs:1996:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `pattern` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/semantic/inner/table/mod.rs:534:27 [INFO] [stdout] | [INFO] [stdout] 531 | pattern [INFO] [stdout] | ------- [INFO] [stdout] | | [INFO] [stdout] | _________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 532 | | .unresolved_token_fields(self) [INFO] [stdout] 533 | | .into_iter() [INFO] [stdout] | |________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 534 | .try_for_each(|(token_field, location)| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 535 | let token_produced = [INFO] [stdout] 536 | pattern.produce_token_field(self, token_field).map_err( [INFO] [stdout] | ------- second borrow occurs due to use of `pattern` in closure [INFO] [stdout] ... [INFO] [stdout] 548 | })?; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `pattern` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/semantic/inner/table/mod.rs:534:27 [INFO] [stdout] | [INFO] [stdout] 531 | pattern [INFO] [stdout] | ------- [INFO] [stdout] | | [INFO] [stdout] | _________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 532 | | .unresolved_token_fields(self) [INFO] [stdout] 533 | | .into_iter() [INFO] [stdout] | |________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 534 | .try_for_each(|(token_field, location)| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 535 | let token_produced = [INFO] [stdout] 536 | pattern.produce_token_field(self, token_field).map_err( [INFO] [stdout] | ------- second borrow occurs due to use of `pattern` in closure [INFO] [stdout] ... [INFO] [stdout] 548 | })?; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sleigh-rs` (lib) due to 5 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sleigh-rs` (lib test) due to 5 previous errors; 4 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "73542be073f86a960843981a68ee88b6ff525591d53f1f9c7e459ce409f045a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73542be073f86a960843981a68ee88b6ff525591d53f1f9c7e459ce409f045a7", kill_on_drop: false }` [INFO] [stdout] 73542be073f86a960843981a68ee88b6ff525591d53f1f9c7e459ce409f045a7