[INFO] cloning repository https://github.com/isaacdonaldson/mayi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/isaacdonaldson/mayi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fisaacdonaldson%2Fmayi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fisaacdonaldson%2Fmayi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76c242c4827aed54135fc271408f021399e3aa55 [INFO] checking isaacdonaldson/mayi against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fisaacdonaldson%2Fmayi" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/isaacdonaldson/mayi [INFO] finished tweaking git repo https://github.com/isaacdonaldson/mayi [INFO] tweaked toml for git repo https://github.com/isaacdonaldson/mayi written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/isaacdonaldson/mayi on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/isaacdonaldson/mayi 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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64cc4ca79d920a01cb213249a5f67625dad9485ae55c75d3097958877d0febc6 [INFO] running `Command { std: "docker" "start" "-a" "64cc4ca79d920a01cb213249a5f67625dad9485ae55c75d3097958877d0febc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64cc4ca79d920a01cb213249a5f67625dad9485ae55c75d3097958877d0febc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64cc4ca79d920a01cb213249a5f67625dad9485ae55c75d3097958877d0febc6", kill_on_drop: false }` [INFO] [stdout] 64cc4ca79d920a01cb213249a5f67625dad9485ae55c75d3097958877d0febc6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7f9a2b74852361054147f0d676d405322c81f37e9c65044d44991a46d63fdbc [INFO] running `Command { std: "docker" "start" "-a" "d7f9a2b74852361054147f0d676d405322c81f37e9c65044d44991a46d63fdbc", kill_on_drop: false }` [INFO] [stderr] Checking mayi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `permission` [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod permission; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `permission`, create file "src/permission.rs" or "src/permission/mod.rs" [INFO] [stdout] = note: if there is a `mod permission` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `traits` [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod traits; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `traits`, create file "src/traits.rs" or "src/traits/mod.rs" [INFO] [stdout] = note: if there is a `mod traits` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `permission` [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod permission; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `permission`, create file "src/permission.rs" or "src/permission/mod.rs" [INFO] [stdout] = note: if there is a `mod permission` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `traits` [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod traits; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `traits`, create file "src/traits.rs" or "src/traits/mod.rs" [INFO] [stdout] = note: if there is a `mod traits` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `Context` is defined multiple times [INFO] [stdout] --> src/lib.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 8 | pub use context::Context; [INFO] [stdout] | ---------------- previous import of the type `Context` here [INFO] [stdout] ... [INFO] [stdout] 23 | use crate::{Context, Error, Permission}; [INFO] [stdout] | ^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | `Context` reimported here [INFO] [stdout] | help: remove unnecessary import [INFO] [stdout] | [INFO] [stdout] = note: `Context` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0255]: the name `Permission` is defined multiple times [INFO] [stdout] --> src/lib.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum Permission { [INFO] [stdout] | ------------------- previous definition of the type `Permission` here [INFO] [stdout] ... [INFO] [stdout] 23 | use crate::{Context, Error, Permission}; [INFO] [stdout] | ^^^^^^^^^^ `Permission` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `Permission` must be defined only once in the type namespace of this module [INFO] [stdout] help: you can use `as` to change the binding name of the import [INFO] [stdout] | [INFO] [stdout] 23 | use crate::{Context, Error, Permission as OtherPermission}; [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `Error` is defined multiple times [INFO] [stdout] --> src/lib.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 9 | pub use error::{Error, ExtractionError}; [INFO] [stdout] | ----- previous import of the type `Error` here [INFO] [stdout] ... [INFO] [stdout] 23 | use crate::{Context, Error, Permission}; [INFO] [stdout] | ^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | `Error` reimported here [INFO] [stdout] | help: remove unnecessary import [INFO] [stdout] | [INFO] [stdout] = note: `Error` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `Context` is defined multiple times [INFO] [stdout] --> src/lib.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 8 | pub use context::Context; [INFO] [stdout] | ---------------- previous import of the type `Context` here [INFO] [stdout] ... [INFO] [stdout] 23 | use crate::{Context, Error, Permission}; [INFO] [stdout] | ^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | `Context` reimported here [INFO] [stdout] | help: remove unnecessary import [INFO] [stdout] | [INFO] [stdout] = note: `Context` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0255]: the name `Permission` is defined multiple times [INFO] [stdout] --> src/lib.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum Permission { [INFO] [stdout] | ------------------- previous definition of the type `Permission` here [INFO] [stdout] ... [INFO] [stdout] 23 | use crate::{Context, Error, Permission}; [INFO] [stdout] | ^^^^^^^^^^ `Permission` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `Permission` must be defined only once in the type namespace of this module [INFO] [stdout] help: you can use `as` to change the binding name of the import [INFO] [stdout] | [INFO] [stdout] 23 | use crate::{Context, Error, Permission as OtherPermission}; [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `Error` is defined multiple times [INFO] [stdout] --> src/lib.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 9 | pub use error::{Error, ExtractionError}; [INFO] [stdout] | ----- previous import of the type `Error` here [INFO] [stdout] ... [INFO] [stdout] 23 | use crate::{Context, Error, Permission}; [INFO] [stdout] | ^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | `Error` reimported here [INFO] [stdout] | help: remove unnecessary import [INFO] [stdout] | [INFO] [stdout] = note: `Error` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `macros::mayi` [INFO] [stdout] --> src/lib.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use macros::mayi; [INFO] [stdout] | ^^^^^^^^^^^^ no `mayi` in `macros` [INFO] [stdout] | [INFO] [stdout] = note: this could be because a macro annotated with `#[macro_export]` will be exported at the root of the crate instead of the module where it is defined [INFO] [stdout] help: a macro with this name exists at the root of the crate [INFO] [stdout] | [INFO] [stdout] 15 - pub use macros::mayi; [INFO] [stdout] 15 + pub use crate::mayi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] --> src/error.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, thiserror::Error)] [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/error.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[error("Permission check denied")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/error.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[error("Permission balance denied")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/error.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[error("Permission balance non-owner")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/error.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[error("Extraction error: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context`, `Error`, and `Permission` [INFO] [stdout] --> src/lib.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::{Context, Error, Permission}; [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `macros::mayi` [INFO] [stdout] --> src/lib.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use macros::mayi; [INFO] [stdout] | ^^^^^^^^^^^^ no `mayi` in `macros` [INFO] [stdout] | [INFO] [stdout] = note: this could be because a macro annotated with `#[macro_export]` will be exported at the root of the crate instead of the module where it is defined [INFO] [stdout] help: a macro with this name exists at the root of the crate [INFO] [stdout] | [INFO] [stdout] 15 - pub use macros::mayi; [INFO] [stdout] 15 + pub use crate::mayi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] --> src/error.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, thiserror::Error)] [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/error.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[error("Permission check denied")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/error.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[error("Permission balance denied")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/error.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[error("Permission balance non-owner")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/error.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[error("Extraction error: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context`, `Error`, and `Permission` [INFO] [stdout] --> src/lib.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::{Context, Error, Permission}; [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/context.rs:29:53 [INFO] [stdout] | [INFO] [stdout] 29 | .and_then(|c| c.downcast_ref::().map(Arc::clone)) [INFO] [stdout] | --- ^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | | found signature defined here [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(&T) -> _` [INFO] [stdout] found function signature `fn(&Arc<_, _>) -> _` [INFO] [stdout] note: required by a bound in `Option::::map` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/option.rs:1141:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 29 | .and_then(|c| c.downcast_ref::().map(|arg0: &T| Arc::clone(/* &Arc<_, _> */))) [INFO] [stdout] | ++++++++++ ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/context.rs:29:53 [INFO] [stdout] | [INFO] [stdout] 29 | .and_then(|c| c.downcast_ref::().map(Arc::clone)) [INFO] [stdout] | --- ^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | | found signature defined here [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(&T) -> _` [INFO] [stdout] found function signature `fn(&Arc<_, _>) -> _` [INFO] [stdout] note: required by a bound in `Option::::map` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/option.rs:1141:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 29 | .and_then(|c| c.downcast_ref::().map(|arg0: &T| Arc::clone(/* &Arc<_, _> */))) [INFO] [stdout] | ++++++++++ ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0255, E0432, E0433, E0583, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0255, E0432, E0433, E0583, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mayi` (lib test) due to 13 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `mayi` (lib) due to 13 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "d7f9a2b74852361054147f0d676d405322c81f37e9c65044d44991a46d63fdbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7f9a2b74852361054147f0d676d405322c81f37e9c65044d44991a46d63fdbc", kill_on_drop: false }` [INFO] [stdout] d7f9a2b74852361054147f0d676d405322c81f37e9c65044d44991a46d63fdbc