[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 beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhansihe%2Fbeam_code" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hansihe/beam_code on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-7/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1863335200f659cb9a6ccecff95bc0aa7b83373afe2c15978ad3dd7cd2d1df78 [INFO] running `Command { std: "docker" "start" "-a" "1863335200f659cb9a6ccecff95bc0aa7b83373afe2c15978ad3dd7cd2d1df78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1863335200f659cb9a6ccecff95bc0aa7b83373afe2c15978ad3dd7cd2d1df78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1863335200f659cb9a6ccecff95bc0aa7b83373afe2c15978ad3dd7cd2d1df78", kill_on_drop: false }` [INFO] [stdout] 1863335200f659cb9a6ccecff95bc0aa7b83373afe2c15978ad3dd7cd2d1df78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9828c2c904638bc744475b148dda011287fa346319c866919631d5546b177beb [INFO] running `Command { std: "docker" "start" "-a" "9828c2c904638bc744475b148dda011287fa346319c866919631d5546b177beb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.26 [INFO] [stderr] Compiling num-traits v0.1.39 [INFO] [stderr] Compiling byteorder v1.1.0 [INFO] [stderr] Compiling lazy_static v0.2.8 [INFO] [stderr] Compiling byteorder v0.5.3 [INFO] [stderr] Compiling regex-syntax v0.4.1 [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 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 num-integer v0.1.34 [INFO] [stderr] Compiling num-complex v0.1.38 [INFO] [stderr] Compiling aho-corasick v0.6.3 [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] = note: `#[warn(bare_trait_objects)]` on by default [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] 493 - pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [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 = Fn(NodeId, usize) -> Option; [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: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] = 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: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 is never used: `x_reg` [INFO] [stdout] --> src/op.rs:687:8 [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 is never read: `module` [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [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] --> src/ssa/mod.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `GraphAccessor` [INFO] [stdout] --> src/graph/mod.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 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] = note: `#[warn(bare_trait_objects)]` on by default [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] 493 - pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [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 = Fn(NodeId, usize) -> Option; [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: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] = 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: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 is never used: `with_reads_labels` [INFO] [stdout] --> src/op.rs:32:12 [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 is never constructed: `CaseEnd` [INFO] [stdout] --> src/op.rs:156:5 [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] --> src/op.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x_reg` [INFO] [stdout] --> src/op.rs:687:8 [INFO] [stdout] | [INFO] [stdout] 687 | fn x_reg(num: u32) -> Source { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register` [INFO] [stdout] --> src/op.rs:691:12 [INFO] [stdout] | [INFO] [stdout] 691 | pub fn get_register(&self) -> Register { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `module` [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [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] --> src/ssa/mod.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `GraphAccessor` [INFO] [stdout] --> src/graph/mod.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register` [INFO] [stdout] --> src/ssa/representation.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_register(&self) -> SSARegister { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.75s [INFO] running `Command { std: "docker" "inspect" "9828c2c904638bc744475b148dda011287fa346319c866919631d5546b177beb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9828c2c904638bc744475b148dda011287fa346319c866919631d5546b177beb", kill_on_drop: false }` [INFO] [stdout] 9828c2c904638bc744475b148dda011287fa346319c866919631d5546b177beb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38195cdc1bcba9bbcd6053307258e68d5ca14c97e322e902d8de8fc10ebceec9 [INFO] running `Command { std: "docker" "start" "-a" "38195cdc1bcba9bbcd6053307258e68d5ca14c97e322e902d8de8fc10ebceec9", 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] = note: `#[warn(bare_trait_objects)]` on by default [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] 493 - pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [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 = Fn(NodeId, usize) -> Option; [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: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] = 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: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 is never used: `x_reg` [INFO] [stdout] --> src/op.rs:687:8 [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 is never read: `module` [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [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] --> src/ssa/mod.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `GraphAccessor` [INFO] [stdout] --> src/graph/mod.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 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: `::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: `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: `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] = note: `#[warn(bare_trait_objects)]` on by default [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] 493 - pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [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/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] = note: `#[warn(bare_trait_objects)]` on by default [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] 493 - pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [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 = Fn(NodeId, usize) -> Option; [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/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 = Fn(NodeId, usize) -> Option; [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: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] = 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: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: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] = 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: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 is never used: `x_reg` [INFO] [stdout] --> src/op.rs:687:8 [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 is never read: `module` [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [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] --> src/ssa/mod.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `GraphAccessor` [INFO] [stdout] --> src/graph/mod.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_reads_labels` [INFO] [stdout] --> src/op.rs:32:12 [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 is never constructed: `CaseEnd` [INFO] [stdout] --> src/op.rs:156:5 [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] --> src/op.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x_reg` [INFO] [stdout] --> src/op.rs:687:8 [INFO] [stdout] | [INFO] [stdout] 687 | fn x_reg(num: u32) -> Source { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register` [INFO] [stdout] --> src/op.rs:691:12 [INFO] [stdout] | [INFO] [stdout] 691 | pub fn get_register(&self) -> Register { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `module` [INFO] [stdout] --> src/ssa/mod.rs:52:5 [INFO] [stdout] | [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] --> src/ssa/mod.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `GraphAccessor` [INFO] [stdout] --> src/graph/mod.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register` [INFO] [stdout] --> src/ssa/representation.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_register(&self) -> SSARegister { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.08s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/beam_code-a7252c953f2a9fea) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/beam_code-2e0b614f0060492c) [INFO] running `Command { std: "docker" "inspect" "38195cdc1bcba9bbcd6053307258e68d5ca14c97e322e902d8de8fc10ebceec9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38195cdc1bcba9bbcd6053307258e68d5ca14c97e322e902d8de8fc10ebceec9", kill_on_drop: false }` [INFO] [stdout] 38195cdc1bcba9bbcd6053307258e68d5ca14c97e322e902d8de8fc10ebceec9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8299cb747afe2ae62b680738f8b1d77d61ac41f8abfd51e652eade6951785922 [INFO] running `Command { std: "docker" "start" "-a" "8299cb747afe2ae62b680738f8b1d77d61ac41f8abfd51e652eade6951785922", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] = note: `#[warn(bare_trait_objects)]` on by default [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] 493 - pub fn function_to_dot(function: &SSAFunction, w: &mut Write) -> ::std::io::Result<()> { [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 = Fn(NodeId, usize) -> Option; [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: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] = 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: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 is never used: `x_reg` [INFO] [stderr] --> src/op.rs:687:8 [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 is never read: `module` [INFO] [stderr] --> src/ssa/mod.rs:52:5 [INFO] [stderr] | [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] --> src/ssa/mod.rs:50:10 [INFO] [stderr] | [INFO] [stderr] 50 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `GraphAccessor` [INFO] [stderr] --> src/graph/mod.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub type GraphAccessor = Fn(NodeId, usize) -> Option; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `beam_code` (lib) generated 11 warnings [INFO] [stderr] warning: `beam_code` (lib test) generated 11 warnings (11 duplicates) [INFO] [stderr] warning: associated function is never used: `with_reads_labels` [INFO] [stderr] --> src/op.rs:32:12 [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 is never constructed: `CaseEnd` [INFO] [stderr] --> src/op.rs:156:5 [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] --> src/op.rs:148:10 [INFO] [stderr] | [INFO] [stderr] 148 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `x_reg` [INFO] [stderr] --> src/op.rs:687:8 [INFO] [stderr] | [INFO] [stderr] 687 | fn x_reg(num: u32) -> Source { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_register` [INFO] [stderr] --> src/op.rs:691:12 [INFO] [stderr] | [INFO] [stderr] 691 | pub fn get_register(&self) -> Register { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_register` [INFO] [stderr] --> src/ssa/representation.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn get_register(&self) -> SSARegister { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `beam_code` (bin "beam_code" test) generated 15 warnings (10 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.41s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/beam_code-a7252c953f2a9fea) [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/beam_code-2e0b614f0060492c) [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] [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] running `Command { std: "docker" "inspect" "8299cb747afe2ae62b680738f8b1d77d61ac41f8abfd51e652eade6951785922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8299cb747afe2ae62b680738f8b1d77d61ac41f8abfd51e652eade6951785922", kill_on_drop: false }` [INFO] [stdout] 8299cb747afe2ae62b680738f8b1d77d61ac41f8abfd51e652eade6951785922