@@ -1058,7 +1058,6 @@ pub mod parsing {
1058
1058
// type Ty<T> where T: 'static = T;
1059
1059
BeforeEq ,
1060
1060
// type Ty<T> = T where T: 'static;
1061
- #[ allow( dead_code) ]
1062
1061
AfterEq ,
1063
1062
// TODO: goes away once the migration period on rust-lang/rust#89122 is over
1064
1063
Both ,
@@ -1091,7 +1090,7 @@ pub mod parsing {
1091
1090
WhereClauseLocation :: BeforeEq | WhereClauseLocation :: Both => {
1092
1091
generics. where_clause = input. parse ( ) ?;
1093
1092
}
1094
- _ => { }
1093
+ WhereClauseLocation :: AfterEq => { }
1095
1094
}
1096
1095
1097
1096
let ty = if let Some ( eq_token) = input. parse ( ) ? {
@@ -1788,7 +1787,7 @@ pub mod parsing {
1788
1787
bounds : _,
1789
1788
ty,
1790
1789
semi_token,
1791
- } = FlexibleItemType :: parse ( input, WhereClauseLocation :: BeforeEq ) ?;
1790
+ } = FlexibleItemType :: parse ( input, WhereClauseLocation :: Both ) ?;
1792
1791
1793
1792
if defaultness. is_some ( )
1794
1793
|| generics. lt_token . is_some ( )
@@ -2277,7 +2276,7 @@ pub mod parsing {
2277
2276
bounds,
2278
2277
ty,
2279
2278
semi_token,
2280
- } = FlexibleItemType :: parse ( input, WhereClauseLocation :: Both ) ?;
2279
+ } = FlexibleItemType :: parse ( input, WhereClauseLocation :: AfterEq ) ?;
2281
2280
2282
2281
if defaultness. is_some ( ) || vis. is_some ( ) {
2283
2282
Ok ( TraitItem :: Verbatim ( verbatim:: between ( begin, input) ) )
@@ -2608,7 +2607,7 @@ pub mod parsing {
2608
2607
bounds : _,
2609
2608
ty,
2610
2609
semi_token,
2611
- } = FlexibleItemType :: parse ( input, WhereClauseLocation :: Both ) ?;
2610
+ } = FlexibleItemType :: parse ( input, WhereClauseLocation :: AfterEq ) ?;
2612
2611
2613
2612
if colon_token. is_some ( ) || ty. is_none ( ) {
2614
2613
Ok ( ImplItem :: Verbatim ( verbatim:: between ( begin, input) ) )
0 commit comments