[INFO] fetching crate turbo-genesis-sdk 1.6.0-alpha.6... [INFO] checking turbo-genesis-sdk-1.6.0-alpha.6 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate turbo-genesis-sdk 1.6.0-alpha.6 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate turbo-genesis-sdk 1.6.0-alpha.6 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate turbo-genesis-sdk 1.6.0-alpha.6 [INFO] finished tweaking crates.io crate turbo-genesis-sdk 1.6.0-alpha.6 [INFO] tweaked toml for crates.io crate turbo-genesis-sdk 1.6.0-alpha.6 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 217 packages to latest compatible versions [INFO] [stderr] Adding ahash v0.7.8 (available: v0.8.11) [INFO] [stderr] Adding base64 v0.12.3 (available: v0.22.1) [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding binary-layout v3.3.0 (available: v4.0.2) [INFO] [stderr] Adding bitmaps v2.1.0 (available: v3.2.1) [INFO] [stderr] Adding blake3 v1.5.1 (available: v1.5.4) [INFO] [stderr] Adding block-buffer v0.9.0 (available: v0.10.4) [INFO] [stderr] Adding borsh v0.9.3 (available: v1.5.1) [INFO] [stderr] Adding borsh v0.10.4 (available: v1.5.1) [INFO] [stderr] Adding borsh-derive v0.9.3 (available: v1.5.1) [INFO] [stderr] Adding borsh-derive v0.10.4 (available: v1.5.1) [INFO] [stderr] Adding borsh-derive-internal v0.9.3 (available: v0.10.4) [INFO] [stderr] Adding borsh-schema-derive-internal v0.9.3 (available: v0.10.4) [INFO] [stderr] Adding bs58 v0.4.0 (available: v0.5.1) [INFO] [stderr] Adding console_log v0.2.2 (available: v1.0.0) [INFO] [stderr] Adding crypto-mac v0.8.0 (available: v0.11.1) [INFO] [stderr] Adding curve25519-dalek v3.2.1 (available: v4.1.3) [INFO] [stderr] Adding digest v0.9.0 (available: v0.10.7) [INFO] [stderr] Adding ed25519 v1.5.3 (available: v2.2.3) [INFO] [stderr] Adding ed25519-dalek v1.0.1 (available: v2.1.1) [INFO] [stderr] Adding ed25519-dalek-bip32 v0.2.0 (available: v0.3.0) [INFO] [stderr] Adding env_logger v0.9.3 (available: v0.11.5) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding getrandom v0.1.16 (available: v0.2.15) [INFO] [stderr] Adding hashbrown v0.11.2 (available: v0.14.5) [INFO] [stderr] Adding hashbrown v0.13.2 (available: v0.14.5) [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.1.19 (available: v0.4.0) [INFO] [stderr] Adding hmac v0.8.1 (available: v0.12.1) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.13.0) [INFO] [stderr] Adding libsecp256k1 v0.6.0 (available: v0.7.1) [INFO] [stderr] Adding libsecp256k1-core v0.2.2 (available: v0.3.0) [INFO] [stderr] Adding libsecp256k1-gen-ecmult v0.2.1 (available: v0.3.0) [INFO] [stderr] Adding libsecp256k1-gen-genmult v0.2.1 (available: v0.3.0) [INFO] [stderr] Adding memmap2 v0.5.10 (available: v0.9.5) [INFO] [stderr] Adding pbkdf2 v0.4.0 (available: v0.12.2) [INFO] [stderr] Adding pbkdf2 v0.11.0 (available: v0.12.2) [INFO] [stderr] Adding proc-macro-crate v0.1.5 (available: v3.2.0) [INFO] [stderr] Adding rand v0.7.3 (available: v0.8.5) [INFO] [stderr] Adding rand_chacha v0.2.2 (available: v0.3.1) [INFO] [stderr] Adding rand_core v0.5.1 (available: v0.6.4) [INFO] [stderr] Adding rand_hc v0.2.0 (available: v0.3.2) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding serde_with v2.3.3 (available: v3.9.0) [INFO] [stderr] Adding serde_with_macros v2.3.3 (available: v3.9.0) [INFO] [stderr] Adding sha2 v0.9.9 (available: v0.10.8) [INFO] [stderr] Adding signature v1.6.4 (available: v2.2.0) [INFO] [stderr] Adding siphasher v0.3.11 (available: v1.0.1) [INFO] [stderr] Adding sized-chunks v0.6.5 (available: v0.7.0) [INFO] [stderr] Adding solana-frozen-abi v1.18.23 (available: v2.0.11) [INFO] [stderr] Adding solana-frozen-abi-macro v1.18.23 (available: v2.0.11) [INFO] [stderr] Adding solana-logger v1.18.23 (available: v2.0.11) [INFO] [stderr] Adding solana-program v1.18.23 (available: v2.0.11) [INFO] [stderr] Adding solana-sdk v1.18.23 (available: v2.0.11) [INFO] [stderr] Adding solana-sdk-macro v1.18.23 (available: v2.0.11) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.79) [INFO] [stderr] Adding tiny-bip39 v0.8.2 (available: v1.0.0) [INFO] [stderr] Adding toml v0.5.11 (available: v0.8.19) [INFO] [stderr] Adding venial v0.5.0 (available: v0.6.0) [INFO] [stderr] Adding wasi v0.9.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding zeroize v1.3.0 (available: v1.8.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fe9a0d9915545e78c7d8974bce9ca40addf68608884a43650bf38d4ac1b651c [INFO] running `Command { std: "docker" "start" "-a" "9fe9a0d9915545e78c7d8974bce9ca40addf68608884a43650bf38d4ac1b651c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fe9a0d9915545e78c7d8974bce9ca40addf68608884a43650bf38d4ac1b651c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fe9a0d9915545e78c7d8974bce9ca40addf68608884a43650bf38d4ac1b651c", kill_on_drop: false }` [INFO] [stdout] 9fe9a0d9915545e78c7d8974bce9ca40addf68608884a43650bf38d4ac1b651c [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 -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9adacebb76ca5aa49388085413adbee840379494ac43fd1fb84e0782bad19dc [INFO] running `Command { std: "docker" "start" "-a" "e9adacebb76ca5aa49388085413adbee840379494ac43fd1fb84e0782bad19dc", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling venial v0.5.0 [INFO] [stderr] Compiling bytemuck_derive v1.7.1 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking binary-layout v3.3.0 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking bytemuck v1.18.0 [INFO] [stderr] Compiling structstruck v0.4.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Checking borsh v0.10.4 [INFO] [stderr] Checking turbo-genesis-sdk v1.6.0-alpha.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `as_f64`, `as_array`, `as_bool`, `as_null`, and `as_vec` are never used [INFO] [stdout] --> src/json.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl JsonValue { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn as_f64(&self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn as_array(&self) -> Result<&Vec, &'static str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn as_bool(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn as_null(&self) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn as_vec(&self, convert: F) -> Result, &'static str> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/ffi.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 27 | size < SNAPSHOT_DATA.len(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/ffi.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | SNAPSHOT_DATA.len() - SNAPSHOT_DATA_SIZE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | let prev_nonce = SPRITE_DATA.as_ref().unwrap().0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:152:20 [INFO] [stdout] | [INFO] [stdout] 152 | return SPRITE_DATA.as_ref().unwrap().1.get(name).cloned(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | SPRITE_DATA.as_mut().unwrap().0 = nonce; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:164:17 [INFO] [stdout] | [INFO] [stdout] 164 | SPRITE_DATA.as_mut().unwrap().1 = data.into_iter().collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | return SPRITE_DATA.as_ref().unwrap().1.get(name).cloned(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/sys.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | let ptr = TURBO_SAVE_DATA.as_mut_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `turbo_os_get_user_id` redeclares `get_user_id` with a different signature [INFO] [stdout] --> src/program.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | #[link_name = "get_user_id"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/os.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | fn get_user_id(out_user_id_ptr: *mut u8, out_user_id_len_ptr: *mut u32) -> u32; [INFO] [stdout] | ------------------------------------------------------------------------------- `get_user_id` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(*mut u8, *mut u32) -> u32` [INFO] [stdout] found `unsafe extern "C" fn(*mut u8) -> usize` [INFO] [stdout] = note: `#[warn(clashing_extern_declarations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `turbo_os_read_file` redeclares `read_file` with a different signature [INFO] [stdout] --> src/program.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | #[link_name = "read_file"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/os.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | / fn read_file( [INFO] [stdout] 50 | | program_id_ptr: *const u8, [INFO] [stdout] 51 | | program_id_len: u32, [INFO] [stdout] 52 | | filepath_ptr: *const u8, [INFO] [stdout] ... | [INFO] [stdout] 55 | | out_data_len_ptr: *mut u32, [INFO] [stdout] 56 | | ) -> u32; [INFO] [stdout] | |_____________________- `read_file` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(*const u8, u32, *const u8, u32, *mut u8, *mut u32) -> u32` [INFO] [stdout] found `unsafe extern "C" fn(*const u8, usize, *mut u8, *mut usize) -> usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_f64`, `as_array`, `as_bool`, `as_null`, and `as_vec` are never used [INFO] [stdout] --> src/json.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl JsonValue { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn as_f64(&self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn as_array(&self) -> Result<&Vec, &'static str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn as_bool(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn as_null(&self) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn as_vec(&self, convert: F) -> Result, &'static str> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/ffi.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 27 | size < SNAPSHOT_DATA.len(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/ffi.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | SNAPSHOT_DATA.len() - SNAPSHOT_DATA_SIZE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | let prev_nonce = SPRITE_DATA.as_ref().unwrap().0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:152:20 [INFO] [stdout] | [INFO] [stdout] 152 | return SPRITE_DATA.as_ref().unwrap().1.get(name).cloned(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | SPRITE_DATA.as_mut().unwrap().0 = nonce; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:164:17 [INFO] [stdout] | [INFO] [stdout] 164 | SPRITE_DATA.as_mut().unwrap().1 = data.into_iter().collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/canvas.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | return SPRITE_DATA.as_ref().unwrap().1.get(name).cloned(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/sys.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | let ptr = TURBO_SAVE_DATA.as_mut_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `turbo_os_get_user_id` redeclares `get_user_id` with a different signature [INFO] [stdout] --> src/program.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | #[link_name = "get_user_id"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/os.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | fn get_user_id(out_user_id_ptr: *mut u8, out_user_id_len_ptr: *mut u32) -> u32; [INFO] [stdout] | ------------------------------------------------------------------------------- `get_user_id` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(*mut u8, *mut u32) -> u32` [INFO] [stdout] found `unsafe extern "C" fn(*mut u8) -> usize` [INFO] [stdout] = note: `#[warn(clashing_extern_declarations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `turbo_os_read_file` redeclares `read_file` with a different signature [INFO] [stdout] --> src/program.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | #[link_name = "read_file"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/os.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | / fn read_file( [INFO] [stdout] 50 | | program_id_ptr: *const u8, [INFO] [stdout] 51 | | program_id_len: u32, [INFO] [stdout] 52 | | filepath_ptr: *const u8, [INFO] [stdout] ... | [INFO] [stdout] 55 | | out_data_len_ptr: *mut u32, [INFO] [stdout] 56 | | ) -> u32; [INFO] [stdout] | |_____________________- `read_file` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(*const u8, u32, *const u8, u32, *mut u8, *mut u32) -> u32` [INFO] [stdout] found `unsafe extern "C" fn(*const u8, usize, *mut u8, *mut usize) -> usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.70s [INFO] running `Command { std: "docker" "inspect" "e9adacebb76ca5aa49388085413adbee840379494ac43fd1fb84e0782bad19dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9adacebb76ca5aa49388085413adbee840379494ac43fd1fb84e0782bad19dc", kill_on_drop: false }` [INFO] [stdout] e9adacebb76ca5aa49388085413adbee840379494ac43fd1fb84e0782bad19dc