[INFO] cloning repository https://github.com/hansihe/beam_code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hansihe/beam_code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhansihe%2Fbeam_code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhansihe%2Fbeam_code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 64f05a3f331e5ca9fc19c2501739c248995b9587 [INFO] testing hansihe/beam_code against 1.75.0 for beta-1.76-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhansihe%2Fbeam_code" "/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/hansihe/beam_code on toolchain 1.75.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hansihe/beam_code [INFO] finished tweaking git repo https://github.com/hansihe/beam_code [INFO] tweaked toml for git repo https://github.com/hansihe/beam_code written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hansihe/beam_code 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.75.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-traits v0.1.39 [INFO] [stderr] Downloaded byteorder v1.1.0 [INFO] [stderr] Downloaded byteorder v0.5.3 [INFO] [stderr] Downloaded num-iter v0.1.33 [INFO] [stderr] Downloaded thread_local v0.3.4 [INFO] [stderr] Downloaded num-integer v0.1.34 [INFO] [stderr] Downloaded num-rational v0.1.38 [INFO] [stderr] Downloaded either v1.1.0 [INFO] [stderr] Downloaded num v0.1.39 [INFO] [stderr] Downloaded itertools v0.6.0 [INFO] [stderr] Downloaded rand v0.3.15 [INFO] [stderr] Downloaded libc v0.2.26 [INFO] [stderr] Downloaded num-complex v0.1.38 [INFO] [stderr] Downloaded serde v1.0.10 [INFO] [stderr] Downloaded num-bigint v0.1.39 [INFO] [stderr] Downloaded eetf v0.3.6 [INFO] [stderr] Downloaded string-intern v0.1.6 [INFO] [stderr] Downloaded beam_file v0.2.2 [INFO] [stderr] Downloaded libflate v0.1.9 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ea6e12c7e3de884d6c2b23d2022a5c267895908c3393940d781ae7dac4a460d [INFO] running `Command { std: "docker" "start" "-a" "0ea6e12c7e3de884d6c2b23d2022a5c267895908c3393940d781ae7dac4a460d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ea6e12c7e3de884d6c2b23d2022a5c267895908c3393940d781ae7dac4a460d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ea6e12c7e3de884d6c2b23d2022a5c267895908c3393940d781ae7dac4a460d", kill_on_drop: false }` [INFO] [stdout] 0ea6e12c7e3de884d6c2b23d2022a5c267895908c3393940d781ae7dac4a460d [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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 949d2e9e024082445f925531e291ca4d43af109fe86d2e5d919d9231dc2a21d6 [INFO] running `Command { std: "docker" "start" "-a" "949d2e9e024082445f925531e291ca4d43af109fe86d2e5d919d9231dc2a21d6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.26 [INFO] [stderr] Compiling num-traits v0.1.39 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling lazy_static v0.2.8 [INFO] [stderr] Compiling byteorder v1.1.0 [INFO] [stderr] Compiling byteorder v0.5.3 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling either v1.1.0 [INFO] [stderr] Compiling serde v1.0.10 [INFO] [stderr] Compiling regex-syntax v0.4.1 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling thread_local v0.3.4 [INFO] [stderr] Compiling itertools v0.6.0 [INFO] [stderr] Compiling libflate v0.1.9 [INFO] [stderr] Compiling rand v0.3.15 [INFO] [stderr] Compiling memchr v1.0.1 [INFO] [stderr] Compiling aho-corasick v0.6.3 [INFO] [stderr] Compiling num-integer v0.1.34 [INFO] [stderr] Compiling num-complex v0.1.38 [INFO] [stderr] Compiling num-iter v0.1.33 [INFO] [stderr] Compiling regex v0.2.2 [INFO] [stderr] Compiling beam_file v0.2.2 [INFO] [stderr] Compiling num-bigint v0.1.39 [INFO] [stderr] Compiling num-rational v0.1.38 [INFO] [stderr] Compiling num v0.1.39 [INFO] [stderr] Compiling eetf v0.3.6 [INFO] [stderr] Compiling string-intern v0.1.6 [INFO] [stderr] Compiling beam_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `::std::rc::Rc` [INFO] [stdout] --> src/op.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ::std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Literal` [INFO] [stdout] --> src/ssa/mod.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use ::op::{ Op, LabelId, Register, OpKind, Source, Literal }; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GraphAccessor` [INFO] [stdout] --> src/graph/dfs.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{ GraphAccessor, GraphDfs }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssa/mod.rs:493:56 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut dyn Write) -> ::std::io::Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graph/mod.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = dyn Fn(NodeId, usize) -> Option; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `atom_num` [INFO] [stdout] --> src/beam_module.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | for atom_num in 0..len { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_atom_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ssa/mod.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | for mut block in &mut basic_blocks { [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/ssa/mod.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | for mut block in &mut basic_blocks { [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/ssa/mod.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | for mut block in fun.blocks.values_mut() { [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/ssa/mod.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | for mut op in block.ops.iter_mut() { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `x_reg` is never used [INFO] [stdout] --> src/op.rs:687:8 [INFO] [stdout] | [INFO] [stdout] 680 | impl Source { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 687 | fn x_reg(num: u32) -> Source { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `module` is never read [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct FunDef { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 52 | module: Atom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GraphAccessor` is never used [INFO] [stdout] --> src/graph/mod.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::std::rc::Rc` [INFO] [stdout] --> src/op.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ::std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Literal` [INFO] [stdout] --> src/ssa/mod.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use ::op::{ Op, LabelId, Register, OpKind, Source, Literal }; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GraphAccessor` [INFO] [stdout] --> src/graph/dfs.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{ GraphAccessor, GraphDfs }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssa/mod.rs:493:56 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut dyn Write) -> ::std::io::Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graph/mod.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = dyn Fn(NodeId, usize) -> Option; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `atom_num` [INFO] [stdout] --> src/beam_module.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | for atom_num in 0..len { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_atom_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ssa/mod.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | for mut block in &mut basic_blocks { [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/ssa/mod.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | for mut block in &mut basic_blocks { [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/ssa/mod.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | for mut block in fun.blocks.values_mut() { [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/ssa/mod.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | for mut op in block.ops.iter_mut() { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_reads_labels` is never used [INFO] [stdout] --> src/op.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Op { [INFO] [stdout] | ------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn with_reads_labels(kind: OpKind, reads: Vec, labels: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CaseEnd` is never constructed [INFO] [stdout] --> src/op.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 149 | pub enum RaiseType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 156 | CaseEnd, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RaiseType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `x_reg` and `get_register` are never used [INFO] [stdout] --> src/op.rs:687:8 [INFO] [stdout] | [INFO] [stdout] 680 | impl Source { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 687 | fn x_reg(num: u32) -> Source { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 691 | pub fn get_register(&self) -> Register { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `module` is never read [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct FunDef { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 52 | module: Atom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_register` is never used [INFO] [stdout] --> src/ssa/representation.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl SSASource { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 63 | pub fn get_register(&self) -> SSARegister { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GraphAccessor` is never used [INFO] [stdout] --> src/graph/mod.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.04s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [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" "949d2e9e024082445f925531e291ca4d43af109fe86d2e5d919d9231dc2a21d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "949d2e9e024082445f925531e291ca4d43af109fe86d2e5d919d9231dc2a21d6", kill_on_drop: false }` [INFO] [stdout] 949d2e9e024082445f925531e291ca4d43af109fe86d2e5d919d9231dc2a21d6 [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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e17dcf6e7c0ae323b3a85a2886ec826f13a4cbfb823c5f24ca98cb221c6fd346 [INFO] running `Command { std: "docker" "start" "-a" "e17dcf6e7c0ae323b3a85a2886ec826f13a4cbfb823c5f24ca98cb221c6fd346", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `::std::rc::Rc` [INFO] [stdout] --> src/op.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ::std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Literal` [INFO] [stdout] --> src/ssa/mod.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use ::op::{ Op, LabelId, Register, OpKind, Source, Literal }; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GraphAccessor` [INFO] [stdout] --> src/graph/dfs.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{ GraphAccessor, GraphDfs }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssa/mod.rs:493:56 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut dyn Write) -> ::std::io::Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graph/mod.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = dyn Fn(NodeId, usize) -> Option; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `atom_num` [INFO] [stdout] --> src/beam_module.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | for atom_num in 0..len { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_atom_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ssa/mod.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | for mut block in &mut basic_blocks { [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] [stderr] Compiling beam_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ssa/mod.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | for mut block in &mut basic_blocks { [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/ssa/mod.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | for mut block in fun.blocks.values_mut() { [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/ssa/mod.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | for mut op in block.ops.iter_mut() { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `x_reg` is never used [INFO] [stdout] --> src/op.rs:687:8 [INFO] [stdout] | [INFO] [stdout] 680 | impl Source { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 687 | fn x_reg(num: u32) -> Source { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `module` is never read [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct FunDef { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 52 | module: Atom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GraphAccessor` is never used [INFO] [stdout] --> src/graph/mod.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::std::rc::Rc` [INFO] [stdout] --> src/op.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ::std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Literal` [INFO] [stdout] --> src/ssa/mod.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use ::op::{ Op, LabelId, Register, OpKind, Source, Literal }; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GraphAccessor` [INFO] [stdout] --> src/graph/dfs.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{ GraphAccessor, GraphDfs }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::std::rc::Rc` [INFO] [stdout] --> src/op.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ::std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Literal` [INFO] [stdout] --> src/ssa/mod.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use ::op::{ Op, LabelId, Register, OpKind, Source, Literal }; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GraphAccessor` [INFO] [stdout] --> src/graph/dfs.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{ GraphAccessor, GraphDfs }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssa/mod.rs:493:56 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut dyn Write) -> ::std::io::Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graph/mod.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = dyn Fn(NodeId, usize) -> Option; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssa/mod.rs:493:56 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut dyn Write) -> ::std::io::Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graph/mod.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = dyn Fn(NodeId, usize) -> Option; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `atom_num` [INFO] [stdout] --> src/beam_module.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | for atom_num in 0..len { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_atom_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `atom_num` [INFO] [stdout] --> src/beam_module.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | for atom_num in 0..len { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_atom_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ssa/mod.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | for mut block in &mut basic_blocks { [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/ssa/mod.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | for mut block in &mut basic_blocks { [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/ssa/mod.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | for mut block in fun.blocks.values_mut() { [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/ssa/mod.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | for mut op in block.ops.iter_mut() { [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/ssa/mod.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | for mut block in &mut basic_blocks { [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/ssa/mod.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | for mut block in &mut basic_blocks { [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/ssa/mod.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | for mut block in fun.blocks.values_mut() { [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/ssa/mod.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | for mut op in block.ops.iter_mut() { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_reads_labels` is never used [INFO] [stdout] --> src/op.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Op { [INFO] [stdout] | ------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn with_reads_labels(kind: OpKind, reads: Vec, labels: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CaseEnd` is never constructed [INFO] [stdout] --> src/op.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 149 | pub enum RaiseType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 156 | CaseEnd, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RaiseType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `x_reg` and `get_register` are never used [INFO] [stdout] --> src/op.rs:687:8 [INFO] [stdout] | [INFO] [stdout] 680 | impl Source { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 687 | fn x_reg(num: u32) -> Source { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 691 | pub fn get_register(&self) -> Register { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `module` is never read [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct FunDef { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 52 | module: Atom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_register` is never used [INFO] [stdout] --> src/ssa/representation.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl SSASource { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 63 | pub fn get_register(&self) -> SSARegister { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GraphAccessor` is never used [INFO] [stdout] --> src/graph/mod.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `x_reg` is never used [INFO] [stdout] --> src/op.rs:687:8 [INFO] [stdout] | [INFO] [stdout] 680 | impl Source { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 687 | fn x_reg(num: u32) -> Source { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `module` is never read [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct FunDef { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 52 | module: Atom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GraphAccessor` is never used [INFO] [stdout] --> src/graph/mod.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.71s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [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" "e17dcf6e7c0ae323b3a85a2886ec826f13a4cbfb823c5f24ca98cb221c6fd346", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e17dcf6e7c0ae323b3a85a2886ec826f13a4cbfb823c5f24ca98cb221c6fd346", kill_on_drop: false }` [INFO] [stdout] e17dcf6e7c0ae323b3a85a2886ec826f13a4cbfb823c5f24ca98cb221c6fd346 [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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f01eafb862641aec5f573ef42e03b7f7fe5f90c17774e6da56ebc00449e16aff [INFO] running `Command { std: "docker" "start" "-a" "f01eafb862641aec5f573ef42e03b7f7fe5f90c17774e6da56ebc00449e16aff", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `::std::rc::Rc` [INFO] [stderr] --> src/op.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use ::std::rc::Rc; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Literal` [INFO] [stderr] --> src/ssa/mod.rs:5:52 [INFO] [stderr] | [INFO] [stderr] 5 | use ::op::{ Op, LabelId, Register, OpKind, Source, Literal }; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `GraphAccessor` [INFO] [stderr] --> src/graph/dfs.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | use super::{ GraphAccessor, GraphDfs }; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ssa/mod.rs:493:56 [INFO] [stderr] | [INFO] [stderr] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 493 | pub fn function_to_dot(function: &SSAFunction, w: &mut dyn Write) -> ::std::io::Result<()> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/graph/mod.rs:14:34 [INFO] [stderr] | [INFO] [stderr] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 14 | pub type GraphAccessor = dyn Fn(NodeId, usize) -> Option; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `atom_num` [INFO] [stderr] --> src/beam_module.rs:218:9 [INFO] [stderr] | [INFO] [stderr] 218 | for atom_num in 0..len { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_atom_num` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/ssa/mod.rs:163:9 [INFO] [stderr] | [INFO] [stderr] 163 | for mut block in &mut basic_blocks { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/ssa/mod.rs:199:9 [INFO] [stderr] | [INFO] [stderr] 199 | for mut block in &mut basic_blocks { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/ssa/mod.rs:400:9 [INFO] [stderr] | [INFO] [stderr] 400 | for mut block in fun.blocks.values_mut() { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/ssa/mod.rs:405:13 [INFO] [stderr] | [INFO] [stderr] 405 | for mut op in block.ops.iter_mut() { [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function `x_reg` is never used [INFO] [stderr] --> src/op.rs:687:8 [INFO] [stderr] | [INFO] [stderr] 680 | impl Source { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 687 | fn x_reg(num: u32) -> Source { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `module` is never read [INFO] [stderr] --> src/ssa/mod.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 51 | struct FunDef { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 52 | module: Atom, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FunDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: type alias `GraphAccessor` is never used [INFO] [stderr] --> src/graph/mod.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `beam_code` (lib) generated 13 warnings (run `cargo fix --lib -p beam_code` to apply 10 suggestions) [INFO] [stderr] warning: `beam_code` (lib test) generated 13 warnings (13 duplicates) [INFO] [stderr] warning: associated function `with_reads_labels` is never used [INFO] [stderr] --> src/op.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl Op { [INFO] [stderr] | ------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn with_reads_labels(kind: OpKind, reads: Vec, labels: Vec) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `CaseEnd` is never constructed [INFO] [stderr] --> src/op.rs:156:5 [INFO] [stderr] | [INFO] [stderr] 149 | pub enum RaiseType { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 156 | CaseEnd, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RaiseType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `x_reg` and `get_register` are never used [INFO] [stderr] --> src/op.rs:687:8 [INFO] [stderr] | [INFO] [stderr] 680 | impl Source { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 687 | fn x_reg(num: u32) -> Source { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 691 | pub fn get_register(&self) -> Register { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_register` is never used [INFO] [stderr] --> src/ssa/representation.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 62 | impl SSASource { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] 63 | pub fn get_register(&self) -> SSARegister { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `beam_code` (bin "beam_code" test) generated 16 warnings (12 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/beam_code-c5e9c08ef952ecea) [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/beam_code-035ee48784f81880) [INFO] [stderr] Doc-tests beam_code [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] [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" "f01eafb862641aec5f573ef42e03b7f7fe5f90c17774e6da56ebc00449e16aff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f01eafb862641aec5f573ef42e03b7f7fe5f90c17774e6da56ebc00449e16aff", kill_on_drop: false }` [INFO] [stdout] f01eafb862641aec5f573ef42e03b7f7fe5f90c17774e6da56ebc00449e16aff