[INFO] fetching crate conduit-json-parser 0.8.0... [INFO] checking conduit-json-parser-0.8.0 against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] extracting crate conduit-json-parser 0.8.0 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate conduit-json-parser 0.8.0 on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate conduit-json-parser 0.8.0 [INFO] finished tweaking crates.io crate conduit-json-parser 0.8.0 [INFO] tweaked toml for crates.io crate conduit-json-parser 0.8.0 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c1face3f0d6c99fc93a5d59047ef31004ae9f936f6e3d6bc4ff67788bfa6475 [INFO] running `Command { std: "docker" "start" "-a" "6c1face3f0d6c99fc93a5d59047ef31004ae9f936f6e3d6bc4ff67788bfa6475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c1face3f0d6c99fc93a5d59047ef31004ae9f936f6e3d6bc4ff67788bfa6475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c1face3f0d6c99fc93a5d59047ef31004ae9f936f6e3d6bc4ff67788bfa6475", kill_on_drop: false }` [INFO] [stdout] 6c1face3f0d6c99fc93a5d59047ef31004ae9f936f6e3d6bc4ff67788bfa6475 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3b4376945cd9ea5bc8cf203dbf9c9538c95df328de600a09267c4553b4716f5 [INFO] running `Command { std: "docker" "start" "-a" "f3b4376945cd9ea5bc8cf203dbf9c9538c95df328de600a09267c4553b4716f5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Checking utf8-ranges v0.1.3 [INFO] [stderr] Checking regex-syntax v0.3.9 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking semver-parser v0.6.2 [INFO] [stderr] Checking semver v0.5.1 [INFO] [stderr] Checking conduit v0.8.1 [INFO] [stderr] Checking conduit-middleware v0.8.1 [INFO] [stderr] Checking conduit-utils v0.8.0 [INFO] [stderr] Checking conduit-test v0.8.1 [INFO] [stderr] Checking conduit-json-parser v0.8.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | let json: T = try!(decode::(req.body())); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:30:32 [INFO] [stdout] | [INFO] [stdout] 30 | fn before(&self, req: &mut Request) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Request` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:30:59 [INFO] [stdout] | [INFO] [stdout] 30 | fn before(&self, req: &mut Request) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^ help: use `dyn`: `dyn Error+Send` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let j = try!(Json::from_reader(reader).map_err(|e| Box::new(e) as Box)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | fn decode(reader: &mut Read) -> Result> { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Read` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:39:61 [INFO] [stdout] | [INFO] [stdout] 39 | fn decode(reader: &mut Read) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ help: use `dyn`: `dyn Error+Send` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:40:75 [INFO] [stdout] | [INFO] [stdout] 40 | let j = try!(Json::from_reader(reader).map_err(|e| Box::new(e) as Box)); [INFO] [stdout] | ^^^^^^^^^^ help: use `dyn`: `dyn Error+Send` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:42:68 [INFO] [stdout] | [INFO] [stdout] 42 | Decodable::decode(&mut decoder).map_err(|e| Box::new(e) as Box) [INFO] [stdout] | ^^^^^^^^^^ help: use `dyn`: `dyn Error+Send` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn json_params<'a, T: Decodable + Any>(req: &'a Request) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Request` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | let json: T = try!(decode::(req.body())); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(test, deny(warnings))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(deprecated)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:30:32 [INFO] [stdout] | [INFO] [stdout] 30 | fn before(&self, req: &mut Request) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Request` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(test, deny(warnings))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(bare_trait_objects)]` implied by `#[deny(warnings)]` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:30:59 [INFO] [stdout] | [INFO] [stdout] 30 | fn before(&self, req: &mut Request) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^ help: use `dyn`: `dyn Error+Send` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let j = try!(Json::from_reader(reader).map_err(|e| Box::new(e) as Box)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | fn decode(reader: &mut Read) -> Result> { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Read` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:39:61 [INFO] [stdout] | [INFO] [stdout] 39 | fn decode(reader: &mut Read) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ help: use `dyn`: `dyn Error+Send` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:40:75 [INFO] [stdout] | [INFO] [stdout] 40 | let j = try!(Json::from_reader(reader).map_err(|e| Box::new(e) as Box)); [INFO] [stdout] | ^^^^^^^^^^ help: use `dyn`: `dyn Error+Send` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:42:68 [INFO] [stdout] | [INFO] [stdout] 42 | Decodable::decode(&mut decoder).map_err(|e| Box::new(e) as Box) [INFO] [stdout] | ^^^^^^^^^^ help: use `dyn`: `dyn Error+Send` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn json_params<'a, T: Decodable + Any>(req: &'a Request) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Request` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `RustcDecodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/lib.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(PartialEq, RustcDecodable, RustcEncodable, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `RustcEncodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/lib.rs:62:41 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(PartialEq, RustcDecodable, RustcEncodable, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 68 | fn handler(req: &mut Request) -> io::Result { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Request` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:88:46 [INFO] [stdout] | [INFO] [stdout] 88 | let person = super::decode::(&mut *res.body).ok().expect("No JSON response"); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected trait `std::io::Read`, found trait `WriteBody + Send` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn std::io::Read` [INFO] [stdout] found mutable reference `&mut (dyn WriteBody + Send + 'static)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `conduit-json-parser` due to 14 previous errors [INFO] running `Command { std: "docker" "inspect" "f3b4376945cd9ea5bc8cf203dbf9c9538c95df328de600a09267c4553b4716f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3b4376945cd9ea5bc8cf203dbf9c9538c95df328de600a09267c4553b4716f5", kill_on_drop: false }` [INFO] [stdout] f3b4376945cd9ea5bc8cf203dbf9c9538c95df328de600a09267c4553b4716f5