[INFO] cloning repository https://github.com/DKotov29/lssscm-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DKotov29/lssscm-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDKotov29%2Flssscm-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDKotov29%2Flssscm-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5fde901e26af7ec25d2268414fb11d455186ef06 [INFO] checking DKotov29/lssscm-rs/5fde901e26af7ec25d2268414fb11d455186ef06 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDKotov29%2Flssscm-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DKotov29/lssscm-rs 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/DKotov29/lssscm-rs [INFO] finished tweaking git repo https://github.com/DKotov29/lssscm-rs [INFO] tweaked toml for git repo https://github.com/DKotov29/lssscm-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/DKotov29/lssscm-rs 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] a6fb15049e7460a4da00ba00160dd5870952b5f3827a7a4a51af5f8eacf94f99 [INFO] running `Command { std: "docker" "start" "-a" "a6fb15049e7460a4da00ba00160dd5870952b5f3827a7a4a51af5f8eacf94f99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a6fb15049e7460a4da00ba00160dd5870952b5f3827a7a4a51af5f8eacf94f99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6fb15049e7460a4da00ba00160dd5870952b5f3827a7a4a51af5f8eacf94f99", kill_on_drop: false }` [INFO] [stdout] a6fb15049e7460a4da00ba00160dd5870952b5f3827a7a4a51af5f8eacf94f99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 84085402e668be1dea6807c9b1bb72eb1bb1666b3ab68a775b1230fc5429e39d [INFO] running `Command { std: "docker" "start" "-a" "84085402e668be1dea6807c9b1bb72eb1bb1666b3ab68a775b1230fc5429e39d", 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] Checking lssscm-rs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/srom3.rs (2 fixes) [INFO] [stderr] Fixed src/srom4.rs (4 fixes) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `convert_to_vec` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `convert_to_vec` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `convert_to_string` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `convert_to_string` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `char_to_i` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `char_to_i` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/srom4.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / fn add(first: &str, second: &str) -> String { [INFO] [stdout] 27 | | if first.eq("0") { [INFO] [stdout] 28 | | return String::from(second); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 57 | | from_arr_to_string(result) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `add` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / fn add(first: &str, second: &str) -> String { [INFO] [stdout] 27 | | if first.eq("0") { [INFO] [stdout] 28 | | return String::from(second); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 57 | | from_arr_to_string(result) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn mul(a: &str, b: &str) -> String { [INFO] [stdout] 122 | | let mut result = "0".to_string(); [INFO] [stdout] 123 | | let mut bb = from_hex_string_to_arr(b); [INFO] [stdout] 124 | | bb.reverse(); [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `mul` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn mul(a: &str, b: &str) -> String { [INFO] [stdout] 122 | | let mut result = "0".to_string(); [INFO] [stdout] 123 | | let mut bb = from_hex_string_to_arr(b); [INFO] [stdout] 124 | | bb.reverse(); [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] 135 | | let mut a = String::from(a); [INFO] [stdout] 136 | | (0..i).for_each(|_| a.push('0')); [INFO] [stdout] 137 | | a [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `add_right_zero` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] 135 | | let mut a = String::from(a); [INFO] [stdout] 136 | | (0..i).for_each(|_| a.push('0')); [INFO] [stdout] 137 | | a [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/srom4.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | &mul_matrix(&bin_str_to_vec(a.as_str()), &Matrix), [INFO] [stdout] | ^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared 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!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 19 | &mul_matrix(&bin_str_to_vec(a.as_str()), addr_of!(Matrix)), [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `q` is never read [INFO] [stdout] --> src/srom2.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut q = String::new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/srom4.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | for i in 0..233 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_right_zero` is never used [INFO] [stdout] --> src/srom3.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/srom3.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mul(a: &str, b: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEN` is never used [INFO] [stdout] --> src/srom4.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const GEN: [usize; 5] = [233, 9, 4, 1, 0]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_right_zero` is never used [INFO] [stdout] --> src/srom4.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/srom4.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | pub unsafe fn mul(a: &str, b: &str) -> String { unsafe { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Matrix` should have an upper case name [INFO] [stdout] --> src/srom4.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | static mut Matrix: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MATRIX` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/srom4.rs (1 fix) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `convert_to_vec` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `convert_to_vec` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `convert_to_string` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `convert_to_string` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `char_to_i` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `char_to_i` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / fn add(first: &str, second: &str) -> String { [INFO] [stdout] 27 | | if first.eq("0") { [INFO] [stdout] 28 | | return String::from(second); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 57 | | from_arr_to_string(result) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `add` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / fn add(first: &str, second: &str) -> String { [INFO] [stdout] 27 | | if first.eq("0") { [INFO] [stdout] 28 | | return String::from(second); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 57 | | from_arr_to_string(result) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn mul(a: &str, b: &str) -> String { [INFO] [stdout] 122 | | let mut result = "0".to_string(); [INFO] [stdout] 123 | | let mut bb = from_hex_string_to_arr(b); [INFO] [stdout] 124 | | bb.reverse(); [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `mul` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn mul(a: &str, b: &str) -> String { [INFO] [stdout] 122 | | let mut result = "0".to_string(); [INFO] [stdout] 123 | | let mut bb = from_hex_string_to_arr(b); [INFO] [stdout] 124 | | bb.reverse(); [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] 135 | | let mut a = String::from(a); [INFO] [stdout] 136 | | (0..i).for_each(|_| a.push('0')); [INFO] [stdout] 137 | | a [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `add_right_zero` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] 135 | | let mut a = String::from(a); [INFO] [stdout] 136 | | (0..i).for_each(|_| a.push('0')); [INFO] [stdout] 137 | | a [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/srom4.rs:18:54 [INFO] [stdout] | [INFO] [stdout] 18 | &mul_matrix(&bin_str_to_vec(a.as_str()), &Matrix), [INFO] [stdout] | ^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared 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!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 18 | &mul_matrix(&bin_str_to_vec(a.as_str()), addr_of!(Matrix)), [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `q` is never read [INFO] [stdout] --> src/srom2.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut q = String::new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/srom4.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | for i in 0..233 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_right_zero` is never used [INFO] [stdout] --> src/srom3.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEN` is never used [INFO] [stdout] --> src/srom4.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const GEN: [usize; 5] = [233, 9, 4, 1, 0]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_right_zero` is never used [INFO] [stdout] --> src/srom4.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/srom4.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | pub unsafe fn mul(a: &str, b: &str) -> String { unsafe { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Matrix` should have an upper case name [INFO] [stdout] --> src/srom4.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | static mut Matrix: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MATRIX` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking lssscm-rs v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `convert_to_vec` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `convert_to_vec` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `convert_to_string` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `convert_to_string` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `char_to_i` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `char_to_i` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / fn add(first: &str, second: &str) -> String { [INFO] [stdout] 27 | | if first.eq("0") { [INFO] [stdout] 28 | | return String::from(second); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 57 | | from_arr_to_string(result) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `add` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / fn add(first: &str, second: &str) -> String { [INFO] [stdout] 27 | | if first.eq("0") { [INFO] [stdout] 28 | | return String::from(second); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 57 | | from_arr_to_string(result) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn mul(a: &str, b: &str) -> String { [INFO] [stdout] 122 | | let mut result = "0".to_string(); [INFO] [stdout] 123 | | let mut bb = from_hex_string_to_arr(b); [INFO] [stdout] 124 | | bb.reverse(); [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `mul` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn mul(a: &str, b: &str) -> String { [INFO] [stdout] 122 | | let mut result = "0".to_string(); [INFO] [stdout] 123 | | let mut bb = from_hex_string_to_arr(b); [INFO] [stdout] 124 | | bb.reverse(); [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] 135 | | let mut a = String::from(a); [INFO] [stdout] 136 | | (0..i).for_each(|_| a.push('0')); [INFO] [stdout] 137 | | a [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `add_right_zero` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] 135 | | let mut a = String::from(a); [INFO] [stdout] 136 | | (0..i).for_each(|_| a.push('0')); [INFO] [stdout] 137 | | a [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `convert_to_vec` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `convert_to_vec` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `convert_to_string` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `convert_to_string` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ the name `char_to_i` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 16 | pub use srom4::*; [INFO] [stdout] | -------- but the name `char_to_i` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / fn add(first: &str, second: &str) -> String { [INFO] [stdout] 27 | | if first.eq("0") { [INFO] [stdout] 28 | | return String::from(second); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 57 | | from_arr_to_string(result) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `add` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / fn add(first: &str, second: &str) -> String { [INFO] [stdout] 27 | | if first.eq("0") { [INFO] [stdout] 28 | | return String::from(second); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 57 | | from_arr_to_string(result) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn mul(a: &str, b: &str) -> String { [INFO] [stdout] 122 | | let mut result = "0".to_string(); [INFO] [stdout] 123 | | let mut bb = from_hex_string_to_arr(b); [INFO] [stdout] 124 | | bb.reverse(); [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `mul` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn mul(a: &str, b: &str) -> String { [INFO] [stdout] 122 | | let mut result = "0".to_string(); [INFO] [stdout] 123 | | let mut bb = from_hex_string_to_arr(b); [INFO] [stdout] 124 | | bb.reverse(); [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/main.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] 135 | | let mut a = String::from(a); [INFO] [stdout] 136 | | (0..i).for_each(|_| a.push('0')); [INFO] [stdout] 137 | | a [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `add_right_zero` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use srom3::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/main.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / fn add_right_zero(a: &str, i: usize) -> String { [INFO] [stdout] 135 | | let mut a = String::from(a); [INFO] [stdout] 136 | | (0..i).for_each(|_| a.push('0')); [INFO] [stdout] 137 | | a [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/srom4.rs:18:54 [INFO] [stdout] | [INFO] [stdout] 18 | &mul_matrix(&bin_str_to_vec(a.as_str()), &Matrix), [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 18 | &mul_matrix(&bin_str_to_vec(a.as_str()), addr_of!(Matrix)), [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/srom4.rs:18:54 [INFO] [stdout] | [INFO] [stdout] 18 | &mul_matrix(&bin_str_to_vec(a.as_str()), &Matrix), [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 18 | &mul_matrix(&bin_str_to_vec(a.as_str()), addr_of!(Matrix)), [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `q` is never read [INFO] [stdout] --> src/srom2.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut q = String::new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `q` is never read [INFO] [stdout] --> src/srom2.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut q = String::new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/srom4.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | for i in 0..233 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/srom4.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | for i in 0..233 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 8 warnings 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 `lssscm-rs` (bin "lssscm-rs") due to 2 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 8 warnings 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 `lssscm-rs` (bin "lssscm-rs" test) due to 2 previous errors; 8 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "84085402e668be1dea6807c9b1bb72eb1bb1666b3ab68a775b1230fc5429e39d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84085402e668be1dea6807c9b1bb72eb1bb1666b3ab68a775b1230fc5429e39d", kill_on_drop: false }` [INFO] [stdout] 84085402e668be1dea6807c9b1bb72eb1bb1666b3ab68a775b1230fc5429e39d