[INFO] cloning repository https://github.com/higumachan/rust-9cc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/higumachan/rust-9cc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhigumachan%2Frust-9cc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhigumachan%2Frust-9cc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c8fe6951d269f018702c835fe007d735d82c3ca9 [INFO] checking higumachan/rust-9cc against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhigumachan%2Frust-9cc" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/higumachan/rust-9cc on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/higumachan/rust-9cc [INFO] finished tweaking git repo https://github.com/higumachan/rust-9cc [INFO] tweaked toml for git repo https://github.com/higumachan/rust-9cc written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/higumachan/rust-9cc 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e4ca601ab2847da549a24e5d5b6a8691421e3dcec0b71082056847fcfcf205c8 [INFO] running `Command { std: "docker" "start" "-a" "e4ca601ab2847da549a24e5d5b6a8691421e3dcec0b71082056847fcfcf205c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e4ca601ab2847da549a24e5d5b6a8691421e3dcec0b71082056847fcfcf205c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4ca601ab2847da549a24e5d5b6a8691421e3dcec0b71082056847fcfcf205c8", kill_on_drop: false }` [INFO] [stdout] e4ca601ab2847da549a24e5d5b6a8691421e3dcec0b71082056847fcfcf205c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df13c90fcd0a6733a01693a82ad9902b1bee9a5a1e493179c089148fa0c7e214 [INFO] running `Command { std: "docker" "start" "-a" "df13c90fcd0a6733a01693a82ad9902b1bee9a5a1e493179c089148fa0c7e214", kill_on_drop: false }` [INFO] [stderr] Checking rust-9cc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DefineVariable`, `Parameter`, and `REGISTER_SIZE` [INFO] [stdout] --> src/generator.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{DefineVariable, Node, Operator2, Parameter, Type, REGISTER_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DefineVariable`, `Parameter`, and `REGISTER_SIZE` [INFO] [stdout] --> src/generator.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{DefineVariable, Node, Operator2, Parameter, Type, REGISTER_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/generator.rs:219:32 [INFO] [stdout] | [INFO] [stdout] 219 | for (register, param) in REGISTERS.iter().zip(define_function.params().iter()) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/generator.rs:219:32 [INFO] [stdout] | [INFO] [stdout] 219 | for (register, param) in REGISTERS.iter().zip(define_function.params().iter()) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/generator.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | InvalidTypeSize(usize), [INFO] [stdout] | --------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenerateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 14 | InvalidTypeSize(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DuplicatedVariable` and `UndefinedVariable` are never constructed [INFO] [stdout] --> src/generator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum GenerateError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | DuplicatedVariable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | UndefinedVariable(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GenerateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `ty` are never used [INFO] [stdout] --> src/parser.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Parameter { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn ty(&self) -> &Type { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | ExpectReserved(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 66 | ExpectReserved(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | ExpectInt(Token), [INFO] [stdout] | --------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 69 | ExpectInt(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | NotDefinedVariable(String), [INFO] [stdout] | ------------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 71 | NotDefinedVariable(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpectFunctionDefine` and `NotDefinedFunction` are never constructed [INFO] [stdout] --> src/parser.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum ParseError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 68 | ExpectFunctionDefine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | NotDefinedFunction(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `consume_int` is never used [INFO] [stdout] --> src/parser.rs:388:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl TokenStream { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 388 | fn consume_int(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ne` is never constructed [INFO] [stdout] --> src/parser.rs:567:5 [INFO] [stdout] | [INFO] [stdout] 561 | pub enum Operator2 { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 567 | Ne, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator2` 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 `implicit_conversion` is never used [INFO] [stdout] --> src/parser.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 579 | impl Type { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 604 | pub fn implicit_conversion(self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/parser.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 613 | pub struct LocalVariable { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 614 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalVariable` 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: methods `name` and `ty` are never used [INFO] [stdout] --> src/parser.rs:623:12 [INFO] [stdout] | [INFO] [stdout] 619 | impl LocalVariable { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 623 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 629 | pub fn ty(&self) -> &Type { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_local_value` is never used [INFO] [stdout] --> src/parser.rs:811:12 [INFO] [stdout] | [INFO] [stdout] 802 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 811 | pub fn as_local_value(&self) -> Option<&LocalVariable> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `reserved`, `as_reserved`, `as_num`, and `as_eof` are never used [INFO] [stdout] --> src/tokenizer.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn reserved(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn as_reserved(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn as_num(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn as_eof(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `message`, `line_number`, `source_code_line`, and `pos` are never read [INFO] [stdout] --> src/tokenizer.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct TokenizeError { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 69 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 70 | line_number: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 71 | source_code_line: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | pos: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenizeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/generator.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | InvalidTypeSize(usize), [INFO] [stdout] | --------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenerateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 14 | InvalidTypeSize(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DuplicatedVariable` and `UndefinedVariable` are never constructed [INFO] [stdout] --> src/generator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum GenerateError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | DuplicatedVariable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | UndefinedVariable(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GenerateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `ty` are never used [INFO] [stdout] --> src/parser.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Parameter { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn ty(&self) -> &Type { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | ExpectReserved(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 66 | ExpectReserved(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | ExpectInt(Token), [INFO] [stdout] | --------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 69 | ExpectInt(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | NotDefinedVariable(String), [INFO] [stdout] | ------------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 71 | NotDefinedVariable(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpectFunctionDefine` and `NotDefinedFunction` are never constructed [INFO] [stdout] --> src/parser.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum ParseError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 68 | ExpectFunctionDefine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | NotDefinedFunction(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `consume_int` is never used [INFO] [stdout] --> src/parser.rs:388:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl TokenStream { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 388 | fn consume_int(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ne` is never constructed [INFO] [stdout] --> src/parser.rs:567:5 [INFO] [stdout] | [INFO] [stdout] 561 | pub enum Operator2 { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 567 | Ne, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator2` 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 `implicit_conversion` is never used [INFO] [stdout] --> src/parser.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 579 | impl Type { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 604 | pub fn implicit_conversion(self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/parser.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 613 | pub struct LocalVariable { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 614 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalVariable` 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: methods `name` and `ty` are never used [INFO] [stdout] --> src/parser.rs:623:12 [INFO] [stdout] | [INFO] [stdout] 619 | impl LocalVariable { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 623 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 629 | pub fn ty(&self) -> &Type { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_local_value` is never used [INFO] [stdout] --> src/parser.rs:811:12 [INFO] [stdout] | [INFO] [stdout] 802 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 811 | pub fn as_local_value(&self) -> Option<&LocalVariable> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `reserved`, `as_reserved`, `as_num`, and `as_eof` are never used [INFO] [stdout] --> src/tokenizer.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn reserved(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn as_reserved(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn as_num(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn as_eof(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `message`, `line_number`, `source_code_line`, and `pos` are never read [INFO] [stdout] --> src/tokenizer.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct TokenizeError { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 69 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 70 | line_number: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 71 | source_code_line: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | pos: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenizeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "df13c90fcd0a6733a01693a82ad9902b1bee9a5a1e493179c089148fa0c7e214", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df13c90fcd0a6733a01693a82ad9902b1bee9a5a1e493179c089148fa0c7e214", kill_on_drop: false }` [INFO] [stdout] df13c90fcd0a6733a01693a82ad9902b1bee9a5a1e493179c089148fa0c7e214 [INFO] checking higumachan/rust-9cc against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhigumachan%2Frust-9cc" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/higumachan/rust-9cc on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/higumachan/rust-9cc [INFO] finished tweaking git repo https://github.com/higumachan/rust-9cc [INFO] tweaked toml for git repo https://github.com/higumachan/rust-9cc written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/higumachan/rust-9cc 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e1485cc9890cc257ebdda35861ee6e8040a4c9322cd3c7789b49b3196c32f5b9 [INFO] running `Command { std: "docker" "start" "-a" "e1485cc9890cc257ebdda35861ee6e8040a4c9322cd3c7789b49b3196c32f5b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e1485cc9890cc257ebdda35861ee6e8040a4c9322cd3c7789b49b3196c32f5b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1485cc9890cc257ebdda35861ee6e8040a4c9322cd3c7789b49b3196c32f5b9", kill_on_drop: false }` [INFO] [stdout] e1485cc9890cc257ebdda35861ee6e8040a4c9322cd3c7789b49b3196c32f5b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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 -Dtail_expr_drop_order" "-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27b7207f04b133e83f247bd22ecd7d0ba626f670bcbc489001fb064217e1cb1c [INFO] running `Command { std: "docker" "start" "-a" "27b7207f04b133e83f247bd22ecd7d0ba626f670bcbc489001fb064217e1cb1c", kill_on_drop: false }` [INFO] [stderr] Checking rust-9cc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DefineVariable`, `Parameter`, and `REGISTER_SIZE` [INFO] [stdout] --> src/generator.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{DefineVariable, Node, Operator2, Parameter, Type, REGISTER_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DefineVariable`, `Parameter`, and `REGISTER_SIZE` [INFO] [stdout] --> src/generator.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{DefineVariable, Node, Operator2, Parameter, Type, REGISTER_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/generator.rs:219:32 [INFO] [stdout] | [INFO] [stdout] 219 | for (register, param) in REGISTERS.iter().zip(define_function.params().iter()) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/generator.rs:219:32 [INFO] [stdout] | [INFO] [stdout] 219 | for (register, param) in REGISTERS.iter().zip(define_function.params().iter()) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/generator.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | InvalidTypeSize(usize), [INFO] [stdout] | --------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenerateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 14 | InvalidTypeSize(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DuplicatedVariable` and `UndefinedVariable` are never constructed [INFO] [stdout] --> src/generator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum GenerateError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | DuplicatedVariable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | UndefinedVariable(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GenerateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `ty` are never used [INFO] [stdout] --> src/parser.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Parameter { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn ty(&self) -> &Type { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | ExpectReserved(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 66 | ExpectReserved(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | ExpectInt(Token), [INFO] [stdout] | --------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 69 | ExpectInt(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | NotDefinedVariable(String), [INFO] [stdout] | ------------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 71 | NotDefinedVariable(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpectFunctionDefine` and `NotDefinedFunction` are never constructed [INFO] [stdout] --> src/parser.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum ParseError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 68 | ExpectFunctionDefine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | NotDefinedFunction(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `consume_int` is never used [INFO] [stdout] --> src/parser.rs:388:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl TokenStream { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 388 | fn consume_int(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ne` is never constructed [INFO] [stdout] --> src/parser.rs:567:5 [INFO] [stdout] | [INFO] [stdout] 561 | pub enum Operator2 { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 567 | Ne, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator2` 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 `implicit_conversion` is never used [INFO] [stdout] --> src/parser.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 579 | impl Type { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 604 | pub fn implicit_conversion(self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/parser.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 613 | pub struct LocalVariable { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 614 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalVariable` 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: methods `name` and `ty` are never used [INFO] [stdout] --> src/parser.rs:623:12 [INFO] [stdout] | [INFO] [stdout] 619 | impl LocalVariable { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 623 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 629 | pub fn ty(&self) -> &Type { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_local_value` is never used [INFO] [stdout] --> src/parser.rs:811:12 [INFO] [stdout] | [INFO] [stdout] 802 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 811 | pub fn as_local_value(&self) -> Option<&LocalVariable> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `reserved`, `as_reserved`, `as_num`, and `as_eof` are never used [INFO] [stdout] --> src/tokenizer.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn reserved(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn as_reserved(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn as_num(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn as_eof(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `message`, `line_number`, `source_code_line`, and `pos` are never read [INFO] [stdout] --> src/tokenizer.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct TokenizeError { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 69 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 70 | line_number: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 71 | source_code_line: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | pos: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenizeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/tokenizer.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 97 | let p_iter = p_iter.clone(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 98 | / s.chars() [INFO] [stdout] 99 | | .zip(p_iter.take(s.len())) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-9cc` (bin "rust-9cc") due to 2 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/generator.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | InvalidTypeSize(usize), [INFO] [stdout] | --------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenerateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 14 | InvalidTypeSize(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DuplicatedVariable` and `UndefinedVariable` are never constructed [INFO] [stdout] --> src/generator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum GenerateError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | DuplicatedVariable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | UndefinedVariable(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GenerateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `ty` are never used [INFO] [stdout] --> src/parser.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Parameter { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn ty(&self) -> &Type { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | ExpectReserved(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 66 | ExpectReserved(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | ExpectInt(Token), [INFO] [stdout] | --------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 69 | ExpectInt(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | NotDefinedVariable(String), [INFO] [stdout] | ------------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 71 | NotDefinedVariable(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpectFunctionDefine` and `NotDefinedFunction` are never constructed [INFO] [stdout] --> src/parser.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum ParseError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 68 | ExpectFunctionDefine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | NotDefinedFunction(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `consume_int` is never used [INFO] [stdout] --> src/parser.rs:388:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl TokenStream { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 388 | fn consume_int(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ne` is never constructed [INFO] [stdout] --> src/parser.rs:567:5 [INFO] [stdout] | [INFO] [stdout] 561 | pub enum Operator2 { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 567 | Ne, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator2` 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 `implicit_conversion` is never used [INFO] [stdout] --> src/parser.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 579 | impl Type { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 604 | pub fn implicit_conversion(self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/parser.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 613 | pub struct LocalVariable { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 614 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalVariable` 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: methods `name` and `ty` are never used [INFO] [stdout] --> src/parser.rs:623:12 [INFO] [stdout] | [INFO] [stdout] 619 | impl LocalVariable { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 623 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 629 | pub fn ty(&self) -> &Type { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_local_value` is never used [INFO] [stdout] --> src/parser.rs:811:12 [INFO] [stdout] | [INFO] [stdout] 802 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 811 | pub fn as_local_value(&self) -> Option<&LocalVariable> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `reserved`, `as_reserved`, `as_num`, and `as_eof` are never used [INFO] [stdout] --> src/tokenizer.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn reserved(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn as_reserved(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn as_num(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn as_eof(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `message`, `line_number`, `source_code_line`, and `pos` are never read [INFO] [stdout] --> src/tokenizer.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct TokenizeError { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 69 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 70 | line_number: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 71 | source_code_line: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | pos: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenizeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/tokenizer.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 97 | let p_iter = p_iter.clone(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 98 | / s.chars() [INFO] [stdout] 99 | | .zip(p_iter.take(s.len())) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-9cc` (bin "rust-9cc" test) due to 2 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "27b7207f04b133e83f247bd22ecd7d0ba626f670bcbc489001fb064217e1cb1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27b7207f04b133e83f247bd22ecd7d0ba626f670bcbc489001fb064217e1cb1c", kill_on_drop: false }` [INFO] [stdout] 27b7207f04b133e83f247bd22ecd7d0ba626f670bcbc489001fb064217e1cb1c