[INFO] cloning repository https://github.com/MatevzFa/class2json [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MatevzFa/class2json" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatevzFa%2Fclass2json", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatevzFa%2Fclass2json'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d117af2ea0837f499261d72093dfc4bdcfdd4bfd [INFO] testing MatevzFa/class2json against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatevzFa%2Fclass2json" "/workspace/builds/worker-105/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-105/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MatevzFa/class2json on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MatevzFa/class2json [INFO] finished tweaking git repo https://github.com/MatevzFa/class2json [INFO] tweaked toml for git repo https://github.com/MatevzFa/class2json written to /workspace/builds/worker-105/source/Cargo.toml [INFO] crate git repo https://github.com/MatevzFa/class2json already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded textwrap v0.9.0 [INFO] [stderr] Downloaded bitflags v1.0.3 [INFO] [stderr] Downloaded erased-serde v0.3.9 [INFO] [stderr] Downloaded redox_syscall v0.1.40 [INFO] [stderr] Downloaded strsim v0.7.0 [INFO] [stderr] Downloaded yaml-rust v0.3.5 [INFO] [stderr] Downloaded clap v2.31.2 [INFO] [stderr] Downloaded syn v0.15.27 [INFO] [stderr] Downloaded serde v1.0.89 [INFO] [stderr] Downloaded libc v0.2.42 [INFO] [stderr] Downloaded winapi v0.3.5 [INFO] [stderr] Downloaded atty v0.2.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ba5cd416367cbc04107ff2849c1773400eb793b0d72bf3d72318bc52e8579ac [INFO] running `Command { std: "docker" "start" "-a" "2ba5cd416367cbc04107ff2849c1773400eb793b0d72bf3d72318bc52e8579ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ba5cd416367cbc04107ff2849c1773400eb793b0d72bf3d72318bc52e8579ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ba5cd416367cbc04107ff2849c1773400eb793b0d72bf3d72318bc52e8579ac", kill_on_drop: false }` [INFO] [stdout] 2ba5cd416367cbc04107ff2849c1773400eb793b0d72bf3d72318bc52e8579ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/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" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b8785fc111d52383a613370815e2cf166909f6bf9a0b73e774cd7081fe42da8 [INFO] running `Command { std: "docker" "start" "-a" "5b8785fc111d52383a613370815e2cf166909f6bf9a0b73e774cd7081fe42da8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling serde v1.0.89 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling itoa v0.4.3 [INFO] [stderr] Compiling yaml-rust v0.3.5 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling bitflags v1.0.3 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling atty v0.2.10 [INFO] [stderr] Compiling clap v2.31.2 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Compiling syn v0.15.27 [INFO] [stderr] Compiling serde_derive v1.0.89 [INFO] [stderr] Compiling serde_json v1.0.39 [INFO] [stderr] Compiling erased-serde v0.3.9 [INFO] [stderr] Compiling class2json v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `instruction` [INFO] [stdout] --> src/bytecode/mod.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | macro_rules! instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | fn read_classfile(f: &mut Read) -> ClassFile { [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] 40 - fn read_classfile(f: &mut Read) -> ClassFile { [INFO] [stdout] 40 + fn read_classfile(f: &mut dyn Read) -> ClassFile { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:65:31 [INFO] [stdout] | [INFO] [stdout] 65 | fn read_constant_pool(f: &mut Read, constant_pool_count: u16) -> ConstantPool { [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] 65 - fn read_constant_pool(f: &mut Read, constant_pool_count: u16) -> ConstantPool { [INFO] [stdout] 65 + fn read_constant_pool(f: &mut dyn Read, constant_pool_count: u16) -> ConstantPool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 183 | fn read_fields(f: &mut Read, fields_count: u16) -> Fields { [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] 183 - fn read_fields(f: &mut Read, fields_count: u16) -> Fields { [INFO] [stdout] 183 + fn read_fields(f: &mut dyn Read, fields_count: u16) -> Fields { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 204 | fn read_methods(f: &mut Read, methods_count: u16) -> Methods { [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] 204 - fn read_methods(f: &mut Read, methods_count: u16) -> Methods { [INFO] [stdout] 204 + fn read_methods(f: &mut dyn Read, methods_count: u16) -> Methods { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:225:28 [INFO] [stdout] | [INFO] [stdout] 225 | fn read_attributes(f: &mut Read, attributes_count: u16) -> Attributes { [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] 225 - fn read_attributes(f: &mut Read, attributes_count: u16) -> Attributes { [INFO] [stdout] 225 + fn read_attributes(f: &mut dyn Read, attributes_count: u16) -> Attributes { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/read_util.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn read_u8(f: &mut Read) -> u8 { [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] 4 - pub fn read_u8(f: &mut Read) -> u8 { [INFO] [stdout] 4 + pub fn read_u8(f: &mut dyn Read) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/read_util.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn read_u16(f: &mut Read) -> u16 { [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] 11 - pub fn read_u16(f: &mut Read) -> u16 { [INFO] [stdout] 11 + pub fn read_u16(f: &mut dyn Read) -> u16 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/read_util.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn read_u32(f: &mut Read) -> u32 { [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] 18 - pub fn read_u32(f: &mut Read) -> u32 { [INFO] [stdout] 18 + pub fn read_u32(f: &mut dyn Read) -> u32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/read_util.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn read_vec_u8(f: &mut Read, length: usize) -> Vec { [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] 25 - pub fn read_vec_u8(f: &mut Read, length: usize) -> Vec { [INFO] [stdout] 25 + pub fn read_vec_u8(f: &mut dyn Read, length: usize) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/read_util.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn read_vec_u16(f: &mut Read, length: usize) -> Vec { [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] 32 - pub fn read_vec_u16(f: &mut Read, length: usize) -> Vec { [INFO] [stdout] 32 + pub fn read_vec_u16(f: &mut dyn Read, length: usize) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/class_file/constant_pool.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub array: Vec>, [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] 15 - pub array: Vec>, [INFO] [stdout] 15 + pub array: Vec>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: no implementation for `u8 | std::option::Option<&u8>` [INFO] [stdout] --> src/serialization.rs:32:61 [INFO] [stdout] | [INFO] [stdout] 32 | 2 => bytecode_iter.next().unwrap() << 8 | bytecode_iter.next(), [INFO] [stdout] | ^ no implementation for `u8 | std::option::Option<&u8>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `BitOr>` is not implemented for `u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: no implementation for `std::option::Option<&u8> << {integer}` [INFO] [stdout] --> src/serialization.rs:33:85 [INFO] [stdout] | [INFO] [stdout] 33 | ... 4 => bytecode_iter.next().unwrap() << 24 | bytecode_iter.next() << 16 | bytecode_iter.next() << 8 | bytecode_iter.next().unwrap(), [INFO] [stdout] | -------------------- ^^ -- {integer} [INFO] [stdout] | | [INFO] [stdout] | std::option::Option<&u8> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: no implementation for `std::option::Option<&u8> << {integer}` [INFO] [stdout] --> src/serialization.rs:33:114 [INFO] [stdout] | [INFO] [stdout] 33 | ... 4 => bytecode_iter.next().unwrap() << 24 | bytecode_iter.next() << 16 | bytecode_iter.next() << 8 | bytecode_iter.next().unwrap(), [INFO] [stdout] | -------------------- ^^ - {integer} [INFO] [stdout] | | [INFO] [stdout] | std::option::Option<&u8> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/serialization.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 30 | let arg = match arg_len { [INFO] [stdout] | ___________________________- [INFO] [stdout] 31 | | 1 => bytecode_iter.next().unwrap(), [INFO] [stdout] | | ----------------------------- this is found to be of type `&u8` [INFO] [stdout] 32 | | 2 => bytecode_iter.next().unwrap() << 8 | bytecode_iter.next(), [INFO] [stdout] | | --------------------------------------------------------- this is found to be of type `&u8` [INFO] [stdout] 33 | | 4 => bytecode_iter.next().unwrap() << 24 | bytecode_iter.next() << 16 | bytecode_iter.next() << 8 | bytecode_iter.next().unwrap... [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&u8`, found `u8` [INFO] [stdout] 34 | | }; [INFO] [stdout] | |_________________- `match` arms have incompatible types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:66:36 [INFO] [stdout] | [INFO] [stdout] 66 | let mut constant_pool: Vec> = Vec::new(); [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] 66 - let mut constant_pool: Vec> = Vec::new(); [INFO] [stdout] 66 + let mut constant_pool: Vec> = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:73:26 [INFO] [stdout] | [INFO] [stdout] 73 | let cp_info: Box = match tag { [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] 73 - let cp_info: Box = match tag { [INFO] [stdout] 73 + let cp_info: Box = match tag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `class2json` due to 5 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5b8785fc111d52383a613370815e2cf166909f6bf9a0b73e774cd7081fe42da8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b8785fc111d52383a613370815e2cf166909f6bf9a0b73e774cd7081fe42da8", kill_on_drop: false }` [INFO] [stdout] 5b8785fc111d52383a613370815e2cf166909f6bf9a0b73e774cd7081fe42da8