[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 try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 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-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hahatianx/c-compiler on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "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-tc2/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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1000295dd869b9a0fd50c36585432d37267f95d30d5e2c78a0220b08e1184592 [INFO] running `Command { std: "docker" "start" "-a" "1000295dd869b9a0fd50c36585432d37267f95d30d5e2c78a0220b08e1184592", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1000295dd869b9a0fd50c36585432d37267f95d30d5e2c78a0220b08e1184592", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1000295dd869b9a0fd50c36585432d37267f95d30d5e2c78a0220b08e1184592", kill_on_drop: false }` [INFO] [stdout] 1000295dd869b9a0fd50c36585432d37267f95d30d5e2c78a0220b08e1184592 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55ffaa009bd8127807101880cf3d10d3746da6541e388dc910eca4201009a6d5 [INFO] running `Command { std: "docker" "start" "-a" "55ffaa009bd8127807101880cf3d10d3746da6541e388dc910eca4201009a6d5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling equivalent v1.0.1 [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: 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] error: this conversion is useless `CompilerErrorKind` to `CompilerErrorKind` [INFO] [stdout] --> src/codegen/module/output.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | Err(CompilerErrorKind::FileError(e.to_string()).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `CompilerErrorKind` to `CompilerErrorKind` [INFO] [stdout] --> src/codegen/module/output.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | Err(e) => Err(CompilerErrorKind::FileError(e.to_string()).into()), [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 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] [stdout] error: this conversion is useless `CompilerErrorKind` to `CompilerErrorKind` [INFO] [stdout] --> src/codegen/module/output.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | Err(CompilerErrorKind::FileError(e.to_string()).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `CompilerErrorKind` to `CompilerErrorKind` [INFO] [stdout] --> src/codegen/module/output.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | Err(e) => Err(CompilerErrorKind::FileError(e.to_string()).into()), [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 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] error: could not compile `c-compiler` (bin "c-compiler") due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `c-compiler` (bin "c-compiler" test) due to 2 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "55ffaa009bd8127807101880cf3d10d3746da6541e388dc910eca4201009a6d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55ffaa009bd8127807101880cf3d10d3746da6541e388dc910eca4201009a6d5", kill_on_drop: false }` [INFO] [stdout] 55ffaa009bd8127807101880cf3d10d3746da6541e388dc910eca4201009a6d5