[INFO] cloning repository https://github.com/hahatianx/c-compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hahatianx/c-compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhahatianx%2Fc-compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhahatianx%2Fc-compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f9407f2f6b09bb699da8016b10760587e34c09d [INFO] checking hahatianx/c-compiler against master#336209eef13882bd1e211b24779584cb7ef911eb for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhahatianx%2Fc-compiler" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hahatianx/c-compiler on toolchain 336209eef13882bd1e211b24779584cb7ef911eb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hahatianx/c-compiler [INFO] finished tweaking git repo https://github.com/hahatianx/c-compiler [INFO] tweaked toml for git repo https://github.com/hahatianx/c-compiler written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hahatianx/c-compiler 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" "+336209eef13882bd1e211b24779584cb7ef911eb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 17b0da4bdcb67a4ec2f6ef4859f1a4580b6c803d0fe2fb745e2094d495127ca6 [INFO] running `Command { std: "docker" "start" "-a" "17b0da4bdcb67a4ec2f6ef4859f1a4580b6c803d0fe2fb745e2094d495127ca6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "17b0da4bdcb67a4ec2f6ef4859f1a4580b6c803d0fe2fb745e2094d495127ca6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17b0da4bdcb67a4ec2f6ef4859f1a4580b6c803d0fe2fb745e2094d495127ca6", kill_on_drop: false }` [INFO] [stdout] 17b0da4bdcb67a4ec2f6ef4859f1a4580b6c803d0fe2fb745e2094d495127ca6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4aabd3b2ef0e72cfe4f4cb0d2eb813ae54b75a709c2f9308f224889e49ba94ed [INFO] running `Command { std: "docker" "start" "-a" "4aabd3b2ef0e72cfe4f4cb0d2eb813ae54b75a709c2f9308f224889e49ba94ed", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Checking num_enum v0.7.3 [INFO] [stderr] Checking c-compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/codegen/x86/x86_generator.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | / /** [INFO] [stdout] 54 | | return 0; [INFO] [stdout] 55 | | iret -> exit(main()); [INFO] [stdout] 56 | | */ [INFO] [stdout] | |__________^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/codegen/x86/x86_generator.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | / /** [INFO] [stdout] 54 | | return 0; [INFO] [stdout] 55 | | iret -> exit(main()); [INFO] [stdout] 56 | | */ [INFO] [stdout] | |__________^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/scanner/tokens.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | other => unimplemented!("{:?}", other), [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/scanner/tokens.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 97 | Token::Single(tt) => write!(f, "[{:?}]", tt), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 98 | Token::Identifier(ident) => write!(f, "[Identifier: {}]", ident), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 99 | Token::Number(tt, value) => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 106 | Token::Text(tt, value) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 114 | other => unimplemented!("{:?}", other), [INFO] [stdout] | ^^^^^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/scanner/tokens.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | other => unimplemented!("{:?}", other), [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/scanner/tokens.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 97 | Token::Single(tt) => write!(f, "[{:?}]", tt), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 98 | Token::Identifier(ident) => write!(f, "[Identifier: {}]", ident), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 99 | Token::Number(tt, value) => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 106 | Token::Text(tt, value) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 114 | other => unimplemented!("{:?}", other), [INFO] [stdout] | ^^^^^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/codegen/x86/x86_generator.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 66 | fn cg_push(&mut self, reg: usize) -> crate::common::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/codegen/x86/x86_generator.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | fn cg_pop(&mut self, reg: usize) -> crate::common::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/parser/precedence.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | if self.prefix == not_implemented_parser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 48 | if std::ptr::fn_addr_eq(self.prefix, not_implemented_parser as for<'a, 'b> fn(&'a mut Parser<'b>, bool) -> std::result::Result, CompilerErrorKind>) { [INFO] [stdout] | +++++++++++++++++++++ ~ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/codegen/x86/x86_generator.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 66 | fn cg_push(&mut self, reg: usize) -> crate::common::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/parser/precedence.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | if self.infix == not_implemented_parser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 56 | if std::ptr::fn_addr_eq(self.infix, not_implemented_parser as for<'a, 'b> fn(&'a mut Parser<'b>, bool) -> std::result::Result, CompilerErrorKind>) { [INFO] [stdout] | +++++++++++++++++++++ ~ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/codegen/x86/x86_generator.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | fn cg_pop(&mut self, reg: usize) -> crate::common::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/parser/precedence.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | if self.prefix == not_implemented_parser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 48 | if std::ptr::fn_addr_eq(self.prefix, not_implemented_parser as for<'a, 'b> fn(&'a mut Parser<'b>, bool) -> std::result::Result, CompilerErrorKind>) { [INFO] [stdout] | +++++++++++++++++++++ ~ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/parser/precedence.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | if self.infix == not_implemented_parser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 56 | if std::ptr::fn_addr_eq(self.infix, not_implemented_parser as for<'a, 'b> fn(&'a mut Parser<'b>, bool) -> std::result::Result, CompilerErrorKind>) { [INFO] [stdout] | +++++++++++++++++++++ ~ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.10s [INFO] running `Command { std: "docker" "inspect" "4aabd3b2ef0e72cfe4f4cb0d2eb813ae54b75a709c2f9308f224889e49ba94ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4aabd3b2ef0e72cfe4f4cb0d2eb813ae54b75a709c2f9308f224889e49ba94ed", kill_on_drop: false }` [INFO] [stdout] 4aabd3b2ef0e72cfe4f4cb0d2eb813ae54b75a709c2f9308f224889e49ba94ed