[INFO] fetching crate zub 0.3.14... [INFO] testing zub-0.3.14 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate zub 0.3.14 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate zub 0.3.14 [INFO] finished tweaking crates.io crate zub 0.3.14 [INFO] tweaked toml for crates.io crate zub 0.3.14 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate zub 0.3.14 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate zub 0.3.14 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" "+b83b707f97d809763b7861afa7638871f3339a33" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdd69e61da9892c1833fc01a5a87a6f90bb9d3b560abb5a20c57d9da225de3f5 [INFO] running `Command { std: "docker" "start" "-a" "fdd69e61da9892c1833fc01a5a87a6f90bb9d3b560abb5a20c57d9da225de3f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdd69e61da9892c1833fc01a5a87a6f90bb9d3b560abb5a20c57d9da225de3f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdd69e61da9892c1833fc01a5a87a6f90bb9d3b560abb5a20c57d9da225de3f5", kill_on_drop: false }` [INFO] [stdout] fdd69e61da9892c1833fc01a5a87a6f90bb9d3b560abb5a20c57d9da225de3f5 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e0cf4c7419abc56b3baefa28deed66552c315b21ea7c0e5d17b89b84409ef9a2 [INFO] running `Command { std: "docker" "start" "-a" "e0cf4c7419abc56b3baefa28deed66552c315b21ea7c0e5d17b89b84409ef9a2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.18 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling ahash v0.3.3 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling rand_xoshiro v0.4.0 [INFO] [stderr] Compiling hashbrown v0.7.2 [INFO] [stderr] Compiling im-rc v14.3.0 [INFO] [stderr] Compiling thread-id v3.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling quote v1.0.4 [INFO] [stderr] Compiling colored v1.9.3 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling sized-chunks v0.5.3 [INFO] [stderr] Compiling serde_json v1.0.52 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling flame v0.2.2 [INFO] [stderr] Compiling flamer v0.3.0 [INFO] [stderr] Compiling zub v0.3.14 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] extern crate flamer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tag::*` [INFO] [stdout] --> src/vm/value/object.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use super::super::gc::{ *, tag::*, trace::* }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::compiler::CompileState` [INFO] [stdout] --> src/vm/vm.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use super::compiler::CompileState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Trace` and `Tracer` [INFO] [stdout] --> src/vm/disassembler.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use gc::trace::{ Trace, Tracer }; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `vec_drain_as_slice` has been stable since 1.46.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(vec_drain_as_slice)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on use statements [INFO] [stdout] --> src/vm/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to modules, extern crates, and crates [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `vm::value::value::Variant` [INFO] [stdout] --> src/vm/vm.rs:572:13 [INFO] [stdout] | [INFO] [stdout] 572 | Nil => HashVariant::Nil, [INFO] [stdout] | ^^^ help: to match on the variant, qualify the path: `vm::value::value::Variant::Nil` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Nil` [INFO] [stdout] --> src/vm/vm.rs:572:13 [INFO] [stdout] | [INFO] [stdout] 572 | Nil => HashVariant::Nil, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Nil` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/compiler/compiler.rs:663:13 [INFO] [stdout] | [INFO] [stdout] 663 | _ => panic!("not a constant") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/compiler/compiler.rs:663:13 [INFO] [stdout] | [INFO] [stdout] 651 | Nil => self.emit(Op::Nil), [INFO] [stdout] | --- matches some of the same values [INFO] [stdout] 652 | Boolean(b) => self.emit(if b { Op::True} else { Op::False } ), [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] 653 | Number(n) => self.emit_number_literal(n), [INFO] [stdout] | --------- matches some of the same values [INFO] [stdout] 654 | String(ref s) => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 663 | _ => panic!("not a constant") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_dict_element`, `get_dict_element`, `set_list_element`, and `on_loop` are never used [INFO] [stdout] --> src/vm/vm.rs:487:8 [INFO] [stdout] | [INFO] [stdout] 101 | impl VM { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 487 | fn set_dict_element(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | fn get_dict_element(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 541 | fn set_list_element(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 649 | fn on_loop(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invoke`, `class`, `get_property`, and `set_property` are never used [INFO] [stdout] --> src/vm/disassembler.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'c> Disassembler<'c> { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | fn invoke(&mut self, arity: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | fn class(&mut self, idx: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | fn get_property(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn set_property(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/ir/types.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TypeInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 12 | kind: Option [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeInfo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `entry` is never read [INFO] [stdout] --> src/ir/ir.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 206 | data: HashMap, [INFO] [stdout] 207 | entry: Option [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Program` 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 `begin_scope` is never used [INFO] [stdout] --> src/compiler/compiler.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl CompileState { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | fn begin_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/vm/value/value.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | mem::transmute::(*f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 42 - mem::transmute::(*f) [INFO] [stdout] 42 + f64::to_bits(*f).cast_signed() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/vm/value/value.rs:200:20 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn with(&self, item: U) -> WithHeap { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 200 | pub fn with(&self, item: U) -> WithHeap<'_, U> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/vm/chunk.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn constants(&self) -> Constants { [INFO] [stdout] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 86 | pub fn constants(&self) -> Constants<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Nil` should have a snake case name [INFO] [stdout] --> src/vm/vm.rs:572:13 [INFO] [stdout] | [INFO] [stdout] 572 | Nil => HashVariant::Nil, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `nil` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/vm/gc/tag.rs:63:40 [INFO] [stdout] | [INFO] [stdout] 63 | return Tag::Float(unsafe { ::std::mem::transmute(u) }); [INFO] [stdout] | ---------------------^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zub` (lib) due to 1 previous error; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e0cf4c7419abc56b3baefa28deed66552c315b21ea7c0e5d17b89b84409ef9a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0cf4c7419abc56b3baefa28deed66552c315b21ea7c0e5d17b89b84409ef9a2", kill_on_drop: false }` [INFO] [stdout] e0cf4c7419abc56b3baefa28deed66552c315b21ea7c0e5d17b89b84409ef9a2