[INFO] cloning repository https://github.com/rmoraes92/cia-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rmoraes92/cia-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmoraes92%2Fcia-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmoraes92%2Fcia-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 91e8ff16c443ae459571698a51852e8a5e2efdcd [INFO] checking rmoraes92/cia-rust/91e8ff16c443ae459571698a51852e8a5e2efdcd against master#e22dab387f6b4f6a87dfc54ac2f6013dddb41e68 for pr-149195 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frmoraes92%2Fcia-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rmoraes92/cia-rust [INFO] finished tweaking git repo https://github.com/rmoraes92/cia-rust [INFO] tweaked toml for git repo https://github.com/rmoraes92/cia-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rmoraes92/cia-rust on toolchain e22dab387f6b4f6a87dfc54ac2f6013dddb41e68 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e22dab387f6b4f6a87dfc54ac2f6013dddb41e68" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rmoraes92/cia-rust 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" "+e22dab387f6b4f6a87dfc54ac2f6013dddb41e68" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded logos-codegen v0.15.0 [INFO] [stderr] Downloaded logos-derive v0.15.0 [INFO] [stderr] Downloaded beef v0.5.2 [INFO] [stderr] Downloaded memchr v2.7.5 [INFO] [stderr] Downloaded syn v2.0.104 [INFO] [stderr] Downloaded logos v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+e22dab387f6b4f6a87dfc54ac2f6013dddb41e68" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b33103a3717c092e11a00aef4e92c0b0f66b1e7283d8ba08e3baf60079c2ef7c [INFO] running `Command { std: "docker" "start" "-a" "b33103a3717c092e11a00aef4e92c0b0f66b1e7283d8ba08e3baf60079c2ef7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b33103a3717c092e11a00aef4e92c0b0f66b1e7283d8ba08e3baf60079c2ef7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b33103a3717c092e11a00aef4e92c0b0f66b1e7283d8ba08e3baf60079c2ef7c", kill_on_drop: false }` [INFO] [stdout] b33103a3717c092e11a00aef4e92c0b0f66b1e7283d8ba08e3baf60079c2ef7c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+e22dab387f6b4f6a87dfc54ac2f6013dddb41e68" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f62df9ef9f1191f6470da8c5e46a7ece3c03ffa97183f9a40d479b644154fd5 [INFO] running `Command { std: "docker" "start" "-a" "7f62df9ef9f1191f6470da8c5e46a7ece3c03ffa97183f9a40d479b644154fd5", kill_on_drop: false }` [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling logos-codegen v0.15.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling logos-derive v0.15.0 [INFO] [stderr] Checking logos v0.15.0 [INFO] [stderr] Checking clean_code_checker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/import_statement_parsers.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::SourceCodeBody [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 2 | use crate::import_statement::ImportStatement; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `ImportStatement` is defined multiple times [INFO] [stdout] --> src/parse_import_statements.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::import_statement::ImportStatement; [INFO] [stdout] | ---------------------------------------- previous import of the type `ImportStatement` here [INFO] [stdout] 2 | use crate::import_statement::ImportStatement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ImportStatement` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `ImportStatement` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `use` [INFO] [stdout] --> src/import_statement_parsers.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::SourceCodeBody [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 2 | use crate::import_statement::ImportStatement; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `ImportStatement` is defined multiple times [INFO] [stdout] --> src/parse_import_statements.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::import_statement::ImportStatement; [INFO] [stdout] | ---------------------------------------- previous import of the type `ImportStatement` here [INFO] [stdout] 2 | use crate::import_statement::ImportStatement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ImportStatement` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `ImportStatement` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `source_code` in this scope [INFO] [stdout] --> src/import_statement_parsers.rs:7:49 [INFO] [stdout] | [INFO] [stdout] 7 | let ret = PythonImportStatementToken::lexer(source_code); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::import_statement::ImportStatement` [INFO] [stdout] --> src/parse_import_statements.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::import_statement::ImportStatement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `lexer` found for enum `PythonImportStatementToken` in the current scope [INFO] [stdout] --> src/import_statement_parsers.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | let ret = PythonImportStatementToken::lexer(source_code); [INFO] [stdout] | ^^^^^ variant or associated item not found in `PythonImportStatementToken` [INFO] [stdout] | [INFO] [stdout] ::: src/import_statements_tokens/python.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum PythonImportStatementToken { [INFO] [stdout] | ----------------------------------- variant or associated item `lexer` not found for this enum [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Logos` which provides `lexer` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use logos::Logos; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `lex` with a similar name [INFO] [stdout] | [INFO] [stdout] 7 - let ret = PythonImportStatementToken::lexer(source_code); [INFO] [stdout] 7 + let ret = PythonImportStatementToken::lex(source_code); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/import_statement_parsers.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn parse_python(body: SourceCodeBody) -> ImportStatement { [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^ expected `ImportStatement`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `source_code` in this scope [INFO] [stdout] --> src/import_statement_parsers.rs:7:49 [INFO] [stdout] | [INFO] [stdout] 7 | let ret = PythonImportStatementToken::lexer(source_code); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::import_statement::ImportStatement` [INFO] [stdout] --> src/parse_import_statements.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::import_statement::ImportStatement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `lexer` found for enum `PythonImportStatementToken` in the current scope [INFO] [stdout] --> src/import_statement_parsers.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | let ret = PythonImportStatementToken::lexer(source_code); [INFO] [stdout] | ^^^^^ variant or associated item not found in `PythonImportStatementToken` [INFO] [stdout] | [INFO] [stdout] ::: src/import_statements_tokens/python.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum PythonImportStatementToken { [INFO] [stdout] | ----------------------------------- variant or associated item `lexer` not found for this enum [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Logos` which provides `lexer` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use logos::Logos; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `lex` with a similar name [INFO] [stdout] | [INFO] [stdout] 7 - let ret = PythonImportStatementToken::lexer(source_code); [INFO] [stdout] 7 + let ret = PythonImportStatementToken::lex(source_code); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/import_statement_parsers.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn parse_python(body: SourceCodeBody) -> ImportStatement { [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^ expected `ImportStatement`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse_import_statements.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut ret: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `clean_code_checker` (lib) due to 5 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse_import_statements.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut ret: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `clean_code_checker` (lib test) due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7f62df9ef9f1191f6470da8c5e46a7ece3c03ffa97183f9a40d479b644154fd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f62df9ef9f1191f6470da8c5e46a7ece3c03ffa97183f9a40d479b644154fd5", kill_on_drop: false }` [INFO] [stdout] 7f62df9ef9f1191f6470da8c5e46a7ece3c03ffa97183f9a40d479b644154fd5