[INFO] cloning repository https://github.com/shadept/rustcc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shadept/rustcc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshadept%2Frustcc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshadept%2Frustcc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 378928fb7d58d21d41f05f81b57144a47b3ca2a4 [INFO] checking shadept/rustcc against master#4455c8937007f3cc3c078375a335d86dbab391ce for pr-140956 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshadept%2Frustcc" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/shadept/rustcc [INFO] finished tweaking git repo https://github.com/shadept/rustcc [INFO] tweaked toml for git repo https://github.com/shadept/rustcc written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shadept/rustcc on toolchain 4455c8937007f3cc3c078375a335d86dbab391ce [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4455c8937007f3cc3c078375a335d86dbab391ce" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/shadept/rustcc 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" "+4455c8937007f3cc3c078375a335d86dbab391ce" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+4455c8937007f3cc3c078375a335d86dbab391ce" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 87cbe105b62f1a99446551bc3f3e438f0d7da806a9f656832e67285a6cd450d6 [INFO] running `Command { std: "docker" "start" "-a" "87cbe105b62f1a99446551bc3f3e438f0d7da806a9f656832e67285a6cd450d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "87cbe105b62f1a99446551bc3f3e438f0d7da806a9f656832e67285a6cd450d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87cbe105b62f1a99446551bc3f3e438f0d7da806a9f656832e67285a6cd450d6", kill_on_drop: false }` [INFO] [stdout] 87cbe105b62f1a99446551bc3f3e438f0d7da806a9f656832e67285a6cd450d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+4455c8937007f3cc3c078375a335d86dbab391ce" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3835e9243af557b9b56215659212865a7ff889585efc4ea4c305d6e39f7af54 [INFO] running `Command { std: "docker" "start" "-a" "d3835e9243af557b9b56215659212865a7ff889585efc4ea4c305d6e39f7af54", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking cc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `match_symbol` [INFO] [stdout] --> src/frontend/parser.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | macro_rules! match_symbol { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `match_symbol` [INFO] [stdout] --> src/frontend/parser.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | macro_rules! match_symbol { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bits` [INFO] [stdout] --> src/frontend/token.rs:121:42 [INFO] [stdout] | [INFO] [stdout] 121 | TokenKind::IntNumber(number, bits) => write!(f, "{}", number), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bits` [INFO] [stdout] --> src/frontend/token.rs:121:42 [INFO] [stdout] | [INFO] [stdout] 121 | TokenKind::IntNumber(number, bits) => write!(f, "{}", number), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EOF_CHAR` is never used [INFO] [stdout] --> src/frontend/cursor.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EOF_CHAR: char = '\0'; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/frontend/cursor.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Cursor<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cursor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_eof`, `peek`, `advance`, and `advance_while` are never used [INFO] [stdout] --> src/frontend/cursor.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a> Cursor<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(input: &'a str) -> Cursor<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn is_eof(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn peek(&self) -> char { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn advance(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn advance_while(&mut self, mut predicate: impl FnMut(char) -> bool) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/frontend/source_file.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Real(PathBuf), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Real(PathBuf), [INFO] [stdout] 5 + Real(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Anon` is never constructed [INFO] [stdout] --> src/frontend/source_file.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum FileName { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 5 | Real(PathBuf), [INFO] [stdout] 6 | Anon(usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SourceFile` is never constructed [INFO] [stdout] --> src/frontend/source_file.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SourceFile { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/frontend/span.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Span { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Comma`, `Colon`, and `Dot` are never constructed [INFO] [stdout] --> src/frontend/token.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum Symbol { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 42 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 43 | Semicolon, [INFO] [stdout] 44 | Colon, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | Dot, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Char`, `FloatNumber`, and `String` are never constructed [INFO] [stdout] --> src/frontend/token.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 104 | pub enum TokenKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 108 | Char(char), [INFO] [stdout] | ^^^^ [INFO] [stdout] 109 | IntNumber(i64, Bits), [INFO] [stdout] 110 | FloatNumber(f64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 111 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek2` is never used [INFO] [stdout] --> src/frontend/parser.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 177 | fn peek2(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EOF_CHAR` is never used [INFO] [stdout] --> src/frontend/cursor.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EOF_CHAR: char = '\0'; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/frontend/cursor.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Cursor<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cursor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_eof`, `peek`, `advance`, and `advance_while` are never used [INFO] [stdout] --> src/frontend/cursor.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a> Cursor<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(input: &'a str) -> Cursor<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn is_eof(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn peek(&self) -> char { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn advance(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn advance_while(&mut self, mut predicate: impl FnMut(char) -> bool) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/frontend/source_file.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Real(PathBuf), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Real(PathBuf), [INFO] [stdout] 5 + Real(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Anon` is never constructed [INFO] [stdout] --> src/frontend/source_file.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum FileName { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 5 | Real(PathBuf), [INFO] [stdout] 6 | Anon(usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SourceFile` is never constructed [INFO] [stdout] --> src/frontend/source_file.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SourceFile { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/frontend/span.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Span { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Comma`, `Colon`, and `Dot` are never constructed [INFO] [stdout] --> src/frontend/token.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum Symbol { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 42 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 43 | Semicolon, [INFO] [stdout] 44 | Colon, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | Dot, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Char`, `FloatNumber`, and `String` are never constructed [INFO] [stdout] --> src/frontend/token.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 104 | pub enum TokenKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 108 | Char(char), [INFO] [stdout] | ^^^^ [INFO] [stdout] 109 | IntNumber(i64, Bits), [INFO] [stdout] 110 | FloatNumber(f64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 111 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek2` is never used [INFO] [stdout] --> src/frontend/parser.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 177 | fn peek2(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] running `Command { std: "docker" "inspect" "d3835e9243af557b9b56215659212865a7ff889585efc4ea4c305d6e39f7af54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3835e9243af557b9b56215659212865a7ff889585efc4ea4c305d6e39f7af54", kill_on_drop: false }` [INFO] [stdout] d3835e9243af557b9b56215659212865a7ff889585efc4ea4c305d6e39f7af54