[INFO] cloning repository https://github.com/Ischca/c-compiler-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ischca/c-compiler-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIschca%2Fc-compiler-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIschca%2Fc-compiler-with-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e1f3da9cbaead0dd7352c5467a293506d2f69926 [INFO] checking Ischca/c-compiler-with-rust against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIschca%2Fc-compiler-with-rust" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ischca/c-compiler-with-rust on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ischca/c-compiler-with-rust [INFO] finished tweaking git repo https://github.com/Ischca/c-compiler-with-rust [INFO] tweaked toml for git repo https://github.com/Ischca/c-compiler-with-rust written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/Ischca/c-compiler-with-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b9db1a52905a54a441c5d8cd37bae5d1a3eda4054b9fcbe46f526554eee20fab [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b9db1a52905a54a441c5d8cd37bae5d1a3eda4054b9fcbe46f526554eee20fab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b9db1a52905a54a441c5d8cd37bae5d1a3eda4054b9fcbe46f526554eee20fab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9db1a52905a54a441c5d8cd37bae5d1a3eda4054b9fcbe46f526554eee20fab", kill_on_drop: false }` [INFO] [stdout] b9db1a52905a54a441c5d8cd37bae5d1a3eda4054b9fcbe46f526554eee20fab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae7669ae8f649495282684dcbf590d0996c360abddc9d64ff3a319312dc35278 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ae7669ae8f649495282684dcbf590d0996c360abddc9d64ff3a319312dc35278", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Checking c-compiler-with-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: empty character literal [INFO] [stdout] --> src/main.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | p.chars().fold('', |mut acc: Box, c:char| { [INFO] [stdout] | ^ empty character literal [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: empty character literal [INFO] [stdout] --> src/main.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | p.chars().fold('', |mut acc: Box, c:char| { [INFO] [stdout] | ^ empty character literal [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TK_EOF` in this scope [INFO] [stdout] --> src/main.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | new_token(TK_EOF, cur, p); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::TokenKind::TK_EOF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::calloc` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::calloc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::raw::c_char` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::os::raw::c_char; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TK_RESERVED` should have an upper camel case name [INFO] [stdout] --> src/main.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | TK_RESERVED, // 記号 [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `TkReserved` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TK_NUM` should have an upper camel case name [INFO] [stdout] --> src/main.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | TK_NUM, // 整数トークン [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `TkNum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TK_EOF` should have an upper camel case name [INFO] [stdout] --> src/main.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | TK_EOF, // 入力の終わりを表すトークン [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `TkEof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TK_EOF` in this scope [INFO] [stdout] --> src/main.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | new_token(TK_EOF, cur, p); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::TokenKind::TK_EOF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::calloc` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::calloc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::raw::c_char` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::os::raw::c_char; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TK_RESERVED` should have an upper camel case name [INFO] [stdout] --> src/main.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | TK_RESERVED, // 記号 [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `TkReserved` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TK_NUM` should have an upper camel case name [INFO] [stdout] --> src/main.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | TK_NUM, // 整数トークン [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `TkNum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TK_EOF` should have an upper camel case name [INFO] [stdout] --> src/main.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | TK_EOF, // 入力の終わりを表すトークン [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `TkEof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | it if isdigit(c) != 0 => { [INFO] [stdout] | ^ expected `i32`, found `char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | it if isdigit(c) != 0 => { [INFO] [stdout] | ^ expected `i32`, found `char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:99:50 [INFO] [stdout] | [INFO] [stdout] 99 | let token = new_token(TokenKind::TK_NUM, acc, String::from(c)); [INFO] [stdout] | ^^^ expected *-ptr, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const Token` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:99:50 [INFO] [stdout] | [INFO] [stdout] 99 | let token = new_token(TokenKind::TK_NUM, acc, String::from(c)); [INFO] [stdout] | ^^^ expected *-ptr, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const Token` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/main.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 93 | / match ptr { [INFO] [stdout] 94 | | it if isspace(it as i32) != 0 => { [INFO] [stdout] 95 | | return acc; [INFO] [stdout] | | ----------- this is found to be of type `Box` [INFO] [stdout] 96 | | } [INFO] [stdout] 97 | | '+' | '-' => return new_token(TokenKind::TK_RESERVED, cur, String::from(c)), [INFO] [stdout] | | -------------------------------------------------------------- this is found to be of type `Box` [INFO] [stdout] ... | [INFO] [stdout] 101 | | return token; [INFO] [stdout] | | ------------- this is found to be of type `Box` [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | _ => eprint!("トークナイズできません"), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Box`, found `()` [INFO] [stdout] 104 | | } [INFO] [stdout] | |_____- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found unit type `()` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/main.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 93 | / match ptr { [INFO] [stdout] 94 | | it if isspace(it as i32) != 0 => { [INFO] [stdout] 95 | | return acc; [INFO] [stdout] | | ----------- this is found to be of type `Box` [INFO] [stdout] 96 | | } [INFO] [stdout] 97 | | '+' | '-' => return new_token(TokenKind::TK_RESERVED, cur, String::from(c)), [INFO] [stdout] | | -------------------------------------------------------------- this is found to be of type `Box` [INFO] [stdout] ... | [INFO] [stdout] 101 | | return token; [INFO] [stdout] | | ------------- this is found to be of type `Box` [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | _ => eprint!("トークナイズできません"), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Box`, found `()` [INFO] [stdout] 104 | | } [INFO] [stdout] | |_____- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found unit type `()` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | new_token(TK_EOF, cur, p); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] | help: try using a conversion method: `p.to_string()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | new_token(TK_EOF, cur, p); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] | help: try using a conversion method: `p.to_string()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 84 | fn tokenize(p: &str) -> Token { [INFO] [stdout] | ----- expected `Token` because of return type [INFO] [stdout] ... [INFO] [stdout] 108 | return head.next; [INFO] [stdout] | ^^^^^^^^^ expected struct `Token`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Token` [INFO] [stdout] found struct `Box>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 84 | fn tokenize(p: &str) -> Token { [INFO] [stdout] | ----- expected `Token` because of return type [INFO] [stdout] ... [INFO] [stdout] 108 | return head.next; [INFO] [stdout] | ^^^^^^^^^ expected struct `Token`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Token` [INFO] [stdout] found struct `Box>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `c-compiler-with-rust` [INFO] [stdout] error: aborting due to 7 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "ae7669ae8f649495282684dcbf590d0996c360abddc9d64ff3a319312dc35278", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae7669ae8f649495282684dcbf590d0996c360abddc9d64ff3a319312dc35278", kill_on_drop: false }` [INFO] [stdout] ae7669ae8f649495282684dcbf590d0996c360abddc9d64ff3a319312dc35278