File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,10 @@ impl PropsBuilder<'_> {
120120 . filter ( |pf| pf. is_required ( ) )
121121 . map ( |pf| pf. to_step_name ( prefix) )
122122 . collect ( ) ;
123- step_names. push ( Ident :: new ( & format ! ( "{}_build" , prefix) , Span :: call_site ( ) ) ) ;
123+ step_names. push ( Ident :: new (
124+ & format ! ( "{}PropsBuilder" , prefix) ,
125+ prefix. span ( ) ,
126+ ) ) ;
124127 step_names
125128 }
126129
Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ error[E0609]: no field `fail` on type `Props`
3030 |
3131 = note: available fields are: `a`
3232
33- error[E0599]: no method named `fail` found for struct `PropsBuilder<PropsBuilderStep_build >` in the current scope
33+ error[E0599]: no method named `fail` found for struct `PropsBuilder<PropsBuilderStepPropsBuilder >` in the current scope
3434 --> $DIR/props-fail.rs:10:31
3535 |
36363 | #[derive(Clone, Properties)]
3737 | ---------- method `fail` not found for this
3838...
393910 | yew::props!(Props { a: 5, fail: 10 });
40- | ^^^^ method not found in `PropsBuilder<PropsBuilderStep_build >`
40+ | ^^^^ method not found in `PropsBuilder<PropsBuilderStepPropsBuilder >`
4141
4242error[E0609]: no field `does_not_exist` on type `Props`
4343 --> $DIR/props-fail.rs:15:25
You can’t perform that action at this time.
0 commit comments