Skip to content

Commit

Permalink
Update UI test outputs due to output format change
Browse files Browse the repository at this point in the history
trybuild updated their output format in a backwards-incompatible way.

See dtolnay/trybuild#141
  • Loading branch information
AzureMarker committed Nov 28, 2021
1 parent af3cea6 commit 84ada96
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions shaku/tests/ui/component_missing_dependency.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: the trait bound `TestModule: HasComponent<(dyn DependencyTrait + 'static)>` is not satisfied
--> $DIR/component_missing_dependency.rs:22:1
--> tests/ui/component_missing_dependency.rs:22:1
|
22 | / module! {
23 | | TestModule {
Expand All @@ -12,7 +12,7 @@ error[E0277]: the trait bound `TestModule: HasComponent<(dyn DependencyTrait + '
= help: the following implementations were found:
<TestModule as HasComponent<<ComponentImpl as shaku::Component<TestModule>>::Interface>>
note: required because of the requirements on the impl of `shaku::Component<TestModule>` for `ComponentImpl`
--> $DIR/component_missing_dependency.rs:14:10
--> tests/ui/component_missing_dependency.rs:14:10
|
14 | #[derive(Component)]
| ^^^^^^^^^
Expand All @@ -22,7 +22,7 @@ note: required because of the requirements on the impl of `shaku::Component<Test
= note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `TestModule: HasComponent<(dyn DependencyTrait + 'static)>` is not satisfied
--> $DIR/component_missing_dependency.rs:22:1
--> tests/ui/component_missing_dependency.rs:22:1
|
22 | / module! {
23 | | TestModule {
Expand All @@ -32,23 +32,23 @@ error[E0277]: the trait bound `TestModule: HasComponent<(dyn DependencyTrait + '
27 | | }
| |_^ the trait `HasComponent<(dyn DependencyTrait + 'static)>` is not implemented for `TestModule`
|
::: $WORKSPACE/shaku/src/module/module_traits.rs
::: src/module/module_traits.rs
|
| pub trait Module: ModuleInterface {
| --------------- required by this bound in `Module`
|
= help: the following implementations were found:
<TestModule as HasComponent<<ComponentImpl as shaku::Component<TestModule>>::Interface>>
note: required because of the requirements on the impl of `shaku::Component<TestModule>` for `ComponentImpl`
--> $DIR/component_missing_dependency.rs:14:10
--> tests/ui/component_missing_dependency.rs:14:10
|
14 | #[derive(Component)]
| ^^^^^^^^^
15 | #[shaku(interface = ComponentTrait)]
16 | struct ComponentImpl {
| ^^^^^^^^^^^^^
note: required because it appears within the type `TestModule`
--> $DIR/component_missing_dependency.rs:23:5
--> tests/ui/component_missing_dependency.rs:23:5
|
23 | TestModule {
| ^^^^^^^^^^
Expand Down
12 changes: 6 additions & 6 deletions shaku/tests/ui/provider_missing_component_dependency.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: the trait bound `TestModule: HasComponent<(dyn DependencyTrait + 'static)>` is not satisfied
--> $DIR/provider_missing_component_dependency.rs:22:1
--> tests/ui/provider_missing_component_dependency.rs:22:1
|
22 | / module! {
23 | | TestModule {
Expand All @@ -10,7 +10,7 @@ error[E0277]: the trait bound `TestModule: HasComponent<(dyn DependencyTrait + '
| |_^ the trait `HasComponent<(dyn DependencyTrait + 'static)>` is not implemented for `TestModule`
|
note: required because of the requirements on the impl of `Provider<TestModule>` for `ProviderImpl`
--> $DIR/provider_missing_component_dependency.rs:14:10
--> tests/ui/provider_missing_component_dependency.rs:14:10
|
14 | #[derive(Provider)]
| ^^^^^^^^
Expand All @@ -20,7 +20,7 @@ note: required because of the requirements on the impl of `Provider<TestModule>`
= note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `TestModule: HasComponent<(dyn DependencyTrait + 'static)>` is not satisfied
--> $DIR/provider_missing_component_dependency.rs:22:1
--> tests/ui/provider_missing_component_dependency.rs:22:1
|
22 | / module! {
23 | | TestModule {
Expand All @@ -30,21 +30,21 @@ error[E0277]: the trait bound `TestModule: HasComponent<(dyn DependencyTrait + '
27 | | }
| |_^ the trait `HasComponent<(dyn DependencyTrait + 'static)>` is not implemented for `TestModule`
|
::: $WORKSPACE/shaku/src/module/module_traits.rs
::: src/module/module_traits.rs
|
| pub trait Module: ModuleInterface {
| --------------- required by this bound in `Module`
|
note: required because of the requirements on the impl of `Provider<TestModule>` for `ProviderImpl`
--> $DIR/provider_missing_component_dependency.rs:14:10
--> tests/ui/provider_missing_component_dependency.rs:14:10
|
14 | #[derive(Provider)]
| ^^^^^^^^
15 | #[shaku(interface = ProviderTrait)]
16 | struct ProviderImpl {
| ^^^^^^^^^^^^
note: required because it appears within the type `TestModule`
--> $DIR/provider_missing_component_dependency.rs:23:5
--> tests/ui/provider_missing_component_dependency.rs:23:5
|
23 | TestModule {
| ^^^^^^^^^^
Expand Down
12 changes: 6 additions & 6 deletions shaku/tests/ui/provider_missing_provider_dependency.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: the trait bound `TestModule: HasProvider<(dyn DependencyTrait + 'static)>` is not satisfied
--> $DIR/provider_missing_provider_dependency.rs:21:1
--> tests/ui/provider_missing_provider_dependency.rs:21:1
|
21 | / module! {
22 | | TestModule {
Expand All @@ -12,7 +12,7 @@ error[E0277]: the trait bound `TestModule: HasProvider<(dyn DependencyTrait + 's
= help: the following implementations were found:
<TestModule as HasProvider<<ProviderImpl as Provider<TestModule>>::Interface>>
note: required because of the requirements on the impl of `Provider<TestModule>` for `ProviderImpl`
--> $DIR/provider_missing_provider_dependency.rs:13:10
--> tests/ui/provider_missing_provider_dependency.rs:13:10
|
13 | #[derive(Provider)]
| ^^^^^^^^
Expand All @@ -22,7 +22,7 @@ note: required because of the requirements on the impl of `Provider<TestModule>`
= note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `TestModule: HasProvider<(dyn DependencyTrait + 'static)>` is not satisfied
--> $DIR/provider_missing_provider_dependency.rs:21:1
--> tests/ui/provider_missing_provider_dependency.rs:21:1
|
21 | / module! {
22 | | TestModule {
Expand All @@ -32,23 +32,23 @@ error[E0277]: the trait bound `TestModule: HasProvider<(dyn DependencyTrait + 's
26 | | }
| |_^ the trait `HasProvider<(dyn DependencyTrait + 'static)>` is not implemented for `TestModule`
|
::: $WORKSPACE/shaku/src/module/module_traits.rs
::: src/module/module_traits.rs
|
| pub trait Module: ModuleInterface {
| --------------- required by this bound in `Module`
|
= help: the following implementations were found:
<TestModule as HasProvider<<ProviderImpl as Provider<TestModule>>::Interface>>
note: required because of the requirements on the impl of `Provider<TestModule>` for `ProviderImpl`
--> $DIR/provider_missing_provider_dependency.rs:13:10
--> tests/ui/provider_missing_provider_dependency.rs:13:10
|
13 | #[derive(Provider)]
| ^^^^^^^^
14 | #[shaku(interface = ProviderTrait)]
15 | struct ProviderImpl {
| ^^^^^^^^^^^^
note: required because it appears within the type `TestModule`
--> $DIR/provider_missing_provider_dependency.rs:22:5
--> tests/ui/provider_missing_provider_dependency.rs:22:5
|
22 | TestModule {
| ^^^^^^^^^^
Expand Down

0 comments on commit 84ada96

Please sign in to comment.