Skip to content

Commit 3242f25

Browse files
committed
chore: update MSRV references from 1.84.0 to 1.85.0 in macro tests
1 parent 73c7690 commit 3242f25

14 files changed

Lines changed: 55 additions & 215 deletions

packages/yew-macro/Makefile.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tasks.test]
22
clear = true
3-
toolchain = "1.84.0"
3+
toolchain = "1.85.0"
44
command = "cargo"
55
# test target can be optionally specified like `cargo make test html_macro`,
66
args = ["test", "${@}"]

packages/yew-macro/tests/classes_macro_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[allow(dead_code)]
2-
#[rustversion::attr(stable(1.84.0), test)]
2+
#[rustversion::attr(stable(1.85.0), test)]
33
fn classes_macro() {
44
let t = trybuild::TestCases::new();
55
t.pass("tests/classes_macro/*-pass.rs");

packages/yew-macro/tests/derive_props/fail.stderr

Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,13 @@ help: consider annotating `Value` with `#[derive(PartialEq)]`
6161
9 | struct Value;
6262
|
6363

64-
error[E0277]: not all required properties have been provided
64+
error[E0277]: not all required properties have been provided for `t3::Props`
6565
--> tests/derive_props/fail.rs:35:24
6666
|
6767
35 | ::yew::props!{ Props { } };
68-
| ^^^^^ missing required properties for this component
69-
|
70-
= help: the trait `HasProp<t3::_Props::value, _>` is not implemented for `AssertAllProps`
71-
= help: the following other types implement trait `HasProp<P, How>`:
72-
`CheckChildrenPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
73-
`CheckContextProviderPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
74-
`HasContextProviderPropschildren<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
75-
`HasContextProviderPropschildren<B>` implements `HasProp<children, HasContextProviderPropschildren<B>>`
76-
`HasContextProviderPropscontext<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
77-
`HasContextProviderPropscontext<B>` implements `HasProp<yew::context::_ContextProviderProps::context, HasContextProviderPropscontext<B>>`
78-
`suspense::component::CheckSuspensePropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
79-
`t10::CheckPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
80-
and $N others
81-
note: required for `t3::CheckPropsAll<AssertAllProps>` to implement `HasAllProps<t3::Props, (_,)>`
82-
--> tests/derive_props/fail.rs:29:21
83-
|
84-
29 | #[derive(Clone, Properties, PartialEq)]
85-
| ^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
68+
| ^^^^^ missing required properties
69+
|
70+
= help: the trait `HasAllProps<t3::Props, (_,)>` is not implemented for `t3::CheckPropsAll<AssertAllProps>`
8671
= note: required for `AssertAllProps` to implement `AllPropsFor<t3::PropsBuilder, (_,)>`
8772
note: required by a bound in `html::component::properties::__macro::PreBuild::<Token, B>::build`
8873
--> $WORKSPACE/packages/yew/src/html/component/properties.rs
@@ -92,30 +77,14 @@ note: required by a bound in `html::component::properties::__macro::PreBuild::<T
9277
| where
9378
| Token: AllPropsFor<B, How>,
9479
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `PreBuild::<Token, B>::build`
95-
= note: this error originates in the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info)
9680

97-
error[E0277]: not all required properties have been provided
81+
error[E0277]: not all required properties have been provided for `t4::Props`
9882
--> tests/derive_props/fail.rs:47:24
9983
|
10084
47 | ::yew::props!{ Props { } };
101-
| ^^^^^ missing required properties for this component
102-
|
103-
= help: the trait `HasProp<t4::_Props::value, _>` is not implemented for `AssertAllProps`
104-
= help: the following other types implement trait `HasProp<P, How>`:
105-
`CheckChildrenPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
106-
`CheckContextProviderPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
107-
`HasContextProviderPropschildren<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
108-
`HasContextProviderPropschildren<B>` implements `HasProp<children, HasContextProviderPropschildren<B>>`
109-
`HasContextProviderPropscontext<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
110-
`HasContextProviderPropscontext<B>` implements `HasProp<yew::context::_ContextProviderProps::context, HasContextProviderPropscontext<B>>`
111-
`suspense::component::CheckSuspensePropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
112-
`t10::CheckPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
113-
and $N others
114-
note: required for `t4::CheckPropsAll<AssertAllProps>` to implement `HasAllProps<t4::Props, (_,)>`
115-
--> tests/derive_props/fail.rs:41:21
116-
|
117-
41 | #[derive(Clone, Properties, PartialEq)]
118-
| ^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
85+
| ^^^^^ missing required properties
86+
|
87+
= help: the trait `HasAllProps<t4::Props, (_,)>` is not implemented for `t4::CheckPropsAll<AssertAllProps>`
11988
= note: required for `AssertAllProps` to implement `AllPropsFor<t4::PropsBuilder, (_,)>`
12089
note: required by a bound in `html::component::properties::__macro::PreBuild::<Token, B>::build`
12190
--> $WORKSPACE/packages/yew/src/html/component/properties.rs
@@ -125,7 +94,6 @@ note: required by a bound in `html::component::properties::__macro::PreBuild::<T
12594
| where
12695
| Token: AllPropsFor<B, How>,
12796
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `PreBuild::<Token, B>::build`
128-
= note: this error originates in the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info)
12997

13098
error[E0308]: mismatched types
13199
--> tests/derive_props/fail.rs:66:19

packages/yew-macro/tests/derive_props_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[allow(dead_code)]
2-
#[rustversion::attr(stable(1.84.0), test)]
2+
#[rustversion::attr(stable(1.85.0), test)]
33
fn derive_props() {
44
let t = trybuild::TestCases::new();
55
t.pass("tests/derive_props/pass.rs");

packages/yew-macro/tests/function_attr_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[allow(dead_code)]
2-
#[rustversion::attr(stable(1.84.0), test)]
2+
#[rustversion::attr(stable(1.85.0), test)]
33
fn tests() {
44
let t = trybuild::TestCases::new();
55
t.pass("tests/function_component_attr/*-pass.rs");

packages/yew-macro/tests/function_component_attr/generic-props-fail.stderr

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,13 @@ help: you might be missing a type parameter
99
20 | fn compile_fail<INVALID>() {
1010
| +++++++++
1111

12-
error[E0277]: not all required properties have been provided
12+
error[E0277]: not all required properties have been provided for `Props`
1313
--> tests/function_component_attr/generic-props-fail.rs:22:14
1414
|
1515
22 | html! { <Comp<Props> /> };
16-
| ^^^^ missing required properties for this component
17-
|
18-
= help: the trait `HasProp<a, _>` is not implemented for `AssertAllProps`
19-
= help: the following other types implement trait `HasProp<P, How>`:
20-
`CheckChildrenPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
21-
`CheckContextProviderPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
22-
`CheckPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
23-
`HasContextProviderPropschildren<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
24-
`HasContextProviderPropschildren<B>` implements `HasProp<children, HasContextProviderPropschildren<B>>`
25-
`HasContextProviderPropscontext<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
26-
`HasContextProviderPropscontext<B>` implements `HasProp<yew::context::_ContextProviderProps::context, HasContextProviderPropscontext<B>>`
27-
`HasPropsa<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
28-
and $N others
29-
note: required for `CheckPropsAll<AssertAllProps>` to implement `HasAllProps<Props, (_,)>`
30-
--> tests/function_component_attr/generic-props-fail.rs:3:17
31-
|
32-
3 | #[derive(Clone, Properties, PartialEq)]
33-
| ^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
16+
| ^^^^ missing required properties
17+
|
18+
= help: the trait `HasAllProps<Props, (_,)>` is not implemented for `CheckPropsAll<AssertAllProps>`
3419
= note: required for `AssertAllProps` to implement `AllPropsFor<PropsBuilder, (_,)>`
3520
note: required by a bound in `yew::html::component::properties::__macro::PreBuild::<Token, B>::build`
3621
--> $WORKSPACE/packages/yew/src/html/component/properties.rs
@@ -40,7 +25,7 @@ note: required by a bound in `yew::html::component::properties::__macro::PreBuil
4025
| where
4126
| Token: AllPropsFor<B, How>,
4227
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `PreBuild::<Token, B>::build`
43-
= note: this error originates in the macro `html` which comes from the expansion of the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info)
28+
= note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info)
4429

4530
error[E0277]: the trait bound `Comp<MissingTypeBounds>: yew::BaseComponent` is not satisfied
4631
--> tests/function_component_attr/generic-props-fail.rs:27:14

packages/yew-macro/tests/hook_attr_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[allow(dead_code)]
2-
#[rustversion::attr(stable(1.84.0), test)]
2+
#[rustversion::attr(stable(1.85.0), test)]
33
fn tests() {
44
let t = trybuild::TestCases::new();
55
t.pass("tests/hook_attr/*-pass.rs");

packages/yew-macro/tests/hook_macro_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[allow(dead_code)]
2-
#[rustversion::attr(stable(1.84.0), test)]
2+
#[rustversion::attr(stable(1.85.0), test)]
33
fn tests() {
44
let t = trybuild::TestCases::new();
55
t.pass("tests/hook_macro/*-pass.rs");

packages/yew-macro/tests/html_macro/component-fail.stderr

Lines changed: 12 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -575,28 +575,13 @@ note: required by a bound in `ChildPropertiesBuilder::int`
575575
| --- required by a bound in this associated function
576576
= note: this error originates in the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info)
577577

578-
error[E0277]: not all required properties have been provided
578+
error[E0277]: not all required properties have been provided for `ChildProperties`
579579
--> tests/html_macro/component-fail.rs:99:14
580580
|
581581
99 | html! { <Child string="abc" /> };
582-
| ^^^^^ missing required properties for this component
583-
|
584-
= help: the trait `HasProp<int, _>` is not implemented for `AssertAllProps`
585-
= help: the following other types implement trait `HasProp<P, How>`:
586-
`CheckChildContainerPropertiesAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
587-
`CheckChildPropertiesAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
588-
`CheckChildrenPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
589-
`CheckContextProviderPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
590-
`CheckHtmlInPropsPropertiesAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
591-
`HasChildContainerPropertieschildren<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
592-
`HasChildContainerPropertieschildren<B>` implements `HasProp<_ChildContainerProperties::children, HasChildContainerPropertieschildren<B>>`
593-
`HasChildPropertiesint<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
594-
and $N others
595-
note: required for `CheckChildPropertiesAll<AssertAllProps>` to implement `HasAllProps<ChildProperties, (_,)>`
596-
--> tests/html_macro/component-fail.rs:4:17
582+
| ^^^^^ missing required properties
597583
|
598-
4 | #[derive(Clone, Properties, PartialEq)]
599-
| ^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
584+
= help: the trait `HasAllProps<ChildProperties, (_,)>` is not implemented for `CheckChildPropertiesAll<AssertAllProps>`
600585
= note: required for `AssertAllProps` to implement `AllPropsFor<ChildPropertiesBuilder, (_,)>`
601586
note: required by a bound in `yew::html::component::properties::__macro::PreBuild::<Token, B>::build`
602587
--> $WORKSPACE/packages/yew/src/html/component/properties.rs
@@ -606,7 +591,7 @@ note: required by a bound in `yew::html::component::properties::__macro::PreBuil
606591
| where
607592
| Token: AllPropsFor<B, How>,
608593
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `PreBuild::<Token, B>::build`
609-
= note: this error originates in the macro `html` which comes from the expansion of the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info)
594+
= note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info)
610595

611596
error[E0609]: no field `children` on type `ChildProperties`
612597
--> tests/html_macro/component-fail.rs:103:14
@@ -635,28 +620,13 @@ error[E0609]: no field `children` on type `ChildProperties`
635620
|
636621
= note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info)
637622

638-
error[E0277]: not all required properties have been provided
623+
error[E0277]: not all required properties have been provided for `ChildContainerProperties`
639624
--> tests/html_macro/component-fail.rs:115:14
640625
|
641626
115 | html! { <ChildContainer /> };
642-
| ^^^^^^^^^^^^^^ missing required properties for this component
643-
|
644-
= help: the trait `HasProp<_ChildContainerProperties::children, _>` is not implemented for `AssertAllProps`
645-
= help: the following other types implement trait `HasProp<P, How>`:
646-
`CheckChildContainerPropertiesAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
647-
`CheckChildPropertiesAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
648-
`CheckChildrenPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
649-
`CheckContextProviderPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
650-
`CheckHtmlInPropsPropertiesAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
651-
`HasChildContainerPropertieschildren<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
652-
`HasChildContainerPropertieschildren<B>` implements `HasProp<_ChildContainerProperties::children, HasChildContainerPropertieschildren<B>>`
653-
`HasChildPropertiesint<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
654-
and $N others
655-
note: required for `CheckChildContainerPropertiesAll<AssertAllProps>` to implement `HasAllProps<ChildContainerProperties, (_,)>`
656-
--> tests/html_macro/component-fail.rs:24:17
627+
| ^^^^^^^^^^^^^^ missing required properties
657628
|
658-
24 | #[derive(Clone, Properties, PartialEq)]
659-
| ^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
629+
= help: the trait `HasAllProps<ChildContainerProperties, (_,)>` is not implemented for `CheckChildContainerPropertiesAll<AssertAllProps>`
660630
= note: required for `AssertAllProps` to implement `AllPropsFor<ChildContainerPropertiesBuilder, (_,)>`
661631
note: required by a bound in `yew::html::component::properties::__macro::PreBuild::<Token, B>::build`
662632
--> $WORKSPACE/packages/yew/src/html/component/properties.rs
@@ -666,30 +636,15 @@ note: required by a bound in `yew::html::component::properties::__macro::PreBuil
666636
| where
667637
| Token: AllPropsFor<B, How>,
668638
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `PreBuild::<Token, B>::build`
669-
= note: this error originates in the macro `html` which comes from the expansion of the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info)
639+
= note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info)
670640

671-
error[E0277]: not all required properties have been provided
641+
error[E0277]: not all required properties have been provided for `ChildContainerProperties`
672642
--> tests/html_macro/component-fail.rs:116:14
673643
|
674644
116 | html! { <ChildContainer></ChildContainer> };
675-
| ^^^^^^^^^^^^^^ missing required properties for this component
676-
|
677-
= help: the trait `HasProp<_ChildContainerProperties::children, _>` is not implemented for `AssertAllProps`
678-
= help: the following other types implement trait `HasProp<P, How>`:
679-
`CheckChildContainerPropertiesAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
680-
`CheckChildPropertiesAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
681-
`CheckChildrenPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
682-
`CheckContextProviderPropsAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
683-
`CheckHtmlInPropsPropertiesAll<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
684-
`HasChildContainerPropertieschildren<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
685-
`HasChildContainerPropertieschildren<B>` implements `HasProp<_ChildContainerProperties::children, HasChildContainerPropertieschildren<B>>`
686-
`HasChildPropertiesint<B>` implements `HasProp<P, &dyn HasProp<P, How>>`
687-
and $N others
688-
note: required for `CheckChildContainerPropertiesAll<AssertAllProps>` to implement `HasAllProps<ChildContainerProperties, (_,)>`
689-
--> tests/html_macro/component-fail.rs:24:17
645+
| ^^^^^^^^^^^^^^ missing required properties
690646
|
691-
24 | #[derive(Clone, Properties, PartialEq)]
692-
| ^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
647+
= help: the trait `HasAllProps<ChildContainerProperties, (_,)>` is not implemented for `CheckChildContainerPropertiesAll<AssertAllProps>`
693648
= note: required for `AssertAllProps` to implement `AllPropsFor<ChildContainerPropertiesBuilder, (_,)>`
694649
note: required by a bound in `yew::html::component::properties::__macro::PreBuild::<Token, B>::build`
695650
--> $WORKSPACE/packages/yew/src/html/component/properties.rs
@@ -699,7 +654,7 @@ note: required by a bound in `yew::html::component::properties::__macro::PreBuil
699654
| where
700655
| Token: AllPropsFor<B, How>,
701656
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `PreBuild::<Token, B>::build`
702-
= note: this error originates in the macro `html` which comes from the expansion of the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info)
657+
= note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info)
703658

704659
error[E0277]: the trait bound `yew::virtual_dom::VText: IntoPropValue<ChildrenRenderer<VChild<Child>>>` is not satisfied
705660
--> tests/html_macro/component-fail.rs:117:31

0 commit comments

Comments
 (0)