[INFO] fetching crate runner 0.5.0... [INFO] testing runner-0.5.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate runner 0.5.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate runner 0.5.0 [INFO] finished tweaking crates.io crate runner 0.5.0 [INFO] tweaked toml for crates.io crate runner 0.5.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate runner 0.5.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate runner 0.5.0 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded semver-parser v0.7.0 [INFO] [stderr] Downloaded semver v0.9.0 [INFO] [stderr] Downloaded open v1.2.1 [INFO] [stderr] Downloaded quote v0.6.3 [INFO] [stderr] Downloaded toml v0.4.6 [INFO] [stderr] Downloaded bitflags v1.0.4 [INFO] [stderr] Downloaded shlex v0.1.1 [INFO] [stderr] Downloaded rustc-demangle v0.1.14 [INFO] [stderr] Downloaded syn v0.14.2 [INFO] [stderr] Downloaded json v0.11.12 [INFO] [stderr] Downloaded cloudabi v0.0.3 [INFO] [stderr] Downloaded cfg-if v0.1.7 [INFO] [stderr] Downloaded constant_time_eq v0.1.3 [INFO] [stderr] Downloaded blake2-rfc v0.2.18 [INFO] [stderr] Downloaded redox_users v0.3.0 [INFO] [stderr] Downloaded easy-shortcuts v0.3.0 [INFO] [stderr] Downloaded synstructure v0.10.1 [INFO] [stderr] Downloaded argon2rs v0.2.5 [INFO] [stderr] Downloaded arrayvec v0.4.10 [INFO] [stderr] Downloaded nodrop v0.1.13 [INFO] [stderr] Downloaded winapi v0.3.4 [INFO] [stderr] Downloaded lapp v0.4.0 [INFO] [stderr] Downloaded backtrace-sys v0.1.28 [INFO] [stderr] Downloaded syn v0.15.34 [INFO] [stderr] Downloaded autocfg v0.1.2 [INFO] [stderr] Downloaded failure v0.1.5 [INFO] [stderr] Downloaded libc v0.2.54 [INFO] [stderr] Downloaded rand_core v0.4.0 [INFO] [stderr] Downloaded rand_os v0.1.3 [INFO] [stderr] Downloaded dirs v1.0.5 [INFO] [stderr] Downloaded redox_syscall v0.1.40 [INFO] [stderr] Downloaded isatty v0.1.8 [INFO] [stderr] Downloaded lazy_static v1.4.0 [INFO] [stderr] Downloaded failure_derive v0.1.5 [INFO] [stderr] Downloaded serde_derive v1.0.66 [INFO] [stderr] Downloaded cc v1.0.36 [INFO] [stderr] Downloaded serde v1.0.66 [INFO] [stderr] Downloaded backtrace v0.3.15 [INFO] [stderr] Downloaded scoped_threadpool v0.1.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d83854445836f10e677b88c0da11e675e3e3a41317b9344dc9e231c882cf090 [INFO] running `Command { std: "docker" "start" "-a" "5d83854445836f10e677b88c0da11e675e3e3a41317b9344dc9e231c882cf090", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d83854445836f10e677b88c0da11e675e3e3a41317b9344dc9e231c882cf090", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d83854445836f10e677b88c0da11e675e3e3a41317b9344dc9e231c882cf090", kill_on_drop: false }` [INFO] [stdout] 5d83854445836f10e677b88c0da11e675e3e3a41317b9344dc9e231c882cf090 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a59243db5dd7acac037cf218b8993b8af7cb9807b2aa4aa41b9d6f2bdcaad46 [INFO] running `Command { std: "docker" "start" "-a" "4a59243db5dd7acac037cf218b8993b8af7cb9807b2aa4aa41b9d6f2bdcaad46", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.54 [INFO] [stderr] Compiling serde v1.0.66 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling easy-shortcuts v0.3.0 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling lapp v0.4.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling quote v0.6.3 [INFO] [stderr] Compiling json v0.11.12 [INFO] [stderr] Compiling syn v0.14.2 [INFO] [stderr] Compiling open v1.2.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling isatty v0.1.8 [INFO] [stderr] Compiling serde_derive v1.0.66 [INFO] [stderr] Compiling toml v0.4.6 [INFO] [stderr] Compiling runner v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `source` is never read [INFO] [stdout] --> src/cargo_lock.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Package { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub source: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/cargo_lock.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_CargoLock` [INFO] [stdout] 7 | pub struct CargoLock { [INFO] [stdout] | --------- `CargoLock` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/cargo_lock.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Package` [INFO] [stdout] 12 | pub struct Package { [INFO] [stdout] | ------- `Package` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.76s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.2 [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" "4a59243db5dd7acac037cf218b8993b8af7cb9807b2aa4aa41b9d6f2bdcaad46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a59243db5dd7acac037cf218b8993b8af7cb9807b2aa4aa41b9d6f2bdcaad46", kill_on_drop: false }` [INFO] [stdout] 4a59243db5dd7acac037cf218b8993b8af7cb9807b2aa4aa41b9d6f2bdcaad46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c4f768941d820104919d471c48b4fccfaf22b9d2c9dd569842860ff6d7f704be [INFO] running `Command { std: "docker" "start" "-a" "c4f768941d820104919d471c48b4fccfaf22b9d2c9dd569842860ff6d7f704be", kill_on_drop: false }` [INFO] [stderr] Compiling runner v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] error: macro expansion ignores `{` and any tokens following [INFO] [stdout] --> /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/macros.rs:142:23 [INFO] [stdout] | [INFO] [stdout] ::: examples/json.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / println!("{}", [INFO] [stdout] 5 | | json! ({ [INFO] [stdout] 6 | | "hello": 42, [INFO] [stdout] 7 | | }) [INFO] [stdout] 8 | | ); [INFO] [stdout] | |_- caused by the macro expansion here [INFO] [stdout] | [INFO] [stdout] = note: the usage of `println!` is likely invalid in item context [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_json` [INFO] [stdout] --> examples/json.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `json` [INFO] [stdout] --> examples/json.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | ); [INFO] [stdout] | ^ consider adding a `main` function to `examples/json.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `runner` (example "json") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> examples/read.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | let code = fs::read_to_string("read.rs")?; [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | `let` cannot be used for global variables [INFO] [stdout] | help: consider using `static` or `const` instead of `let` [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `runner` (example "read") due to 1 previous error [INFO] [stdout] error: macro expansion ignores `{` and any tokens following [INFO] [stdout] --> /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/macros.rs:142:23 [INFO] [stdout] | [INFO] [stdout] ::: examples/hello.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | println!("hello, world!"); [INFO] [stdout] | ------------------------- caused by the macro expansion here [INFO] [stdout] | [INFO] [stdout] = note: the usage of `println!` is likely invalid in item context [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `hello` [INFO] [stdout] --> examples/hello.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | println!("hello, world!"); [INFO] [stdout] | ^ consider adding a `main` function to `examples/hello.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> examples/regex.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | let re = Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | `let` cannot be used for global variables [INFO] [stdout] | help: consider using `static` or `const` instead of `let` [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `runner` (example "regex") due to 1 previous error [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> examples/filetime.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | let metadata = fs::metadata("filetime.rs").unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | `let` cannot be used for global variables [INFO] [stdout] | help: consider using `static` or `const` instead of `let` [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `runner` (example "filetime") due to 1 previous error [INFO] [stderr] error: could not compile `runner` (example "hello") due to 2 previous errors [INFO] [stdout] warning: field `source` is never read [INFO] [stdout] --> src/cargo_lock.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Package { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub source: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/cargo_lock.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_CargoLock` [INFO] [stdout] 7 | pub struct CargoLock { [INFO] [stdout] | --------- `CargoLock` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/cargo_lock.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Package` [INFO] [stdout] 12 | pub struct Package { [INFO] [stdout] | ------- `Package` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c4f768941d820104919d471c48b4fccfaf22b9d2c9dd569842860ff6d7f704be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4f768941d820104919d471c48b4fccfaf22b9d2c9dd569842860ff6d7f704be", kill_on_drop: false }` [INFO] [stdout] c4f768941d820104919d471c48b4fccfaf22b9d2c9dd569842860ff6d7f704be