[INFO] cloning repository https://github.com/bkataru/fortress [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bkataru/fortress" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbkataru%2Ffortress", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbkataru%2Ffortress'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8d970dbd58b3495dc86c223665fb455792f45e2 [INFO] checking bkataru/fortress against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbkataru%2Ffortress" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bkataru/fortress [INFO] finished tweaking git repo https://github.com/bkataru/fortress [INFO] tweaked toml for git repo https://github.com/bkataru/fortress written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bkataru/fortress on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bkataru/fortress 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 514cbedb2239b09ccfc3ed2381d84c271de8b404c6a0621310c01d36bc832756 [INFO] running `Command { std: "docker" "start" "-a" "514cbedb2239b09ccfc3ed2381d84c271de8b404c6a0621310c01d36bc832756", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "514cbedb2239b09ccfc3ed2381d84c271de8b404c6a0621310c01d36bc832756", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "514cbedb2239b09ccfc3ed2381d84c271de8b404c6a0621310c01d36bc832756", kill_on_drop: false }` [INFO] [stdout] 514cbedb2239b09ccfc3ed2381d84c271de8b404c6a0621310c01d36bc832756 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc4ee89dc7e9be25f22867ff99ccdd02fb10048755428a2b927d8c6b77d1b365 [INFO] running `Command { std: "docker" "start" "-a" "fc4ee89dc7e9be25f22867ff99ccdd02fb10048755428a2b927d8c6b77d1b365", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking clap_builder v4.5.7 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling clap_derive v4.5.5 [INFO] [stderr] Checking clap v4.5.7 [INFO] [stderr] Checking fortress v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `gfortran` should have an upper camel case name [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | gfortran, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Gfortran` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ifort` should have an upper camel case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | ifort, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Ifort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `flang` should have an upper camel case name [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | flang, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Flang` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `lfortran` should have an upper camel case name [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | lfortran [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Lfortran` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 25 | fn from(c: Compiler) -> String { [INFO] [stdout] | ------ expected `std::string::String` because of return type [INFO] [stdout] 26 | match c { [INFO] [stdout] 27 | Compiler::gfortran => "gfortran", [INFO] [stdout] | ^^^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 27 | Compiler::gfortran => "gfortran".to_string(), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Compiler: Clone` is not satisfied [INFO] [stdout] --> src/main.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | compiler: Compiler, [INFO] [stdout] | ^^^^^^^^ the trait `Clone` is not implemented for `Compiler` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `ArgMatches::remove_one` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/parser/matches/arg_matches.rs:404:32 [INFO] [stdout] | [INFO] [stdout] 404 | pub fn remove_one(&mut self, id: &str) -> Option { [INFO] [stdout] | ^^^^^ required by this bound in `ArgMatches::remove_one` [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Clone)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `value_parser` exists for reference `&&&&&&_AutoValueParser`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Compiler { [INFO] [stdout] | ------------- doesn't satisfy 7 bounds [INFO] [stdout] ... [INFO] [stdout] 39 | / /// The compiler to use [INFO] [stdout] 40 | | compiler: Compiler, [INFO] [stdout] | |______________________^ method cannot be called on `&&&&&&_AutoValueParser` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/builder/value_parser.rs:2422:1 [INFO] [stdout] | [INFO] [stdout] 2422 | pub struct _AutoValueParser(std::marker::PhantomData); [INFO] [stdout] | ------------------------------ doesn't satisfy `_: _ValueParserViaParse` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Compiler: ValueEnum` [INFO] [stdout] which is required by `&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaValueEnum` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaValueEnum` [INFO] [stdout] `Compiler: ValueParserFactory` [INFO] [stdout] which is required by `&&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFactory` [INFO] [stdout] `Compiler: From` [INFO] [stdout] which is required by `&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsString` [INFO] [stdout] `Compiler: From<&'s std::ffi::OsStr>` [INFO] [stdout] which is required by `&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsStr` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsStr` [INFO] [stdout] `Compiler: From` [INFO] [stdout] which is required by `&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromStr` [INFO] [stdout] `Compiler: FromStr` [INFO] [stdout] which is required by `_AutoValueParser: clap::builder::via_prelude::_ValueParserViaParse` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `_AutoValueParser: clap::builder::via_prelude::_ValueParserViaParse` [INFO] [stdout] note: the traits `From`, `FromStr`, `ValueEnum`, and `ValueParserFactory` must be implemented [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/builder/value_parser.rs:2272:1 [INFO] [stdout] | [INFO] [stdout] 2272 | pub trait ValueParserFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:591:1 [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/derive.rs:264:1 [INFO] [stdout] | [INFO] [stdout] 264 | pub trait ValueEnum: Sized + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/str/traits.rs:830:1 [INFO] [stdout] = note: this error originates in the macro `clap::value_parser` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Clone)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `value_parser` exists for reference `&&&&&&_AutoValueParser`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Compiler { [INFO] [stdout] | ------------- doesn't satisfy 7 bounds [INFO] [stdout] ... [INFO] [stdout] 39 | / /// The compiler to use [INFO] [stdout] 40 | | compiler: Compiler, [INFO] [stdout] | |______________________^ method cannot be called on `&&&&&&_AutoValueParser` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/builder/value_parser.rs:2422:1 [INFO] [stdout] | [INFO] [stdout] 2422 | pub struct _AutoValueParser(std::marker::PhantomData); [INFO] [stdout] | ------------------------------ doesn't satisfy `_: _ValueParserViaParse` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Compiler: ValueEnum` [INFO] [stdout] which is required by `&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaValueEnum` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaValueEnum` [INFO] [stdout] `Compiler: ValueParserFactory` [INFO] [stdout] which is required by `&&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFactory` [INFO] [stdout] `Compiler: From` [INFO] [stdout] which is required by `&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsString` [INFO] [stdout] `Compiler: From<&'s std::ffi::OsStr>` [INFO] [stdout] which is required by `&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsStr` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsStr` [INFO] [stdout] `Compiler: From` [INFO] [stdout] which is required by `&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromStr` [INFO] [stdout] `Compiler: FromStr` [INFO] [stdout] which is required by `_AutoValueParser: clap::builder::via_prelude::_ValueParserViaParse` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `_AutoValueParser: clap::builder::via_prelude::_ValueParserViaParse` [INFO] [stdout] note: the traits `From`, `FromStr`, `ValueEnum`, and `ValueParserFactory` must be implemented [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/builder/value_parser.rs:2272:1 [INFO] [stdout] | [INFO] [stdout] 2272 | pub trait ValueParserFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:591:1 [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/derive.rs:264:1 [INFO] [stdout] | [INFO] [stdout] 264 | pub trait ValueEnum: Sized + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/str/traits.rs:830:1 [INFO] [stdout] = note: this error originates in the macro `clap::value_parser` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Clone)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Compiler` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Parser, Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 40 | compiler: Compiler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `Compiler` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `Compiler` or manually `impl Debug for Compiler` [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Debug)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Compiler` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 55 | "compiler: {:?}, filename: {:?}, extension: {:?}", [INFO] [stdout] | ---- required by this formatting parameter [INFO] [stdout] 56 | compiler, filename, extension [INFO] [stdout] | ^^^^^^^^ `Compiler` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Compiler` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Compiler` or manually `impl Debug for Compiler` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Debug)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Compiler: AsRef` is not satisfied [INFO] [stdout] --> src/main.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | let output = Command::new(compiler) [INFO] [stdout] | ------------ ^^^^^^^^ the trait `AsRef` is not implemented for `Compiler` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `std::process::Command::new` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/std/src/process.rs:655:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | match s { [INFO] [stdout] | ^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 19 ~ "lfortran" => Compiler::lfortran, [INFO] [stdout] 20 ~ &_ => todo!(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] warning: variant `gfortran` should have an upper camel case name [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | gfortran, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Gfortran` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ifort` should have an upper camel case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | ifort, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Ifort` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `flang` should have an upper camel case name [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | flang, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Flang` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `lfortran` should have an upper camel case name [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | lfortran [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Lfortran` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 25 | fn from(c: Compiler) -> String { [INFO] [stdout] | ------ expected `std::string::String` because of return type [INFO] [stdout] 26 | match c { [INFO] [stdout] 27 | Compiler::gfortran => "gfortran", [INFO] [stdout] | ^^^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 27 | Compiler::gfortran => "gfortran".to_string(), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Compiler: Clone` is not satisfied [INFO] [stdout] --> src/main.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | compiler: Compiler, [INFO] [stdout] | ^^^^^^^^ the trait `Clone` is not implemented for `Compiler` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `ArgMatches::remove_one` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/parser/matches/arg_matches.rs:404:32 [INFO] [stdout] | [INFO] [stdout] 404 | pub fn remove_one(&mut self, id: &str) -> Option { [INFO] [stdout] | ^^^^^ required by this bound in `ArgMatches::remove_one` [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Clone)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `value_parser` exists for reference `&&&&&&_AutoValueParser`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Compiler { [INFO] [stdout] | ------------- doesn't satisfy 7 bounds [INFO] [stdout] ... [INFO] [stdout] 39 | / /// The compiler to use [INFO] [stdout] 40 | | compiler: Compiler, [INFO] [stdout] | |______________________^ method cannot be called on `&&&&&&_AutoValueParser` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/builder/value_parser.rs:2422:1 [INFO] [stdout] | [INFO] [stdout] 2422 | pub struct _AutoValueParser(std::marker::PhantomData); [INFO] [stdout] | ------------------------------ doesn't satisfy `_: _ValueParserViaParse` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Compiler: ValueEnum` [INFO] [stdout] which is required by `&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaValueEnum` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaValueEnum` [INFO] [stdout] `Compiler: ValueParserFactory` [INFO] [stdout] which is required by `&&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFactory` [INFO] [stdout] `Compiler: From` [INFO] [stdout] which is required by `&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsString` [INFO] [stdout] `Compiler: From<&'s std::ffi::OsStr>` [INFO] [stdout] which is required by `&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsStr` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsStr` [INFO] [stdout] `Compiler: From` [INFO] [stdout] which is required by `&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromStr` [INFO] [stdout] `Compiler: FromStr` [INFO] [stdout] which is required by `_AutoValueParser: clap::builder::via_prelude::_ValueParserViaParse` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `_AutoValueParser: clap::builder::via_prelude::_ValueParserViaParse` [INFO] [stdout] note: the traits `From`, `FromStr`, `ValueEnum`, and `ValueParserFactory` must be implemented [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/builder/value_parser.rs:2272:1 [INFO] [stdout] | [INFO] [stdout] 2272 | pub trait ValueParserFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:591:1 [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/derive.rs:264:1 [INFO] [stdout] | [INFO] [stdout] 264 | pub trait ValueEnum: Sized + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/str/traits.rs:830:1 [INFO] [stdout] = note: this error originates in the macro `clap::value_parser` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Clone)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `value_parser` exists for reference `&&&&&&_AutoValueParser`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Compiler { [INFO] [stdout] | ------------- doesn't satisfy 7 bounds [INFO] [stdout] ... [INFO] [stdout] 39 | / /// The compiler to use [INFO] [stdout] 40 | | compiler: Compiler, [INFO] [stdout] | |______________________^ method cannot be called on `&&&&&&_AutoValueParser` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/builder/value_parser.rs:2422:1 [INFO] [stdout] | [INFO] [stdout] 2422 | pub struct _AutoValueParser(std::marker::PhantomData); [INFO] [stdout] | ------------------------------ doesn't satisfy `_: _ValueParserViaParse` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Compiler: ValueEnum` [INFO] [stdout] which is required by `&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaValueEnum` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaValueEnum` [INFO] [stdout] `Compiler: ValueParserFactory` [INFO] [stdout] which is required by `&&&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFactory` [INFO] [stdout] `Compiler: From` [INFO] [stdout] which is required by `&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsString` [INFO] [stdout] `Compiler: From<&'s std::ffi::OsStr>` [INFO] [stdout] which is required by `&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsStr` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromOsStr` [INFO] [stdout] `Compiler: From` [INFO] [stdout] which is required by `&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromString` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `&_AutoValueParser: clap::builder::via_prelude::_ValueParserViaFromStr` [INFO] [stdout] `Compiler: FromStr` [INFO] [stdout] which is required by `_AutoValueParser: clap::builder::via_prelude::_ValueParserViaParse` [INFO] [stdout] `Compiler: Clone` [INFO] [stdout] which is required by `_AutoValueParser: clap::builder::via_prelude::_ValueParserViaParse` [INFO] [stdout] note: the traits `From`, `FromStr`, `ValueEnum`, and `ValueParserFactory` must be implemented [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/builder/value_parser.rs:2272:1 [INFO] [stdout] | [INFO] [stdout] 2272 | pub trait ValueParserFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:591:1 [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.7/src/derive.rs:264:1 [INFO] [stdout] | [INFO] [stdout] 264 | pub trait ValueEnum: Sized + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/str/traits.rs:830:1 [INFO] [stdout] = note: this error originates in the macro `clap::value_parser` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Clone)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Compiler` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Parser, Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 40 | compiler: Compiler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `Compiler` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `Compiler` or manually `impl Debug for Compiler` [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Debug)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Compiler` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 55 | "compiler: {:?}, filename: {:?}, extension: {:?}", [INFO] [stdout] | ---- required by this formatting parameter [INFO] [stdout] 56 | compiler, filename, extension [INFO] [stdout] | ^^^^^^^^ `Compiler` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Compiler` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Compiler` or manually `impl Debug for Compiler` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Compiler` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Debug)] [INFO] [stdout] 7 | enum Compiler { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Compiler: AsRef` is not satisfied [INFO] [stdout] --> src/main.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | let output = Command::new(compiler) [INFO] [stdout] | ------------ ^^^^^^^^ the trait `AsRef` is not implemented for `Compiler` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `std::process::Command::new` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/std/src/process.rs:655:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | match s { [INFO] [stdout] | ^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 19 ~ "lfortran" => Compiler::lfortran, [INFO] [stdout] 20 ~ &_ => todo!(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fortress` (bin "fortress") due to 8 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `fortress` (bin "fortress" test) due to 8 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fc4ee89dc7e9be25f22867ff99ccdd02fb10048755428a2b927d8c6b77d1b365", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc4ee89dc7e9be25f22867ff99ccdd02fb10048755428a2b927d8c6b77d1b365", kill_on_drop: false }` [INFO] [stdout] fc4ee89dc7e9be25f22867ff99ccdd02fb10048755428a2b927d8c6b77d1b365