[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] checking hansihe/beam_code against master#00bfd6b2734d9c28a147bf237490995731781fdd for pr-117984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhansihe%2Fbeam_code" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hansihe/beam_code on toolchain 00bfd6b2734d9c28a147bf237490995731781fdd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+00bfd6b2734d9c28a147bf237490995731781fdd" "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-0-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" "+00bfd6b2734d9c28a147bf237490995731781fdd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-rational v0.1.38 [INFO] [stderr] Downloaded libflate v0.1.9 [INFO] [stderr] Downloaded itertools v0.6.0 [INFO] [stderr] Downloaded num-bigint v0.1.39 [INFO] [stderr] Downloaded num 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+00bfd6b2734d9c28a147bf237490995731781fdd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3fce67950c63afc3e5495a5b1e8f7e7bc819460bb14f0deebe9fb0e2371ac84 [INFO] running `Command { std: "docker" "start" "-a" "b3fce67950c63afc3e5495a5b1e8f7e7bc819460bb14f0deebe9fb0e2371ac84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3fce67950c63afc3e5495a5b1e8f7e7bc819460bb14f0deebe9fb0e2371ac84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3fce67950c63afc3e5495a5b1e8f7e7bc819460bb14f0deebe9fb0e2371ac84", kill_on_drop: false }` [INFO] [stdout] b3fce67950c63afc3e5495a5b1e8f7e7bc819460bb14f0deebe9fb0e2371ac84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+00bfd6b2734d9c28a147bf237490995731781fdd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45dfdc57147d376cc61771837281650fefa58db3406f558bca416e0a49fa45c8 [INFO] running `Command { std: "docker" "start" "-a" "45dfdc57147d376cc61771837281650fefa58db3406f558bca416e0a49fa45c8", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.26 [INFO] [stderr] Checking num-traits v0.1.39 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Checking lazy_static v0.2.8 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking either v1.1.0 [INFO] [stderr] Checking regex-syntax v0.4.1 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking serde v1.0.10 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking itertools v0.6.0 [INFO] [stderr] Checking thread_local v0.3.4 [INFO] [stderr] Checking libflate v0.1.9 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking memchr v1.0.1 [INFO] [stderr] Checking aho-corasick v0.6.3 [INFO] [stderr] Checking num-integer v0.1.34 [INFO] [stderr] Checking num-iter v0.1.33 [INFO] [stderr] Checking beam_file v0.2.2 [INFO] [stderr] Checking regex v0.2.2 [INFO] [stderr] Checking num-bigint v0.1.39 [INFO] [stderr] Checking num-complex v0.1.38 [INFO] [stderr] Checking num-rational v0.1.38 [INFO] [stderr] Checking num v0.1.39 [INFO] [stderr] Checking eetf v0.3.6 [INFO] [stderr] Checking string-intern v0.1.6 [INFO] [stderr] Checking 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: `::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: `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: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: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: 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: 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: `::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] = 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/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/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: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: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 `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] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.40s [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" "45dfdc57147d376cc61771837281650fefa58db3406f558bca416e0a49fa45c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45dfdc57147d376cc61771837281650fefa58db3406f558bca416e0a49fa45c8", kill_on_drop: false }` [INFO] [stdout] 45dfdc57147d376cc61771837281650fefa58db3406f558bca416e0a49fa45c8 [INFO] checking hansihe/beam_code against try#aa7c6ba69acce8b10a275eabfe6157ea72c8b599 for pr-117984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhansihe%2Fbeam_code" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hansihe/beam_code on toolchain aa7c6ba69acce8b10a275eabfe6157ea72c8b599 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "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-0-tc2/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" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c44f9d575d3c1007f3311f4e2a2f2f24c0afeb5eab6bb3c15e30828ebe3022eb [INFO] running `Command { std: "docker" "start" "-a" "c44f9d575d3c1007f3311f4e2a2f2f24c0afeb5eab6bb3c15e30828ebe3022eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c44f9d575d3c1007f3311f4e2a2f2f24c0afeb5eab6bb3c15e30828ebe3022eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c44f9d575d3c1007f3311f4e2a2f2f24c0afeb5eab6bb3c15e30828ebe3022eb", kill_on_drop: false }` [INFO] [stdout] c44f9d575d3c1007f3311f4e2a2f2f24c0afeb5eab6bb3c15e30828ebe3022eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21aeae93b650f2ce17c46b9881283cccfa61b78a9b2012f5d675d7543f88375f [INFO] running `Command { std: "docker" "start" "-a" "21aeae93b650f2ce17c46b9881283cccfa61b78a9b2012f5d675d7543f88375f", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.26 [INFO] [stderr] Checking num-traits v0.1.39 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking lazy_static v0.2.8 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking regex-syntax v0.4.1 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking serde v1.0.10 [INFO] [stderr] Checking either v1.1.0 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking thread_local v0.3.4 [INFO] [stderr] Checking itertools v0.6.0 [INFO] [stderr] Checking libflate v0.1.9 [INFO] [stdout] error[E0310]: the parameter type `T` may not live long enough [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs:1155:5 [INFO] [stdout] | [INFO] [stdout] 1155 | fn decode(d: &mut D) -> Result, D::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `T` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `T` will meet its required lifetime bounds... [INFO] [stdout] | [INFO] [stdout] note: ...that is required by this bound [INFO] [stdout] --> /rustc/aa7c6ba69acce8b10a275eabfe6157ea72c8b599/library/alloc/src/borrow.rs:180:30 [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T> [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking memchr v1.0.1 [INFO] [stderr] Checking num-integer v0.1.34 [INFO] [stderr] Checking aho-corasick v0.6.3 [INFO] [stderr] Checking num-iter v0.1.33 [INFO] [stderr] Checking regex v0.2.2 [INFO] [stderr] Checking beam_file v0.2.2 [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0310`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustc-serialize` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "21aeae93b650f2ce17c46b9881283cccfa61b78a9b2012f5d675d7543f88375f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21aeae93b650f2ce17c46b9881283cccfa61b78a9b2012f5d675d7543f88375f", kill_on_drop: false }` [INFO] [stdout] 21aeae93b650f2ce17c46b9881283cccfa61b78a9b2012f5d675d7543f88375f