[INFO] cloning repository https://github.com/JohnPeng47/source_analyzer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JohnPeng47/source_analyzer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohnPeng47%2Fsource_analyzer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohnPeng47%2Fsource_analyzer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 77c6666e1f65bf7095beb3d3c410dd776db99498 [INFO] checking JohnPeng47/source_analyzer against master#0d37dca25a51fb900a402c94c8818ad1c2789e30 for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohnPeng47%2Fsource_analyzer" "/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/JohnPeng47/source_analyzer on toolchain 0d37dca25a51fb900a402c94c8818ad1c2789e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JohnPeng47/source_analyzer [INFO] finished tweaking git repo https://github.com/JohnPeng47/source_analyzer [INFO] tweaked toml for git repo https://github.com/JohnPeng47/source_analyzer written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/JohnPeng47/source_analyzer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a171405848249a9cced4335f21113459ab72880862caef3f170032e913982d06 [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" "a171405848249a9cced4335f21113459ab72880862caef3f170032e913982d06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a171405848249a9cced4335f21113459ab72880862caef3f170032e913982d06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a171405848249a9cced4335f21113459ab72880862caef3f170032e913982d06", kill_on_drop: false }` [INFO] [stdout] a171405848249a9cced4335f21113459ab72880862caef3f170032e913982d06 [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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 929d476916a862cbe732091c29e06f152a281010c79195633c6f71b43a60c926 [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" "929d476916a862cbe732091c29e06f152a281010c79195633c6f71b43a60c926", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking source_analyzer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `{`, found `}` [INFO] [stdout] --> src/source_file.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 112 | if function_scope [INFO] [stdout] | -- this `if` expression has a condition, but no block [INFO] [stdout] 113 | [INFO] [stdout] 114 | } [INFO] [stdout] | ^ expected `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `}` [INFO] [stdout] --> src/source_file.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 112 | if function_scope [INFO] [stdout] | -- this `if` expression has a condition, but no block [INFO] [stdout] 113 | [INFO] [stdout] 114 | } [INFO] [stdout] | ^ expected `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `HashMap` is defined multiple times [INFO] [stdout] --> src/source_file.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ------------------------- previous import of the type `HashMap` here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ `HashMap` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `HashMap` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `HashMap` is defined multiple times [INFO] [stdout] --> src/source_file.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ------------------------- previous import of the type `HashMap` here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ `HashMap` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `HashMap` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ParseSource` [INFO] [stdout] --> src/source_file.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | ParseSource::parse_brackets(line, function_scope); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ParseSource` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ParseSource` [INFO] [stdout] --> src/source_file.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | ParseSource::parse_brackets(line, class_scope); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ParseSource` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `u8` [INFO] [stdout] --> src/source_file.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | let function_scope = Vec::new(u8); [INFO] [stdout] | ^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `u8` [INFO] [stdout] --> src/source_file.rs:86:36 [INFO] [stdout] | [INFO] [stdout] 86 | let class_scope = Vec::new(u8); [INFO] [stdout] | ^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Vec` [INFO] [stdout] --> src/source_file.rs:90:28 [INFO] [stdout] | [INFO] [stdout] 90 | let function_buf = Vec::<&String>; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Vec { buf: val, len: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/source_file.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufReader, BufRead}; //BufRead implements the lines trait [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/main.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/main.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs::{self, DirEntry, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FuncSignature` [INFO] [stdout] --> src/main.rs:11:44 [INFO] [stdout] | [INFO] [stdout] 11 | use source_file::{SourceFiles, SourceFile, FuncSignature}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ParseSource` [INFO] [stdout] --> src/source_file.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | ParseSource::parse_brackets(line, function_scope); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ParseSource` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ParseSource` [INFO] [stdout] --> src/source_file.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | ParseSource::parse_brackets(line, class_scope); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ParseSource` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `u8` [INFO] [stdout] --> src/source_file.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | let function_scope = Vec::new(u8); [INFO] [stdout] | ^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `u8` [INFO] [stdout] --> src/source_file.rs:86:36 [INFO] [stdout] | [INFO] [stdout] 86 | let class_scope = Vec::new(u8); [INFO] [stdout] | ^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Vec` [INFO] [stdout] --> src/source_file.rs:90:28 [INFO] [stdout] | [INFO] [stdout] 90 | let function_buf = Vec::<&String>; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Vec { buf: val, len: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/source_file.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufReader, BufRead}; //BufRead implements the lines trait [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/main.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/main.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs::{self, DirEntry, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FuncSignature` [INFO] [stdout] --> src/main.rs:11:44 [INFO] [stdout] | [INFO] [stdout] 11 | use source_file::{SourceFiles, SourceFile, FuncSignature}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | func_list : Vec::new() [INFO] [stdout] | ^^^^^^^^^^ expected struct `HashMap`, found struct `Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap` [INFO] [stdout] found struct `Vec<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | func_list : Vec::new() [INFO] [stdout] | ^^^^^^^^^^ expected struct `HashMap`, found struct `Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap` [INFO] [stdout] found struct `Vec<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chrs` found for struct `String` in the current scope [INFO] [stdout] --> src/source_file.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | for c in line.chrs() { [INFO] [stdout] | ^^^^ help: there is an associated function with a similar name: `chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/source_file.rs:85:30 [INFO] [stdout] | [INFO] [stdout] 85 | let function_scope = Vec::new(u8); [INFO] [stdout] | ^^^^^^^^ -- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 0 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/source_file.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | let class_scope = Vec::new(u8); [INFO] [stdout] | ^^^^^^^^ -- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 0 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chrs` found for struct `String` in the current scope [INFO] [stdout] --> src/source_file.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | for c in line.chrs() { [INFO] [stdout] | ^^^^ help: there is an associated function with a similar name: `chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/source_file.rs:85:30 [INFO] [stdout] | [INFO] [stdout] 85 | let function_scope = Vec::new(u8); [INFO] [stdout] | ^^^^^^^^ -- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 0 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/source_file.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | let class_scope = Vec::new(u8); [INFO] [stdout] | ^^^^^^^^ -- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 0 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0252, E0308, E0423, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0252, E0308, E0423, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `source_analyzer` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "929d476916a862cbe732091c29e06f152a281010c79195633c6f71b43a60c926", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "929d476916a862cbe732091c29e06f152a281010c79195633c6f71b43a60c926", kill_on_drop: false }` [INFO] [stdout] 929d476916a862cbe732091c29e06f152a281010c79195633c6f71b43a60c926