[INFO] cloning repository https://github.com/vakabus/rumipsem [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vakabus/rumipsem" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvakabus%2Frumipsem", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvakabus%2Frumipsem'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5eb40604e61a63db9ae12679df0a39052f3d65c2 [INFO] building vakabus/rumipsem against master#ce36a966c79e109dabeef7a47fe68e5294c6d71e for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvakabus%2Frumipsem" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vakabus/rumipsem on toolchain ce36a966c79e109dabeef7a47fe68e5294c6d71e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vakabus/rumipsem [INFO] finished tweaking git repo https://github.com/vakabus/rumipsem [INFO] tweaked toml for git repo https://github.com/vakabus/rumipsem written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/vakabus/rumipsem 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" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redox_syscall v0.1.37 [INFO] [stderr] Downloaded time v0.1.39 [INFO] [stderr] Downloaded term v0.5.1 [INFO] [stderr] Downloaded quote v0.3.15 [INFO] [stderr] Downloaded plain v0.2.3 [INFO] [stderr] Downloaded flate2 v0.2.20 [INFO] [stderr] Downloaded argparse v0.2.1 [INFO] [stderr] Downloaded serde_derive v1.0.66 [INFO] [stderr] Downloaded scroll_derive v0.7.0 [INFO] [stderr] Downloaded syn v0.14.2 [INFO] [stderr] Downloaded serde v1.0.66 [INFO] [stderr] Downloaded goblin v0.0.11 [INFO] [stderr] Downloaded simplelog v0.5.2 [INFO] [stderr] Downloaded dtoa v0.4.2 [INFO] [stderr] Downloaded nix v0.11.0 [INFO] [stderr] Downloaded itoa v0.4.1 [INFO] [stderr] Downloaded num-traits v0.2.5 [INFO] [stderr] Downloaded byteorder v1.2.3 [INFO] [stderr] Downloaded winapi v0.3.4 [INFO] [stderr] Downloaded miniz-sys v0.1.10 [INFO] [stderr] Downloaded syn v0.11.11 [INFO] [stderr] Downloaded cc v1.0.17 [INFO] [stderr] Downloaded chrono v0.4.3 [INFO] [stderr] Downloaded cfg-if v0.1.2 [INFO] [stderr] Downloaded log v0.4.1 [INFO] [stderr] Downloaded num-integer v0.1.38 [INFO] [stderr] Downloaded scroll v0.7.0 [INFO] [stderr] Downloaded synom v0.11.3 [INFO] [stderr] Downloaded bitflags v1.0.3 [INFO] [stderr] Downloaded proc-macro2 v0.4.6 [INFO] [stderr] Downloaded quote v0.6.3 [INFO] [stderr] Downloaded unicode-xid v0.1.0 [INFO] [stderr] Downloaded serde_json v1.0.19 [INFO] [stderr] Downloaded unicode-xid v0.0.4 [INFO] [stderr] Downloaded libc v0.2.42 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d74e60cd2e8942208bbfb9a3cf673a54743861e8a1a2ecb568c5b6b121f51af3 [INFO] running `Command { std: "docker" "start" "-a" "d74e60cd2e8942208bbfb9a3cf673a54743861e8a1a2ecb568c5b6b121f51af3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d74e60cd2e8942208bbfb9a3cf673a54743861e8a1a2ecb568c5b6b121f51af3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d74e60cd2e8942208bbfb9a3cf673a54743861e8a1a2ecb568c5b6b121f51af3", kill_on_drop: false }` [INFO] [stdout] d74e60cd2e8942208bbfb9a3cf673a54743861e8a1a2ecb568c5b6b121f51af3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94c38484e810abb0d544ecd4a36297c38df4306450cbd715b2869b21409c82db [INFO] running `Command { std: "docker" "start" "-a" "94c38484e810abb0d544ecd4a36297c38df4306450cbd715b2869b21409c82db", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.5 [INFO] [stderr] Compiling num-integer v0.1.38 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling cc v1.0.17 [INFO] [stderr] Compiling serde v1.0.66 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling byteorder v1.2.3 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Compiling plain v0.2.3 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling bitflags v1.0.3 [INFO] [stderr] Compiling itoa v0.4.1 [INFO] [stderr] Compiling scroll v0.7.0 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling dtoa v0.4.2 [INFO] [stderr] Compiling proc-macro2 v0.4.6 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling term v0.5.1 [INFO] [stderr] Compiling argparse v0.2.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling time v0.1.39 [INFO] [stderr] Compiling quote v0.6.3 [INFO] [stderr] Compiling syn v0.14.2 [INFO] [stderr] Compiling miniz-sys v0.1.10 [INFO] [stderr] Compiling chrono v0.4.3 [INFO] [stderr] Compiling scroll_derive v0.7.0 [INFO] [stderr] Compiling goblin v0.0.11 [INFO] [stderr] Compiling flate2 v0.2.20 [INFO] [stderr] Compiling simplelog v0.5.2 [INFO] [stderr] Compiling serde_derive v1.0.66 [INFO] [stderr] Compiling serde_json v1.0.19 [INFO] [stderr] Compiling rumipsem v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu/instructions.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | let mut link; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu/instructions.rs:491:17 [INFO] [stdout] | [INFO] [stdout] 491 | let mut inst; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:329:25 [INFO] [stdout] | [INFO] [stdout] 329 | let mut oldsigaction = self.sigactions.insert( [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:657:25 [INFO] [stdout] | [INFO] [stdout] 657 | let mut iovec = translate_iovec_libc(arg2, arg3, memory); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:678:25 [INFO] [stdout] | [INFO] [stdout] 678 | let mut iovec = translate_iovec(arg2, arg3, memory); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:691:33 [INFO] [stdout] | [INFO] [stdout] 691 | ... let mut already_written = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:737:25 [INFO] [stdout] | [INFO] [stdout] 737 | let mut result = unsafe { ::libc::lseek(fd as i32, offset, whence as i32) }; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:884:17 [INFO] [stdout] | [INFO] [stdout] 884 | let mut flags = translate_signal_flags(sigact.sa_flags); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FlowChangeImmediate` is never constructed [INFO] [stdout] --> src/cpu/event.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum CPUEvent { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | FlowChangeImmediate(u32), // this is here to support compact branch [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RETURN_ADDRESS` is never used [INFO] [stdout] --> src/cpu/registers.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const RETURN_ADDRESS: u32 = 31; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_instruction_number` and `disable_trace_checking` are never used [INFO] [stdout] --> src/cpu/watchdog.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Watchdog { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_instruction_number(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn disable_trace_checking(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cpu/control.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | EMULATOR_STATE.get_or_insert(self) [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cpu/control.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | EMULATOR_STATE.as_mut().expect( [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/cpu/control.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | EMULATOR_STATE.as_ref().expect( [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: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/cpu/watchdog.rs:194:10 [INFO] [stdout] | [INFO] [stdout] 194 | #[derive(Deserialize)] [INFO] [stdout] | -^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `InstructionRecord` is not local [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_InstructionRecord` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/cpu/instructions_constants.rs:114:37 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("Unknown opcode {:06b}."), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("Unknown opcode {:06b}.", ...), [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("{}", "Unknown opcode {:06b}."), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.79s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "94c38484e810abb0d544ecd4a36297c38df4306450cbd715b2869b21409c82db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94c38484e810abb0d544ecd4a36297c38df4306450cbd715b2869b21409c82db", kill_on_drop: false }` [INFO] [stdout] 94c38484e810abb0d544ecd4a36297c38df4306450cbd715b2869b21409c82db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 714c0e2f4852d0463edaa716c7e57cea87e351c3173ba5617351b9cc02616a74 [INFO] running `Command { std: "docker" "start" "-a" "714c0e2f4852d0463edaa716c7e57cea87e351c3173ba5617351b9cc02616a74", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling rumipsem v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu/instructions.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | let mut link; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu/instructions.rs:491:17 [INFO] [stdout] | [INFO] [stdout] 491 | let mut inst; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:329:25 [INFO] [stdout] | [INFO] [stdout] 329 | let mut oldsigaction = self.sigactions.insert( [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:657:25 [INFO] [stdout] | [INFO] [stdout] 657 | let mut iovec = translate_iovec_libc(arg2, arg3, memory); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:678:25 [INFO] [stdout] | [INFO] [stdout] 678 | let mut iovec = translate_iovec(arg2, arg3, memory); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:691:33 [INFO] [stdout] | [INFO] [stdout] 691 | ... let mut already_written = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:737:25 [INFO] [stdout] | [INFO] [stdout] 737 | let mut result = unsafe { ::libc::lseek(fd as i32, offset, whence as i32) }; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syscalls.rs:884:17 [INFO] [stdout] | [INFO] [stdout] 884 | let mut flags = translate_signal_flags(sigact.sa_flags); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FlowChangeImmediate` is never constructed [INFO] [stdout] --> src/cpu/event.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum CPUEvent { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | FlowChangeImmediate(u32), // this is here to support compact branch [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RETURN_ADDRESS` is never used [INFO] [stdout] --> src/cpu/registers.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const RETURN_ADDRESS: u32 = 31; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_instruction_number` and `disable_trace_checking` are never used [INFO] [stdout] --> src/cpu/watchdog.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Watchdog { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_instruction_number(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn disable_trace_checking(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cpu/control.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | EMULATOR_STATE.get_or_insert(self) [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/cpu/control.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | EMULATOR_STATE.as_mut().expect( [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/cpu/control.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | EMULATOR_STATE.as_ref().expect( [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: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/cpu/watchdog.rs:194:10 [INFO] [stdout] | [INFO] [stdout] 194 | #[derive(Deserialize)] [INFO] [stdout] | -^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `InstructionRecord` is not local [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_InstructionRecord` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/cpu/instructions_constants.rs:114:37 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("Unknown opcode {:06b}."), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("Unknown opcode {:06b}.", ...), [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("{}", "Unknown opcode {:06b}."), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.50s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "714c0e2f4852d0463edaa716c7e57cea87e351c3173ba5617351b9cc02616a74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "714c0e2f4852d0463edaa716c7e57cea87e351c3173ba5617351b9cc02616a74", kill_on_drop: false }` [INFO] [stdout] 714c0e2f4852d0463edaa716c7e57cea87e351c3173ba5617351b9cc02616a74