Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3740 from epage/ui
test: Re-enable ui tests
- Loading branch information
Showing
7 changed files
with
89 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
error[E0277]: the trait bound `SubCmd: clap::Args` is not satisfied | ||
--> $DIR/enum_variant_not_args.rs:3:9 | ||
| | ||
3 | Sub(SubCmd), | ||
| ^^^^^^ the trait `clap::Args` is not implemented for `SubCmd` | ||
| | ||
= note: required by `augment_args` | ||
--> tests/derive_ui/enum_variant_not_args.rs:3:9 | ||
| | ||
3 | Sub(SubCmd), | ||
| ^^^^^^ the trait `clap::Args` is not implemented for `SubCmd` | ||
| | ||
note: required by `augment_args` | ||
--> src/derive.rs | ||
| | ||
| fn augment_args(cmd: Command<'_>) -> Command<'_>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0277]: the trait bound `SubCmd: clap::Args` is not satisfied | ||
--> $DIR/enum_variant_not_args.rs:3:9 | ||
| | ||
3 | Sub(SubCmd), | ||
| ^^^^^^ the trait `clap::Args` is not implemented for `SubCmd` | ||
| | ||
= note: required by `augment_args_for_update` | ||
--> tests/derive_ui/enum_variant_not_args.rs:3:9 | ||
| | ||
3 | Sub(SubCmd), | ||
| ^^^^^^ the trait `clap::Args` is not implemented for `SubCmd` | ||
| | ||
note: required by `augment_args_for_update` | ||
--> src/derive.rs | ||
| | ||
| fn augment_args_for_update(cmd: Command<'_>) -> Command<'_>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
error[E0277]: the trait bound `SubCmd: clap::Args` is not satisfied | ||
--> $DIR/flatten_enum_in_struct.rs:3:12 | ||
| | ||
3 | #[clap(flatten)] | ||
| ^^^^^^^ the trait `clap::Args` is not implemented for `SubCmd` | ||
| | ||
= note: required by `augment_args` | ||
--> tests/derive_ui/flatten_enum_in_struct.rs:3:12 | ||
| | ||
3 | #[clap(flatten)] | ||
| ^^^^^^^ the trait `clap::Args` is not implemented for `SubCmd` | ||
| | ||
note: required by `augment_args` | ||
--> src/derive.rs | ||
| | ||
| fn augment_args(cmd: Command<'_>) -> Command<'_>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0277]: the trait bound `SubCmd: clap::Args` is not satisfied | ||
--> $DIR/flatten_enum_in_struct.rs:3:12 | ||
| | ||
3 | #[clap(flatten)] | ||
| ^^^^^^^ the trait `clap::Args` is not implemented for `SubCmd` | ||
| | ||
= note: required by `augment_args_for_update` | ||
--> tests/derive_ui/flatten_enum_in_struct.rs:3:12 | ||
| | ||
3 | #[clap(flatten)] | ||
| ^^^^^^^ the trait `clap::Args` is not implemented for `SubCmd` | ||
| | ||
note: required by `augment_args_for_update` | ||
--> src/derive.rs | ||
| | ||
| fn augment_args_for_update(cmd: Command<'_>) -> Command<'_>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
error[E0277]: the trait bound `SubCmd: Subcommand` is not satisfied | ||
--> $DIR/flatten_struct_in_enum.rs:1:10 | ||
| | ||
1 | #[derive(clap::Parser)] | ||
| ^^^^^^^^^^^^ the trait `Subcommand` is not implemented for `SubCmd` | ||
| | ||
= note: required by `has_subcommand` | ||
= note: this error originates in the derive macro `clap::Parser` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
--> tests/derive_ui/flatten_struct_in_enum.rs:1:10 | ||
| | ||
1 | #[derive(clap::Parser)] | ||
| ^^^^^^^^^^^^ the trait `Subcommand` is not implemented for `SubCmd` | ||
| | ||
note: required by `has_subcommand` | ||
--> src/derive.rs | ||
| | ||
| fn has_subcommand(name: &str) -> bool; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= note: this error originates in the derive macro `clap::Parser` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0277]: the trait bound `SubCmd: Subcommand` is not satisfied | ||
--> $DIR/flatten_struct_in_enum.rs:1:10 | ||
| | ||
1 | #[derive(clap::Parser)] | ||
| ^^^^^^^^^^^^ the trait `Subcommand` is not implemented for `SubCmd` | ||
| | ||
= note: required by `augment_subcommands` | ||
= note: this error originates in the derive macro `clap::Parser` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
--> tests/derive_ui/flatten_struct_in_enum.rs:1:10 | ||
| | ||
1 | #[derive(clap::Parser)] | ||
| ^^^^^^^^^^^^ the trait `Subcommand` is not implemented for `SubCmd` | ||
| | ||
note: required by `augment_subcommands` | ||
--> src/derive.rs | ||
| | ||
| fn augment_subcommands(cmd: Command<'_>) -> Command<'_>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= note: this error originates in the derive macro `clap::Parser` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0277]: the trait bound `SubCmd: Subcommand` is not satisfied | ||
--> $DIR/flatten_struct_in_enum.rs:1:10 | ||
| | ||
1 | #[derive(clap::Parser)] | ||
| ^^^^^^^^^^^^ the trait `Subcommand` is not implemented for `SubCmd` | ||
| | ||
= note: required by `augment_subcommands_for_update` | ||
= note: this error originates in the derive macro `clap::Parser` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
--> tests/derive_ui/flatten_struct_in_enum.rs:1:10 | ||
| | ||
1 | #[derive(clap::Parser)] | ||
| ^^^^^^^^^^^^ the trait `Subcommand` is not implemented for `SubCmd` | ||
| | ||
note: required by `augment_subcommands_for_update` | ||
--> src/derive.rs | ||
| | ||
| fn augment_subcommands_for_update(cmd: Command<'_>) -> Command<'_>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= note: this error originates in the derive macro `clap::Parser` (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
error[E0277]: the trait bound `Kind: Default` is not satisfied | ||
--> $DIR/skip_without_default.rs:22:12 | ||
| | ||
22 | #[clap(skip)] | ||
| ^^^^ the trait `Default` is not implemented for `Kind` | ||
| | ||
= note: required by `std::default::Default::default` | ||
--> tests/derive_ui/skip_without_default.rs:22:12 | ||
| | ||
22 | #[clap(skip)] | ||
| ^^^^ the trait `Default` is not implemented for `Kind` | ||
| | ||
note: required by `std::default::Default::default` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters