[INFO] cloning repository https://github.com/andyslucky/Tok2sed [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andyslucky/Tok2sed" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandyslucky%2FTok2sed", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandyslucky%2FTok2sed'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b89ddafec34615825a82bfa9594509a7b2e960aa [INFO] checking andyslucky/Tok2sed/b89ddafec34615825a82bfa9594509a7b2e960aa against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandyslucky%2FTok2sed" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andyslucky/Tok2sed on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/andyslucky/Tok2sed [INFO] finished tweaking git repo https://github.com/andyslucky/Tok2sed [INFO] tweaked toml for git repo https://github.com/andyslucky/Tok2sed written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/andyslucky/Tok2sed 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/andyslucky/libtok2me` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5720acc02d97b9708a9c161b7c1fa0d86625ffc3c65dcf1b3bc89349bed6c872 [INFO] running `Command { std: "docker" "start" "-a" "5720acc02d97b9708a9c161b7c1fa0d86625ffc3c65dcf1b3bc89349bed6c872", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5720acc02d97b9708a9c161b7c1fa0d86625ffc3c65dcf1b3bc89349bed6c872", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5720acc02d97b9708a9c161b7c1fa0d86625ffc3c65dcf1b3bc89349bed6c872", kill_on_drop: false }` [INFO] [stdout] 5720acc02d97b9708a9c161b7c1fa0d86625ffc3c65dcf1b3bc89349bed6c872 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f49c9d738afdb9020728761107fe2ed1edeb9b13d754c525ef6e034743c9f699 [INFO] running `Command { std: "docker" "start" "-a" "f49c9d738afdb9020728761107fe2ed1edeb9b13d754c525ef6e034743c9f699", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking fixedbitset v0.4.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking petgraph v0.6.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling derive-new v0.5.9 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking serde_yaml v0.8.17 [INFO] [stderr] Checking libtok2me v0.1.0 (https://github.com/andyslucky/libtok2me#1eb448cc) [INFO] [stderr] Checking tok2sed v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufWriter`, `any::type_name`, `format`, and `thread::current` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | fmt::{format, Debug}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | fs::File, [INFO] [stdout] 10 | io::{BufWriter, Write}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | ptr::null_mut, [INFO] [stdout] 12 | thread::current, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `data::Build` and `graph::Graph` [INFO] [stdout] --> src/main.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | use petgraph::{data::Build, graph::Graph}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/main.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | use std::{collections::HashMap, error::Error as IError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OPEN_GROUP` should have an upper camel case name [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | OPEN_GROUP, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `OpenGroup` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CLOSE_GROUP` should have an upper camel case name [INFO] [stdout] --> src/main.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | CLOSE_GROUP, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `CloseGroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `any::type_name`, `format`, and `thread::current` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | fmt::{format, Debug}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | fs::File, [INFO] [stdout] 10 | io::{BufWriter, Write}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | ptr::null_mut, [INFO] [stdout] 12 | thread::current, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `data::Build` and `graph::Graph` [INFO] [stdout] --> src/main.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | use petgraph::{data::Build, graph::Graph}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/main.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | use std::{collections::HashMap, error::Error as IError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OPEN_GROUP` should have an upper camel case name [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | OPEN_GROUP, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `OpenGroup` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CLOSE_GROUP` should have an upper camel case name [INFO] [stdout] --> src/main.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | CLOSE_GROUP, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `CloseGroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | io::{BufWriter, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:261:53 [INFO] [stdout] | [INFO] [stdout] 261 | ... TokenOrGroup::ExprToken(t) => panic!("This is pretty much impossible"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [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/main.rs:256:29 [INFO] [stdout] | [INFO] [stdout] 256 | let mut new_group_enum = TokenOrGroup::ExprGroup(new_group); [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/main.rs:259:29 [INFO] [stdout] | [INFO] [stdout] 259 | let mut new_group = match current_group.exprs.last_mut().unwrap() { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `export_state_mach` and `disable_comments` are never read [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 47 | struct Opts { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 63 | export_state_mach: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | disable_comments: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Opts` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | io::{BufWriter, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:261:53 [INFO] [stdout] | [INFO] [stdout] 261 | ... TokenOrGroup::ExprToken(t) => panic!("This is pretty much impossible"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [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/main.rs:256:29 [INFO] [stdout] | [INFO] [stdout] 256 | let mut new_group_enum = TokenOrGroup::ExprGroup(new_group); [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/main.rs:259:29 [INFO] [stdout] | [INFO] [stdout] 259 | let mut new_group = match current_group.exprs.last_mut().unwrap() { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `export_state_mach` and `disable_comments` are never read [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 47 | struct Opts { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 63 | export_state_mach: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | disable_comments: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Opts` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.09s [INFO] running `Command { std: "docker" "inspect" "f49c9d738afdb9020728761107fe2ed1edeb9b13d754c525ef6e034743c9f699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f49c9d738afdb9020728761107fe2ed1edeb9b13d754c525ef6e034743c9f699", kill_on_drop: false }` [INFO] [stdout] f49c9d738afdb9020728761107fe2ed1edeb9b13d754c525ef6e034743c9f699