[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 24e1a22664233bce1f9b5dc6eee7c1f74327e28c for pr-159343-retry [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhahatianx%2Fc-compiler" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hahatianx/c-compiler on toolchain 24e1a22664233bce1f9b5dc6eee7c1f74327e28c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] eb92ec2d7050c9593a5f8196b218790b28ed6eda95e88838b425eb71cd766514 [INFO] running `Command { std: "docker" "start" "eb92ec2d7050c9593a5f8196b218790b28ed6eda95e88838b425eb71cd766514", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb92ec2d7050c9593a5f8196b218790b28ed6eda95e88838b425eb71cd766514", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "eb92ec2d7050c9593a5f8196b218790b28ed6eda95e88838b425eb71cd766514" "/opt/rustwide/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb92ec2d7050c9593a5f8196b218790b28ed6eda95e88838b425eb71cd766514", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "eb92ec2d7050c9593a5f8196b218790b28ed6eda95e88838b425eb71cd766514" "/opt/rustwide/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling hashbrown v0.15.2 [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 quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Compiling indexmap v2.7.0 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/scanner/keyword_trie.rs:102:25 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn into_checker(&self) -> KeywordTrieChecker { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 102 | pub fn into_checker(&self) -> KeywordTrieChecker<'_> { [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: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 self.prefix == not_implemented_parser { [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 self.infix == not_implemented_parser { [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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/source_code.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn into_scanner(&self) -> Scanner { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 22 | pub fn into_scanner(&self) -> Scanner<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/codegen/x86/x86_generator.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(output: &mut FileOutput) -> X86Generator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(output: &mut FileOutput) -> X86Generator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/scanner/keyword_trie.rs:102:25 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn into_checker(&self) -> KeywordTrieChecker { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 102 | pub fn into_checker(&self) -> KeywordTrieChecker<'_> { [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: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 self.prefix == not_implemented_parser { [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 self.infix == not_implemented_parser { [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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/source_code.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn into_scanner(&self) -> Scanner { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 22 | pub fn into_scanner(&self) -> Scanner<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/codegen/x86/x86_generator.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(output: &mut FileOutput) -> X86Generator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(output: &mut FileOutput) -> X86Generator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.93s [INFO] running `Command { std: "docker" "inspect" "eb92ec2d7050c9593a5f8196b218790b28ed6eda95e88838b425eb71cd766514", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb92ec2d7050c9593a5f8196b218790b28ed6eda95e88838b425eb71cd766514", kill_on_drop: false }` [INFO] [stdout] eb92ec2d7050c9593a5f8196b218790b28ed6eda95e88838b425eb71cd766514