[INFO] fetching crate slothlang 1.4.0... [INFO] testing slothlang-1.4.0 against 1.90.0 for beta-1.91-3 [INFO] extracting crate slothlang 1.4.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate slothlang 1.4.0 [INFO] finished tweaking crates.io crate slothlang 1.4.0 [INFO] tweaked toml for crates.io crate slothlang 1.4.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate slothlang 1.4.0 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate slothlang 1.4.0 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" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded version-compare v0.1.1 [INFO] [stderr] Downloaded os_str_bytes v6.5.0 [INFO] [stderr] Downloaded quote v1.0.26 [INFO] [stderr] Downloaded proc-macro2 v1.0.54 [INFO] [stderr] Downloaded text_io v0.1.12 [INFO] [stderr] Downloaded unicode-ident v1.0.8 [INFO] [stderr] Downloaded clap_derive v3.2.18 [INFO] [stderr] Downloaded aho-corasick v0.7.20 [INFO] [stderr] Downloaded once_cell v1.17.1 [INFO] [stderr] Downloaded termcolor v1.2.0 [INFO] [stderr] Downloaded getrandom v0.2.8 [INFO] [stderr] Downloaded sdl2 v0.35.2 [INFO] [stderr] Downloaded clap v3.2.23 [INFO] [stderr] Downloaded regex-syntax v0.6.29 [INFO] [stderr] Downloaded regex v1.7.3 [INFO] [stderr] Downloaded libc v0.2.140 [INFO] [stderr] Downloaded sdl2-sys v0.35.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7635d7c22adc057de6ac8dd1abac6912c5dbf79f168cf68ad5c8d9193f6b6b2b [INFO] running `Command { std: "docker" "start" "-a" "7635d7c22adc057de6ac8dd1abac6912c5dbf79f168cf68ad5c8d9193f6b6b2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7635d7c22adc057de6ac8dd1abac6912c5dbf79f168cf68ad5c8d9193f6b6b2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7635d7c22adc057de6ac8dd1abac6912c5dbf79f168cf68ad5c8d9193f6b6b2b", kill_on_drop: false }` [INFO] [stdout] 7635d7c22adc057de6ac8dd1abac6912c5dbf79f168cf68ad5c8d9193f6b6b2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b5934307c167766915f0897df0a9d774cab5f5edafeb30a132eb7140b99fe05 [INFO] running `Command { std: "docker" "start" "-a" "1b5934307c167766915f0897df0a9d774cab5f5edafeb30a132eb7140b99fe05", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling proc-macro2 v1.0.54 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling os_str_bytes v6.5.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling textwrap v0.16.0 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Compiling text_io v0.1.12 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.7.3 [INFO] [stderr] Compiling clap_derive v3.2.18 [INFO] [stderr] Compiling clap v3.2.23 [INFO] [stderr] Compiling slothlang v1.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/lexer/tokenstream.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TokenStream { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 7 | pub filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenStream` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_owner_type` is never used [INFO] [stdout] --> src/sloth/function.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait SlothFunction: Debug { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 48 | /// Return the type owning this function, or None if this is not a method [INFO] [stdout] 49 | fn get_owner_type(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/sloth/program.rs:253:74 [INFO] [stdout] | [INFO] [stdout] 253 | if sign.name == signature.name {matching_def.push(def.clone())} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Box` does not implement `Clone`, so calling `clone` on `&Box` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 253 - if sign.name == signature.name {matching_def.push(def.clone())} [INFO] [stdout] 253 + if sign.name == signature.name {matching_def.push(def)} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/builtins/media.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | if SDL_CONTEXT.is_none() {SDL_CONTEXT = Some(sdl2::init()?)} [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 [INFO] [stdout] --> src/builtins/media.rs:163:35 [INFO] [stdout] | [INFO] [stdout] 163 | let video_subsystem = SDL_CONTEXT.clone().unwrap().video()?; [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 [INFO] [stdout] --> src/builtins/media.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | if SDL_CONTEXT.is_none() { [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 [INFO] [stdout] --> src/builtins/media.rs:371:18 [INFO] [stdout] | [INFO] [stdout] 371 | let ep = SDL_CONTEXT.as_ref().unwrap().event_pump(); [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.32s [INFO] running `Command { std: "docker" "inspect" "1b5934307c167766915f0897df0a9d774cab5f5edafeb30a132eb7140b99fe05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b5934307c167766915f0897df0a9d774cab5f5edafeb30a132eb7140b99fe05", kill_on_drop: false }` [INFO] [stdout] 1b5934307c167766915f0897df0a9d774cab5f5edafeb30a132eb7140b99fe05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 213885b752f2d092d3284e198abdd3641e53e89579eff30c1c84ff424b72b575 [INFO] running `Command { std: "docker" "start" "-a" "213885b752f2d092d3284e198abdd3641e53e89579eff30c1c84ff424b72b575", kill_on_drop: false }` [INFO] [stderr] Compiling slothlang v1.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/lexer/tokenstream.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TokenStream { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 7 | pub filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenStream` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_owner_type` is never used [INFO] [stdout] --> src/sloth/function.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait SlothFunction: Debug { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 48 | /// Return the type owning this function, or None if this is not a method [INFO] [stdout] 49 | fn get_owner_type(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/sloth/program.rs:253:74 [INFO] [stdout] | [INFO] [stdout] 253 | if sign.name == signature.name {matching_def.push(def.clone())} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Box` does not implement `Clone`, so calling `clone` on `&Box` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 253 - if sign.name == signature.name {matching_def.push(def.clone())} [INFO] [stdout] 253 + if sign.name == signature.name {matching_def.push(def)} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/builtins/media.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | if SDL_CONTEXT.is_none() {SDL_CONTEXT = Some(sdl2::init()?)} [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 [INFO] [stdout] --> src/builtins/media.rs:163:35 [INFO] [stdout] | [INFO] [stdout] 163 | let video_subsystem = SDL_CONTEXT.clone().unwrap().video()?; [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 [INFO] [stdout] --> src/builtins/media.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | if SDL_CONTEXT.is_none() { [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 [INFO] [stdout] --> src/builtins/media.rs:371:18 [INFO] [stdout] | [INFO] [stdout] 371 | let ep = SDL_CONTEXT.as_ref().unwrap().event_pump(); [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.24s [INFO] running `Command { std: "docker" "inspect" "213885b752f2d092d3284e198abdd3641e53e89579eff30c1c84ff424b72b575", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "213885b752f2d092d3284e198abdd3641e53e89579eff30c1c84ff424b72b575", kill_on_drop: false }` [INFO] [stdout] 213885b752f2d092d3284e198abdd3641e53e89579eff30c1c84ff424b72b575 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] dbc66bacbe4b5be03d1e6531100314e181ba193a70fa39ee56b5265f889ad646 [INFO] running `Command { std: "docker" "start" "-a" "dbc66bacbe4b5be03d1e6531100314e181ba193a70fa39ee56b5265f889ad646", kill_on_drop: false }` [INFO] [stderr] warning: field `filename` is never read [INFO] [stderr] --> src/lexer/tokenstream.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct TokenStream { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 7 | pub filename: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TokenStream` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `get_owner_type` is never used [INFO] [stderr] --> src/sloth/function.rs:49:8 [INFO] [stderr] | [INFO] [stderr] 47 | pub trait SlothFunction: Debug { [INFO] [stderr] | ------------- method in this trait [INFO] [stderr] 48 | /// Return the type owning this function, or None if this is not a method [INFO] [stderr] 49 | fn get_owner_type(&self) -> Option; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/sloth/program.rs:253:74 [INFO] [stderr] | [INFO] [stderr] 253 | if sign.name == signature.name {matching_def.push(def.clone())} [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Box` does not implement `Clone`, so calling `clone` on `&Box` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 253 - if sign.name == signature.name {matching_def.push(def.clone())} [INFO] [stderr] 253 + if sign.name == signature.name {matching_def.push(def)} [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/builtins/media.rs:162:16 [INFO] [stderr] | [INFO] [stderr] 162 | if SDL_CONTEXT.is_none() {SDL_CONTEXT = Some(sdl2::init()?)} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/builtins/media.rs:163:35 [INFO] [stderr] | [INFO] [stderr] 163 | let video_subsystem = SDL_CONTEXT.clone().unwrap().video()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/builtins/media.rs:364:12 [INFO] [stderr] | [INFO] [stderr] 364 | if SDL_CONTEXT.is_none() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/builtins/media.rs:371:18 [INFO] [stderr] | [INFO] [stderr] 371 | let ep = SDL_CONTEXT.as_ref().unwrap().event_pump(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: `slothlang` (bin "slothlang" test) generated 7 warnings (run `cargo fix --bin "slothlang" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/slothlang-740898078572af8c) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "dbc66bacbe4b5be03d1e6531100314e181ba193a70fa39ee56b5265f889ad646", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbc66bacbe4b5be03d1e6531100314e181ba193a70fa39ee56b5265f889ad646", kill_on_drop: false }` [INFO] [stdout] dbc66bacbe4b5be03d1e6531100314e181ba193a70fa39ee56b5265f889ad646