File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1471,7 +1471,7 @@ pub enum ExprKind {
1471
1471
InlineAsm ( P < InlineAsm > ) ,
1472
1472
1473
1473
/// Output of the `offset_of!()` macro.
1474
- OffsetOf ( P < Ty > , Vec < Ident > ) ,
1474
+ OffsetOf ( P < Ty > , P < [ Ident ] > ) ,
1475
1475
1476
1476
/// A macro invocation; pre-expansion.
1477
1477
MacCall ( P < MacCall > ) ,
Original file line number Diff line number Diff line change @@ -1458,7 +1458,7 @@ pub fn noop_visit_expr<T: MutVisitor>(
1458
1458
ExprKind :: FormatArgs ( fmt) => vis. visit_format_args ( fmt) ,
1459
1459
ExprKind :: OffsetOf ( container, fields) => {
1460
1460
vis. visit_ty ( container) ;
1461
- for field in fields {
1461
+ for field in fields. iter_mut ( ) {
1462
1462
vis. visit_ident ( field) ;
1463
1463
}
1464
1464
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ fn parse_args<'a>(
41
41
cx : & mut ExtCtxt < ' a > ,
42
42
sp : Span ,
43
43
tts : TokenStream ,
44
- ) -> PResult < ' a , ( P < ast:: Ty > , Vec < Ident > ) > {
44
+ ) -> PResult < ' a , ( P < ast:: Ty > , P < [ Ident ] > ) > {
45
45
let mut p = cx. new_parser_from_tts ( tts) ;
46
46
47
47
let container = p. parse_ty ( ) ?;
@@ -71,7 +71,7 @@ fn parse_args<'a>(
71
71
break ;
72
72
}
73
73
74
- Ok ( ( container, fields) )
74
+ Ok ( ( container, fields. into ( ) ) )
75
75
}
76
76
77
77
pub fn expand_offset_of < ' cx > (
You can’t perform that action at this time.
0 commit comments