[INFO] cloning repository https://github.com/AtleSkaanes/cdraw [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AtleSkaanes/cdraw" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtleSkaanes%2Fcdraw", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtleSkaanes%2Fcdraw'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ea68038e8075ebca066b4f986a4a1c4bc738ff79 [INFO] checking AtleSkaanes/cdraw/ea68038e8075ebca066b4f986a4a1c4bc738ff79 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtleSkaanes%2Fcdraw" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AtleSkaanes/cdraw 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/AtleSkaanes/cdraw [INFO] finished tweaking git repo https://github.com/AtleSkaanes/cdraw [INFO] tweaked toml for git repo https://github.com/AtleSkaanes/cdraw written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/AtleSkaanes/cdraw 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 833ca482b8542fc2306ab00364a5989127c8cb98c0a08e49eff402cc2d542fe7 [INFO] running `Command { std: "docker" "start" "-a" "833ca482b8542fc2306ab00364a5989127c8cb98c0a08e49eff402cc2d542fe7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "833ca482b8542fc2306ab00364a5989127c8cb98c0a08e49eff402cc2d542fe7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "833ca482b8542fc2306ab00364a5989127c8cb98c0a08e49eff402cc2d542fe7", kill_on_drop: false }` [INFO] [stdout] 833ca482b8542fc2306ab00364a5989127c8cb98c0a08e49eff402cc2d542fe7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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] cb4ae1abfb5ccbd6670ffc16e7fdef1738d4b415bd49920a227e93711894f665 [INFO] running `Command { std: "docker" "start" "-a" "cb4ae1abfb5ccbd6670ffc16e7fdef1738d4b415bd49920a227e93711894f665", 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 autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking cdraw v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/streamhandler.rs (1 fix) [INFO] [stderr] Fixed src/ui/tool.rs (1 fix) [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/ui/tool.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | unsafe { &mut TOOL } [INFO] [stdout] | ^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 58 | unsafe { addr_of_mut!(TOOL) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/ui/mod.rs:128:58 [INFO] [stdout] | [INFO] [stdout] 128 | fn handle_ui_click(stream: &mut StreamHandler, col: u16, row: u16) -> std::io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_char` is never used [INFO] [stdout] --> src/streamhandler.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl StreamHandler { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_char(&self, layer: usize, col: u16, row: u16) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNDO_LIST_MAX_SIZE` is never used [INFO] [stdout] --> src/ui/data.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const UNDO_LIST_MAX_SIZE: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UNDO_LIST` is never used [INFO] [stdout] --> src/ui/data.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | static mut UNDO_LIST: VecDeque> = VecDeque::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UNDO_PTR` is never used [INFO] [stdout] --> src/ui/data.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | static mut UNDO_PTR: usize = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push_to_undolist` is never used [INFO] [stdout] --> src/ui/data.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn push_to_undolist(stroke: Vec<(u16, u16, char, char)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_prev_undo` is never used [INFO] [stdout] --> src/ui/data.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn get_prev_undo() -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_undo` is never used [INFO] [stdout] --> src/ui/data.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_next_undo() -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `color` is never read [INFO] [stdout] --> src/ui/tool.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Tool { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 6 | pub tool_type: ToolType, [INFO] [stdout] 7 | pub color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tool` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_tool` is never used [INFO] [stdout] --> src/ui/tool.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn set_tool(tool: Tool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_stroke` is never used [INFO] [stdout] --> src/ui/tool.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn add_to_stroke(col: u16, row: u16, from: char, to: char) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/ui/tool.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | unsafe { &mut TOOL } [INFO] [stdout] | ^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 58 | unsafe { addr_of_mut!(TOOL) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/ui/mod.rs:128:58 [INFO] [stdout] | [INFO] [stdout] 128 | fn handle_ui_click(stream: &mut StreamHandler, col: u16, row: u16) -> std::io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_char` is never used [INFO] [stdout] --> src/streamhandler.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl StreamHandler { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_char(&self, layer: usize, col: u16, row: u16) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNDO_LIST_MAX_SIZE` is never used [INFO] [stdout] --> src/ui/data.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const UNDO_LIST_MAX_SIZE: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UNDO_LIST` is never used [INFO] [stdout] --> src/ui/data.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | static mut UNDO_LIST: VecDeque> = VecDeque::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UNDO_PTR` is never used [INFO] [stdout] --> src/ui/data.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | static mut UNDO_PTR: usize = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push_to_undolist` is never used [INFO] [stdout] --> src/ui/data.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn push_to_undolist(stroke: Vec<(u16, u16, char, char)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_prev_undo` is never used [INFO] [stdout] --> src/ui/data.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn get_prev_undo() -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_undo` is never used [INFO] [stdout] --> src/ui/data.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_next_undo() -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `color` is never read [INFO] [stdout] --> src/ui/tool.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Tool { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 6 | pub tool_type: ToolType, [INFO] [stdout] 7 | pub color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tool` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_tool` is never used [INFO] [stdout] --> src/ui/tool.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn set_tool(tool: Tool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_stroke` is never used [INFO] [stdout] --> src/ui/tool.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn add_to_stroke(col: u16, row: u16, from: char, to: char) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.04s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking cdraw v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/ui/tool.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | unsafe { &mut TOOL } [INFO] [stdout] | ^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 58 | unsafe { addr_of_mut!(TOOL) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/ui/tool.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | unsafe { &mut TOOL } [INFO] [stdout] | ^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 58 | unsafe { addr_of_mut!(TOOL) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/ui/mod.rs:128:58 [INFO] [stdout] | [INFO] [stdout] 128 | fn handle_ui_click(stream: &mut StreamHandler, col: u16, row: u16) -> std::io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/ui/mod.rs:128:58 [INFO] [stdout] | [INFO] [stdout] 128 | fn handle_ui_click(stream: &mut StreamHandler, col: u16, row: u16) -> std::io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cdraw` (bin "cdraw") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `cdraw` (bin "cdraw" test) due to 2 previous errors; 1 warning 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" "cb4ae1abfb5ccbd6670ffc16e7fdef1738d4b415bd49920a227e93711894f665", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb4ae1abfb5ccbd6670ffc16e7fdef1738d4b415bd49920a227e93711894f665", kill_on_drop: false }` [INFO] [stdout] cb4ae1abfb5ccbd6670ffc16e7fdef1738d4b415bd49920a227e93711894f665