[INFO] cloning repository https://github.com/bww/resolver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bww/resolver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbww%2Fresolver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbww%2Fresolver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7c852be2fb5257421bcc62dfe8093a4966132010 [INFO] checking bww/resolver/7c852be2fb5257421bcc62dfe8093a4966132010 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbww%2Fresolver" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bww/resolver 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 git repo https://github.com/bww/resolver [INFO] finished tweaking git repo https://github.com/bww/resolver [INFO] tweaked toml for git repo https://github.com/bww/resolver written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bww/resolver 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4050adbc0852af26c3fa77da42dec61bfbdb049c5f0eaf8047a2568fb6f10f2b [INFO] running `Command { std: "docker" "start" "-a" "4050adbc0852af26c3fa77da42dec61bfbdb049c5f0eaf8047a2568fb6f10f2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4050adbc0852af26c3fa77da42dec61bfbdb049c5f0eaf8047a2568fb6f10f2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4050adbc0852af26c3fa77da42dec61bfbdb049c5f0eaf8047a2568fb6f10f2b", kill_on_drop: false }` [INFO] [stdout] 4050adbc0852af26c3fa77da42dec61bfbdb049c5f0eaf8047a2568fb6f10f2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7ddbac9429a09e758d0d23bb6b9281a6e9caf6b5481feb2ce0878e93a50fcc0d [INFO] running `Command { std: "docker" "start" "-a" "7ddbac9429a09e758d0d23bb6b9281a6e9caf6b5481feb2ce0878e93a50fcc0d", 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 libc v0.2.133 [INFO] [stderr] Compiling syn v1.0.100 [INFO] [stderr] Compiling signal-hook v0.3.14 [INFO] [stderr] Checking os_str_bytes v6.3.0 [INFO] [stderr] Checking textwrap v0.15.1 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking parking_lot_core v0.9.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.2.18 [INFO] [stderr] Checking clap v3.2.22 [INFO] [stderr] Checking resolver-notepad v0.3.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `resolver` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/text/mod.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/text/mod.rs:828:6 [INFO] [stderr] | [INFO] [stderr] 828 | ($width: expr_2021, $text: expr_2021, $ex_metrics: expr_2021, $ex_lines: 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/text/mod.rs:828:25 [INFO] [stderr] | [INFO] [stderr] 828 | ($width: expr_2021, $text: expr_2021, $ex_metrics: expr_2021, $ex_lines: 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/text/mod.rs:828:43 [INFO] [stderr] | [INFO] [stderr] 828 | ($width: expr_2021, $text: expr_2021, $ex_metrics: expr_2021, $ex_lines: 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/text/mod.rs:828:67 [INFO] [stderr] | [INFO] [stderr] 828 | ($width: expr_2021, $text: expr_2021, $ex_metrics: expr_2021, $ex_lines: 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: aborting due to 4 previous errors [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: `Stylize` [INFO] [stdout] --> src/editor/writer.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use crossterm::style::{Color, Stylize}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/text/mod.rs:828:14 [INFO] [stdout] | [INFO] [stdout] 828 | ($width: expr, $text: expr, $ex_metrics: expr, $ex_lines: 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] 828 | ($width: expr_2021, $text: expr, $ex_metrics: expr, $ex_lines: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/text/mod.rs:828:27 [INFO] [stdout] | [INFO] [stdout] 828 | ($width: expr, $text: expr, $ex_metrics: expr, $ex_lines: 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] 828 | ($width: expr, $text: expr_2021, $ex_metrics: expr, $ex_lines: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/text/mod.rs:828:46 [INFO] [stdout] | [INFO] [stdout] 828 | ($width: expr, $text: expr, $ex_metrics: expr, $ex_lines: 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] 828 | ($width: expr, $text: expr, $ex_metrics: expr_2021, $ex_lines: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/text/mod.rs:828:63 [INFO] [stdout] | [INFO] [stdout] 828 | ($width: expr, $text: expr, $ex_metrics: expr, $ex_lines: 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] 828 | ($width: expr, $text: expr, $ex_metrics: expr, $ex_lines: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rdl/error.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl IOError { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 12 | pub fn new(msg: &str) -> IOError { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_with_message` is never used [INFO] [stdout] --> src/rdl/error.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 36 | impl AssertionFailed { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn new_with_message(msg: &str) -> AssertionFailed { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RBRACE` is never used [INFO] [stdout] --> src/rdl/scan.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const RBRACE: char = '}'; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLON` is never used [INFO] [stdout] --> src/rdl/scan.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const COLON: char = ':'; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUOTE` is never used [INFO] [stdout] --> src/rdl/scan.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const QUOTE: char = '"'; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COMMA` is never used [INFO] [stdout] --> src/rdl/scan.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const COMMA: char = ','; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `String` is never constructed [INFO] [stdout] --> src/rdl/scan.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum TType { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 33 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_fn`, `expect`, `scan_ident`, `skip_ws`, and `string` are never used [INFO] [stdout] --> src/rdl/scan.rs:158:10 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a> Scanner<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn peek_fn(&mut self, check: impl Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn expect(&mut self, e: char) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 383 | fn scan_ident(&mut self) -> Result<(), error::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 453 | fn skip_ws(&mut self) -> Result<(), error::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 540 | fn string(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `max` and `is_convertable` are never used [INFO] [stdout] --> src/rdl/unit.rs:113:10 [INFO] [stdout] | [INFO] [stdout] 38 | impl Unit { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn max(&self) -> Unit { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_convertable(&self, to: Unit) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `option`, `value`, `unit`, and `is_compatible` are never used [INFO] [stdout] --> src/rdl/unit.rs:177:10 [INFO] [stdout] | [INFO] [stdout] 162 | impl Value { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn option(v: f64, u: Option) -> Value { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn value(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn unit(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn is_compatible(&self, with: Option) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `debug_text` and `debug_text_range` are never used [INFO] [stdout] --> src/text/mod.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 35 | impl Line { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn debug_text<'a>(&self, text: &'a str, idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn debug_text_range<'a>(&self, text: &'a str, rng: ops::Range) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_with_str` and `new_with_string` are never used [INFO] [stdout] --> src/text/mod.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 137 | impl Content { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 138 | pub fn new_with_str(text: &str, width: usize) -> Content { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn new_with_string(text: String, width: usize) -> Content { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/text/mod.rs:340:6 [INFO] [stdout] | [INFO] [stdout] 227 | impl Text { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 340 | fn debug_text_for_index<'a>(&self, idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | fn debug_text_for_range<'a>(&self, rng: ops::Range) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 425 | fn to_rel(&mut self, movement: Movement) -> Pos { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub fn up_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 563 | pub fn left_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 592 | pub fn home_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 612 | pub fn end_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | pub fn delete_rel(&mut self, rng: ops::Range) -> Pos { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `render` is never used [INFO] [stdout] --> src/text/attrs.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 22 | impl Attributes { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn render(&self, text: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `spans`, and `render` are never used [INFO] [stdout] --> src/text/attrs.rs:128:10 [INFO] [stdout] | [INFO] [stdout] 127 | impl Attributed { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 128 | pub fn new() -> Attributed { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn spans<'a>(&'a self) -> &'a Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn render(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Select` is never constructed [INFO] [stdout] --> src/text/action.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Operation { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 15 | Move, [INFO] [stdout] 16 | Select, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | if let event::Event::Key(event) = event::read()? { [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/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | } [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] 46 ~ match event::read()? { event::Event::Key(event) => { [INFO] [stdout] 47 | return Ok(event); [INFO] [stdout] 48 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/rdl/scan.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | if let Some(c) = self.expect_fn(check) { [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/rdl/scan.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | }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] 176 ~ match self.expect_fn(check) { Some(c) => { [INFO] [stdout] 177 | Ok(c) [INFO] [stdout] 178 ~ } _ => { [INFO] [stdout] 179 | Err(error::AssertionFailed::new().into()) [INFO] [stdout] 180 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/util/mod.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | if let Some(a) = a { [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] 4 | Some(a) [INFO] [stdout] 5 | }else if let Some(b) = b { [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/util/mod.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | }else if let Some(b) = b { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/util/mod.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | }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] 3 ~ match a { Some(a) => { [INFO] [stdout] 4 | Some(a) [INFO] [stdout] 5 ~ } _ => { match b { Some(b) => { [INFO] [stdout] 6 | Some(b) [INFO] [stdout] 7 ~ } _ => { [INFO] [stdout] 8 | None [INFO] [stdout] 9 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/util/mod.rs (1 fix) [INFO] [stderr] Fixed src/editor/writer.rs (1 fix) [INFO] [stderr] Fixed src/rdl/parse.rs (2 fixes) [INFO] [stderr] Fixed src/rdl/scan.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rdl/error.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl IOError { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 12 | pub fn new(msg: &str) -> IOError { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_with_message` is never used [INFO] [stdout] --> src/rdl/error.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 36 | impl AssertionFailed { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn new_with_message(msg: &str) -> AssertionFailed { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RBRACE` is never used [INFO] [stdout] --> src/rdl/scan.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const RBRACE: char = '}'; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLON` is never used [INFO] [stdout] --> src/rdl/scan.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const COLON: char = ':'; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUOTE` is never used [INFO] [stdout] --> src/rdl/scan.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const QUOTE: char = '"'; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COMMA` is never used [INFO] [stdout] --> src/rdl/scan.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const COMMA: char = ','; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `String` is never constructed [INFO] [stdout] --> src/rdl/scan.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum TType { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 33 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_fn`, `expect`, `scan_ident`, `skip_ws`, and `string` are never used [INFO] [stdout] --> src/rdl/scan.rs:158:10 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a> Scanner<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn peek_fn(&mut self, check: impl Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn expect(&mut self, e: char) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 383 | fn scan_ident(&mut self) -> Result<(), error::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 453 | fn skip_ws(&mut self) -> Result<(), error::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 540 | fn string(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rdl/exec.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl Context { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 12 | pub fn new() -> Context { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `up`, `min`, `max`, and `is_convertable` are never used [INFO] [stdout] --> src/rdl/unit.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 38 | impl Unit { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn up(&self) -> Option { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn min(&self) -> Unit { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn max(&self) -> Unit { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_convertable(&self, to: Unit) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `option`, `value`, `unit`, `is_compatible`, `base`, and `pack` are never used [INFO] [stdout] --> src/rdl/unit.rs:177:10 [INFO] [stdout] | [INFO] [stdout] 162 | impl Value { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn option(v: f64, u: Option) -> Value { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn value(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn unit(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn is_compatible(&self, with: Option) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn base(&self) -> Value { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | fn pack(&self) -> Value { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `debug_text` and `debug_text_range` are never used [INFO] [stdout] --> src/text/mod.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 35 | impl Line { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn debug_text<'a>(&self, text: &'a str, idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn debug_text_range<'a>(&self, text: &'a str, rng: ops::Range) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_with_str` and `new_with_string` are never used [INFO] [stdout] --> src/text/mod.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 137 | impl Content { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 138 | pub fn new_with_str(text: &str, width: usize) -> Content { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn new_with_string(text: String, width: usize) -> Content { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/text/mod.rs:239:10 [INFO] [stdout] | [INFO] [stdout] 227 | impl Text { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn new_with_str(width: usize, text: &str) -> Text { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn line_with_offset<'a>(&'a self, bix: usize) -> Option<&'a Line> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | fn index_for_offset<'a>(&'a self, bix: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | fn debug_text_for_index<'a>(&self, idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | fn debug_text_for_range<'a>(&self, rng: ops::Range) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn selection(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 369 | pub fn selected_text<'a>(&'a self) -> Option<&'a str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 425 | fn to_rel(&mut self, movement: Movement) -> Pos { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | fn to_abs(&mut self, idx: usize) -> Pos { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub fn up_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 549 | pub fn down_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 563 | pub fn left_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 573 | pub fn right_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 592 | pub fn home_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 612 | pub fn end_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | pub fn delete_rel(&mut self, rng: ops::Range) -> Pos { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 716 | pub fn select_rel(&mut self, rng: Option>, extend: bool) -> Pos { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 727 | pub fn backspace(&mut self, idx: usize) -> Pos { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 738 | pub fn backspace_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Markup` is never constructed [INFO] [stdout] --> src/text/attrs.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Mode { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 10 | Terminal, [INFO] [stdout] 11 | Markup, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `render` is never used [INFO] [stdout] --> src/text/attrs.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 22 | impl Attributes { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn render(&self, text: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `spans`, `render`, and `render_with_mode` are never used [INFO] [stdout] --> src/text/attrs.rs:128:10 [INFO] [stdout] | [INFO] [stdout] 127 | impl Attributed { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 128 | pub fn new() -> Attributed { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn spans<'a>(&'a self) -> &'a Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn render(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | fn render_with_mode(&self, mode: Mode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Select` is never constructed [INFO] [stdout] --> src/text/action.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Operation { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 15 | Move, [INFO] [stdout] 16 | Select, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.04s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking resolver-notepad v0.3.0 (/tmp/fixit) [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/rdl/parse.rs:260:35 [INFO] [stdout] | [INFO] [stdout] 260 | fn exec_node(n: Node, cxt: &mut Context) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/rdl/parse.rs:266:38 [INFO] [stdout] | [INFO] [stdout] 266 | fn exec_line(text: &str, cxt: &mut Context) -> String { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rdl` [INFO] [stdout] --> src/rdl/parse.rs:267:20 [INFO] [stdout] | [INFO] [stdout] 267 | let (_, res) = rdl::render_with_options(cxt, text, 0, 0, None, Some(&rdl::Options{verbose: true, debug: false})); [INFO] [stdout] | ^^^ use of undeclared crate or module `rdl` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rdl` [INFO] [stdout] --> src/rdl/parse.rs:267:74 [INFO] [stdout] | [INFO] [stdout] 267 | let (_, res) = rdl::render_with_options(cxt, text, 0, 0, None, Some(&rdl::Options{verbose: true, debug: false})); [INFO] [stdout] | ^^^ use of undeclared crate or module `rdl` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/rdl/parse.rs:274:19 [INFO] [stdout] | [INFO] [stdout] 274 | let mut cxt = Context::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Context` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/rdl/parse.rs:302:19 [INFO] [stdout] | [INFO] [stdout] 302 | let mut cxt = Context::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Context` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/rdl/parse.rs:322:19 [INFO] [stdout] | [INFO] [stdout] 322 | let mut cxt = Context::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Context` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/rdl/parse.rs:362:19 [INFO] [stdout] | [INFO] [stdout] 362 | let mut cxt = Context::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Context` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/rdl/parse.rs:402:19 [INFO] [stdout] | [INFO] [stdout] 402 | let mut cxt = Context::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Context` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/rdl/parse.rs:418:19 [INFO] [stdout] | [INFO] [stdout] 418 | let mut cxt = Context::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Context` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/rdl/parse.rs:440:19 [INFO] [stdout] | [INFO] [stdout] 440 | let mut cxt = Context::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Context` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/rdl/parse.rs:456:19 [INFO] [stdout] | [INFO] [stdout] 456 | let mut cxt = Context::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Context` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 252 + use crate::rdl::Context; [INFO] [stdout] | [INFO] [stdout] 252 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rdl/error.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl IOError { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 12 | pub fn new(msg: &str) -> IOError { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_with_message` is never used [INFO] [stdout] --> src/rdl/error.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 36 | impl AssertionFailed { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn new_with_message(msg: &str) -> AssertionFailed { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RBRACE` is never used [INFO] [stdout] --> src/rdl/scan.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const RBRACE: char = '}'; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLON` is never used [INFO] [stdout] --> src/rdl/scan.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const COLON: char = ':'; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUOTE` is never used [INFO] [stdout] --> src/rdl/scan.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const QUOTE: char = '"'; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COMMA` is never used [INFO] [stdout] --> src/rdl/scan.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const COMMA: char = ','; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `String` is never constructed [INFO] [stdout] --> src/rdl/scan.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum TType { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 33 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_fn`, `expect`, `scan_ident`, `skip_ws`, and `string` are never used [INFO] [stdout] --> src/rdl/scan.rs:158:10 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a> Scanner<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn peek_fn(&mut self, check: impl Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn expect(&mut self, e: char) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 383 | fn scan_ident(&mut self) -> Result<(), error::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 453 | fn skip_ws(&mut self) -> Result<(), error::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 540 | fn string(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rdl/exec.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl Context { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 12 | pub fn new() -> Context { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `up`, `min`, `max`, and `is_convertable` are never used [INFO] [stdout] --> src/rdl/unit.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 38 | impl Unit { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn up(&self) -> Option { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn min(&self) -> Unit { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn max(&self) -> Unit { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_convertable(&self, to: Unit) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `option`, `value`, `unit`, `is_compatible`, `base`, and `pack` are never used [INFO] [stdout] --> src/rdl/unit.rs:177:10 [INFO] [stdout] | [INFO] [stdout] 162 | impl Value { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn option(v: f64, u: Option) -> Value { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn value(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn unit(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn is_compatible(&self, with: Option) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn base(&self) -> Value { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | fn pack(&self) -> Value { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `debug_text` and `debug_text_range` are never used [INFO] [stdout] --> src/text/mod.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 35 | impl Line { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn debug_text<'a>(&self, text: &'a str, idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn debug_text_range<'a>(&self, text: &'a str, rng: ops::Range) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_with_str` and `new_with_string` are never used [INFO] [stdout] --> src/text/mod.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 137 | impl Content { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 138 | pub fn new_with_str(text: &str, width: usize) -> Content { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn new_with_string(text: String, width: usize) -> Content { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/text/mod.rs:239:10 [INFO] [stdout] | [INFO] [stdout] 227 | impl Text { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn new_with_str(width: usize, text: &str) -> Text { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn line_with_offset<'a>(&'a self, bix: usize) -> Option<&'a Line> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | fn index_for_offset<'a>(&'a self, bix: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | fn debug_text_for_index<'a>(&self, idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | fn debug_text_for_range<'a>(&self, rng: ops::Range) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn selection(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 369 | pub fn selected_text<'a>(&'a self) -> Option<&'a str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 425 | fn to_rel(&mut self, movement: Movement) -> Pos { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | fn to_abs(&mut self, idx: usize) -> Pos { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub fn up_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 549 | pub fn down_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 563 | pub fn left_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 573 | pub fn right_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 592 | pub fn home_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 612 | pub fn end_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | pub fn delete_rel(&mut self, rng: ops::Range) -> Pos { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 716 | pub fn select_rel(&mut self, rng: Option>, extend: bool) -> Pos { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 727 | pub fn backspace(&mut self, idx: usize) -> Pos { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 738 | pub fn backspace_rel(&mut self) -> Pos { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Markup` is never constructed [INFO] [stdout] --> src/text/attrs.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Mode { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 10 | Terminal, [INFO] [stdout] 11 | Markup, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `render` is never used [INFO] [stdout] --> src/text/attrs.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 22 | impl Attributes { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn render(&self, text: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `spans`, `render`, and `render_with_mode` are never used [INFO] [stdout] --> src/text/attrs.rs:128:10 [INFO] [stdout] | [INFO] [stdout] 127 | impl Attributed { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 128 | pub fn new() -> Attributed { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn spans<'a>(&'a self) -> &'a Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn render(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | fn render_with_mode(&self, mode: Mode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Select` is never constructed [INFO] [stdout] --> src/text/action.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Operation { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 15 | Move, [INFO] [stdout] 16 | Select, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `resolver-notepad` (bin "resolver" test) due to 13 previous errors [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" "7ddbac9429a09e758d0d23bb6b9281a6e9caf6b5481feb2ce0878e93a50fcc0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ddbac9429a09e758d0d23bb6b9281a6e9caf6b5481feb2ce0878e93a50fcc0d", kill_on_drop: false }` [INFO] [stdout] 7ddbac9429a09e758d0d23bb6b9281a6e9caf6b5481feb2ce0878e93a50fcc0d