[INFO] cloning repository https://github.com/066d79e2-a987-4610-b895-00fb95b80795/md [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/066d79e2-a987-4610-b895-00fb95b80795/md" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F066d79e2-a987-4610-b895-00fb95b80795%2Fmd", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F066d79e2-a987-4610-b895-00fb95b80795%2Fmd'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f412540c4e2acc27d7553a515edd55c12074744 [INFO] checking 066d79e2-a987-4610-b895-00fb95b80795/md/7f412540c4e2acc27d7553a515edd55c12074744 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F066d79e2-a987-4610-b895-00fb95b80795%2Fmd" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/066d79e2-a987-4610-b895-00fb95b80795/md on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/066d79e2-a987-4610-b895-00fb95b80795/md [INFO] finished tweaking git repo https://github.com/066d79e2-a987-4610-b895-00fb95b80795/md [INFO] tweaked toml for git repo https://github.com/066d79e2-a987-4610-b895-00fb95b80795/md written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/066d79e2-a987-4610-b895-00fb95b80795/md already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f78ee284b99f76a8fc9d99da2cf42f6d3c45c42d14bbc9f669fab0a70b8ea5e6 [INFO] running `Command { std: "docker" "start" "-a" "f78ee284b99f76a8fc9d99da2cf42f6d3c45c42d14bbc9f669fab0a70b8ea5e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f78ee284b99f76a8fc9d99da2cf42f6d3c45c42d14bbc9f669fab0a70b8ea5e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f78ee284b99f76a8fc9d99da2cf42f6d3c45c42d14bbc9f669fab0a70b8ea5e6", kill_on_drop: false }` [INFO] [stdout] f78ee284b99f76a8fc9d99da2cf42f6d3c45c42d14bbc9f669fab0a70b8ea5e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 930affe548e247c1c5f0290fdb4b8db3c8098132f77f2d592c8ba1300edb7c1d [INFO] running `Command { std: "docker" "start" "-a" "930affe548e247c1c5f0290fdb4b8db3c8098132f77f2d592c8ba1300edb7c1d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Checking mio v0.7.7 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking signal-hook v0.1.17 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking crossterm v0.19.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking md v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `MarkdownElement` [INFO] [stdout] --> src/main.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use markdown_parser::{Markdown, MarkdownElement}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::TerminalCanvas` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use terminal::TerminalCanvas; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarkdownElement` [INFO] [stdout] --> src/main.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use markdown_parser::{Markdown, MarkdownElement}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::TerminalCanvas` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use terminal::TerminalCanvas; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `markdown` [INFO] [stdout] --> src/renderer/mod.rs:98:37 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn load_markdown(&mut self, markdown: &Markdown<'a>) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_markdown` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `terminal_events` [INFO] [stdout] --> src/main.rs:15:31 [INFO] [stdout] | [INFO] [stdout] 15 | let (mut terminal_canvas, terminal_events) = terminal::start().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_terminal_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/common.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/common.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Dimensions { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 9 | pub width: usize, [INFO] [stdout] 10 | pub height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dimensions` 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: struct `Keybindings` is never constructed [INFO] [stdout] --> src/keybindings.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Keybindings { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Keybinding` is never constructed [INFO] [stdout] --> src/keybindings.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Keybinding { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Resolved`, `AwaitingNextKey`, and `NoKeybinding` are never constructed [INFO] [stdout] --> src/keybindings.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum KeybindingResoluton<'a, Output> { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 15 | Resolved(&'a Output), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | AwaitingNextKey, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | NoKeybinding, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeybindingResoluton` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resolve_keys` is never used [INFO] [stdout] --> src/keybindings.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Keybindings { [INFO] [stdout] | -------------------------------- method in this implementation [INFO] [stdout] 21 | pub fn resolve_keys(&self, keys: &[Key]) -> KeybindingResoluton { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeybindingsBuilder` is never constructed [INFO] [stdout] --> src/keybindings.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct KeybindingsBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/keybindings.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct KeybindingsBuilderError(String); [INFO] [stdout] | ----------------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `KeybindingsBuilderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_keybinding`, and `build` are never used [INFO] [stdout] --> src/keybindings.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl KeybindingsBuilder { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 60 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn add_keybinding( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn build(self) -> Keybindings { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Small`, `Medium`, and `Large` are never constructed [INFO] [stdout] --> src/markdown_parser.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum HeadingSize { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 24 | Small, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | Medium, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | Large, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `words` and `size` are never read [INFO] [stdout] --> src/markdown_parser.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Heading<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 30 | words: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | size: HeadingSize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Heading` is never constructed [INFO] [stdout] --> src/markdown_parser.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum MarkdownElement<'a> { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 35 | Heading(Heading<'a>), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RendererLine` is never used [INFO] [stdout] --> src/renderer/mod.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum RendererLine<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Renderer` is never constructed [INFO] [stdout] --> src/renderer/mod.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Renderer<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RendererResult` is never used [INFO] [stdout] --> src/renderer/mod.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub type RendererResult = std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load_markdown`, `paint`, `scroll_down`, and `scroll_up` are never used [INFO] [stdout] --> src/renderer/mod.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl<'a> Renderer<'a> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 91 | pub fn new(canvas: TerminalCanvas) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn load_markdown(&mut self, markdown: &Markdown<'a>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn paint(&mut self) -> RendererResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn scroll_down(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 108 | [INFO] [stdout] 109 | pub fn scroll_up(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TerminalEvent` is never used [INFO] [stdout] --> src/terminal.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum TerminalEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `height`, `clear`, `print`, and `flush` are never used [INFO] [stdout] --> src/terminal.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl TerminalCanvas { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn height(&self) -> TerminalResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn clear(&mut self) -> TerminalResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn print(&mut self, pos: &Position, c: char) -> TerminalResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn flush(&mut self) -> TerminalResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_event` is never used [INFO] [stdout] --> src/terminal.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl TerminalEvents { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 146 | pub fn next_event(&self) -> TerminalResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_in_raw_mode` is never used [INFO] [stdout] --> src/terminal.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn start_in_raw_mode() -> TerminalResult<(TerminalCanvas, TerminalEvents)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/terminal.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 27 | fn from(e: ErrorKind) -> Self { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 28 | Self(TerminalErrorKind::Crossterm(e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/terminal.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn from(e: io::Error) -> Self { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | Self(TerminalErrorKind::Io(e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `markdown` [INFO] [stdout] --> src/renderer/mod.rs:98:37 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn load_markdown(&mut self, markdown: &Markdown<'a>) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_markdown` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `terminal_events` [INFO] [stdout] --> src/main.rs:15:31 [INFO] [stdout] | [INFO] [stdout] 15 | let (mut terminal_canvas, terminal_events) = terminal::start().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_terminal_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/common.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/common.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Dimensions { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 9 | pub width: usize, [INFO] [stdout] 10 | pub height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dimensions` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `md` (bin "md") due to 3 previous errors; 24 warnings emitted [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/keybindings.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct KeybindingsBuilderError(String); [INFO] [stdout] | ----------------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `KeybindingsBuilderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variants `Small`, `Medium`, and `Large` are never constructed [INFO] [stdout] --> src/markdown_parser.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum HeadingSize { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 24 | Small, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | Medium, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | Large, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `words` and `size` are never read [INFO] [stdout] --> src/markdown_parser.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Heading<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 30 | words: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | size: HeadingSize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Heading` is never constructed [INFO] [stdout] --> src/markdown_parser.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum MarkdownElement<'a> { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 35 | Heading(Heading<'a>), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RendererLine` is never used [INFO] [stdout] --> src/renderer/mod.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum RendererLine<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Renderer` is never constructed [INFO] [stdout] --> src/renderer/mod.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Renderer<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RendererResult` is never used [INFO] [stdout] --> src/renderer/mod.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub type RendererResult = std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load_markdown`, `paint`, `scroll_down`, and `scroll_up` are never used [INFO] [stdout] --> src/renderer/mod.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl<'a> Renderer<'a> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 91 | pub fn new(canvas: TerminalCanvas) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn load_markdown(&mut self, markdown: &Markdown<'a>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn paint(&mut self) -> RendererResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn scroll_down(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 108 | [INFO] [stdout] 109 | pub fn scroll_up(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TerminalEvent` is never used [INFO] [stdout] --> src/terminal.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum TerminalEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `height`, `clear`, `print`, and `flush` are never used [INFO] [stdout] --> src/terminal.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl TerminalCanvas { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn height(&self) -> TerminalResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn clear(&mut self) -> TerminalResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn print(&mut self, pos: &Position, c: char) -> TerminalResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn flush(&mut self) -> TerminalResult<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_event` is never used [INFO] [stdout] --> src/terminal.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl TerminalEvents { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 146 | pub fn next_event(&self) -> TerminalResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_in_raw_mode` is never used [INFO] [stdout] --> src/terminal.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn start_in_raw_mode() -> TerminalResult<(TerminalCanvas, TerminalEvents)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/keybindings.rs:151:46 [INFO] [stdout] | [INFO] [stdout] 151 | .add_keybinding(&keys, output.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TestKeybindingOutput` does not implement `Clone`, so calling `clone` on `&TestKeybindingOutput` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 151 - .add_keybinding(&keys, output.clone()) [INFO] [stdout] 151 + .add_keybinding(&keys, output) [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TestKeybindingOutput`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 102 + #[derive(Clone)] [INFO] [stdout] 103 | enum TestKeybindingOutput { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/renderer/layout.rs:239:40 [INFO] [stdout] | [INFO] [stdout] 239 | ... panic!(format!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 240 | | ... "Found a 0-length whitespace, see debug output (screen width {})", [INFO] [stdout] 241 | | ... screen_width [INFO] [stdout] 242 | | ... )); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 239 ~ panic!( [INFO] [stdout] 240 | "Found a 0-length whitespace, see debug output (screen width {})", [INFO] [stdout] 241 | screen_width [INFO] [stdout] 242 ~ ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/renderer/layout.rs:250:28 [INFO] [stdout] | [INFO] [stdout] 250 | panic!(format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 251 | | "Line width not equal to screen width ({}), see debug output", [INFO] [stdout] 252 | | screen_width [INFO] [stdout] 253 | | )); [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 250 ~ panic!( [INFO] [stdout] 251 | "Line width not equal to screen width ({}), see debug output", [INFO] [stdout] 252 | screen_width [INFO] [stdout] 253 ~ ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/terminal.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 27 | fn from(e: ErrorKind) -> Self { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 28 | Self(TerminalErrorKind::Crossterm(e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/terminal.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn from(e: io::Error) -> Self { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | Self(TerminalErrorKind::Io(e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `md` (bin "md" test) due to 3 previous errors; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "930affe548e247c1c5f0290fdb4b8db3c8098132f77f2d592c8ba1300edb7c1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "930affe548e247c1c5f0290fdb4b8db3c8098132f77f2d592c8ba1300edb7c1d", kill_on_drop: false }` [INFO] [stdout] 930affe548e247c1c5f0290fdb4b8db3c8098132f77f2d592c8ba1300edb7c1d