[INFO] cloning repository https://github.com/Unchain68/Blockchain_rust_rocket [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Unchain68/Blockchain_rust_rocket" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnchain68%2FBlockchain_rust_rocket", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnchain68%2FBlockchain_rust_rocket'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c669d1547e627a6308f5b4cfae2aad77dbe46fde [INFO] checking Unchain68/Blockchain_rust_rocket/c669d1547e627a6308f5b4cfae2aad77dbe46fde against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnchain68%2FBlockchain_rust_rocket" "/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/Unchain68/Blockchain_rust_rocket 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/Unchain68/Blockchain_rust_rocket [INFO] finished tweaking git repo https://github.com/Unchain68/Blockchain_rust_rocket [INFO] tweaked toml for git repo https://github.com/Unchain68/Blockchain_rust_rocket written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Unchain68/Blockchain_rust_rocket 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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b5fd4909778d1f66ec46d5198793c5a4c92fceef818ed032ea57506a8db72ea9 [INFO] running `Command { std: "docker" "start" "-a" "b5fd4909778d1f66ec46d5198793c5a4c92fceef818ed032ea57506a8db72ea9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b5fd4909778d1f66ec46d5198793c5a4c92fceef818ed032ea57506a8db72ea9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5fd4909778d1f66ec46d5198793c5a4c92fceef818ed032ea57506a8db72ea9", kill_on_drop: false }` [INFO] [stdout] b5fd4909778d1f66ec46d5198793c5a4c92fceef818ed032ea57506a8db72ea9 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3046eaf210c8b7a1e942150ab854ae2ef008a8b6023fd7c27b1c1974608c260e [INFO] running `Command { std: "docker" "start" "-a" "3046eaf210c8b7a1e942150ab854ae2ef008a8b6023fd7c27b1c1974608c260e", 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 version_check v0.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Checking once_cell v1.14.0 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling tokio v1.21.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking futures-sink v0.3.24 [INFO] [stderr] Compiling futures-task v0.3.24 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling futures-util v0.3.24 [INFO] [stderr] Checking futures-io v0.3.24 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Checking tracing-core v0.1.29 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling ref-cast v1.0.9 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Checking percent-encoding v2.2.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling uncased v0.9.7 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking block-buffer v0.10.3 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking polyval v0.5.3 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling ghash v0.4.4 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling time v0.3.14 [INFO] [stderr] Compiling sha2 v0.10.5 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling aes-gcm v0.9.4 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Checking form_urlencoded v1.1.0 [INFO] [stderr] Compiling multer v2.0.3 [INFO] [stderr] Compiling figment v0.10.7 [INFO] [stderr] Compiling futures v0.3.24 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling rocket v0.5.0-rc.2 [INFO] [stderr] Checking spin v0.9.4 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking fastrand v1.8.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking ipnet v2.5.0 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking itoa v0.3.4 [INFO] [stderr] Checking serde v0.9.15 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking url v2.3.1 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling hyper v0.14.20 [INFO] [stderr] Compiling serde_codegen_internals v0.14.2 [INFO] [stderr] Compiling serde_derive v0.9.15 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Checking serde_json v0.9.10 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling futures-macro v0.3.24 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.9 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Checking async-stream v0.3.3 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.2 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.2 [INFO] [stderr] Checking futures-executor v0.3.24 [INFO] [stderr] Checking tokio-util v0.7.4 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-stream v0.1.9 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ubyte v0.10.3 [INFO] [stderr] Checking h2 v0.3.14 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.11 [INFO] [stderr] Checking hellot-rocket v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/blockchain.rs (7 fixes) [INFO] [stderr] Fixed src/main.rs (6 fixes) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | for (i, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [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: `res` [INFO] [stdout] --> src/main.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let res = client.post(request_options_block.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let res = client.post(request_options_transactions.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | Json(&new_blockchain) [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] 123 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | for (index, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | Json(&new_blockchain) [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 22 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | Json(&new_blockchain) [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 32 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | Json(&new_blockchain) [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 172 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `receive_new_block` is never used [INFO] [stdout] --> src/main.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn receive_new_block(data: String) -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_node` is never used [INFO] [stdout] --> src/main.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn register_node(data: String) -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consensus` is never used [INFO] [stdout] --> src/main.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn consensus() -> Json<&'static Blockchain> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `chain_is_valid`, `get_block`, `get_transaction`, and `get_address_data` are never used [INFO] [stdout] --> src/blockchain.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn chain_is_valid(&self, blockchain : &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn get_block(&self, block_hash : String) -> Result<&Block, String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn get_transaction(&self, transaction_id : String) -> Result<(&Transaction, &Block), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_address_data(&self, address : String) -> (Vec<&Transaction>, u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `new_blockchain` should have an upper case name [INFO] [stdout] --> src/main.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | static mut new_blockchain: Blockchain = blockchain::Blockchain { chain: Vec::::new(), pending_transaction: Vec:: src/blockchain.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | write!(f,"{} {} {:?} {} {} {}",self.index,self.timestamp,self.transactions,self.nonce,self.hash,self.previous_blockhash); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | write!(f,"{} {} {} {}",self.amount, self.sender, self.recipient, self.transaction_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | write!(f,"{} {:?}",self.index, self.transactions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | for (i, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [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: `res` [INFO] [stdout] --> src/main.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let res = client.post(request_options_block.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let res = client.post(request_options_transactions.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | Json(&new_blockchain) [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] 123 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | for (index, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | Json(&new_blockchain) [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 22 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | Json(&new_blockchain) [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 32 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | Json(&new_blockchain) [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 172 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `receive_new_block` is never used [INFO] [stdout] --> src/main.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn receive_new_block(data: String) -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_node` is never used [INFO] [stdout] --> src/main.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn register_node(data: String) -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consensus` is never used [INFO] [stdout] --> src/main.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn consensus() -> Json<&'static Blockchain> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `chain_is_valid`, `get_block`, `get_transaction`, and `get_address_data` are never used [INFO] [stdout] --> src/blockchain.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn chain_is_valid(&self, blockchain : &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn get_block(&self, block_hash : String) -> Result<&Block, String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn get_transaction(&self, transaction_id : String) -> Result<(&Transaction, &Block), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_address_data(&self, address : String) -> (Vec<&Transaction>, u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `new_blockchain` should have an upper case name [INFO] [stdout] --> src/main.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | static mut new_blockchain: Blockchain = blockchain::Blockchain { chain: Vec::::new(), pending_transaction: Vec:: src/blockchain.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | write!(f,"{} {} {:?} {} {} {}",self.index,self.timestamp,self.transactions,self.nonce,self.hash,self.previous_blockhash); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | write!(f,"{} {} {} {}",self.amount, self.sender, self.recipient, self.transaction_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | write!(f,"{} {:?}",self.index, self.transactions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.16s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking hellot-rocket v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | for (i, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [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: `res` [INFO] [stdout] --> src/main.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let res = client.post(request_options_block.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let res = client.post(request_options_transactions.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | for (i, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [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: `res` [INFO] [stdout] --> src/main.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let res = client.post(request_options_block.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let res = client.post(request_options_transactions.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/main.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | Json(&new_blockchain) [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] 123 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/main.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | Json(&new_blockchain) [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] 123 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | for (index, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | for (index, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/main.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | Json(&new_blockchain) [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] 22 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/main.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | Json(&new_blockchain) [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] 22 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/main.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | Json(&new_blockchain) [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] 32 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/main.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | Json(&new_blockchain) [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] 32 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/main.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | Json(&new_blockchain) [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] 172 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/main.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | Json(&new_blockchain) [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] 172 | Json(addr_of!(new_blockchain)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 4 warnings 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 4 previous errors; 4 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 `hellot-rocket` (bin "hellot-rocket" test) due to 5 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hellot-rocket` (bin "hellot-rocket") due to 5 previous errors; 4 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3046eaf210c8b7a1e942150ab854ae2ef008a8b6023fd7c27b1c1974608c260e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3046eaf210c8b7a1e942150ab854ae2ef008a8b6023fd7c27b1c1974608c260e", kill_on_drop: false }` [INFO] [stdout] 3046eaf210c8b7a1e942150ab854ae2ef008a8b6023fd7c27b1c1974608c260e