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 {
14711471 InlineAsm ( P < InlineAsm > ) ,
14721472
14731473 /// Output of the `offset_of!()` macro.
1474- OffsetOf ( P < Ty > , Vec < Ident > ) ,
1474+ OffsetOf ( P < Ty > , P < [ Ident ] > ) ,
14751475
14761476 /// A macro invocation; pre-expansion.
14771477 MacCall ( P < MacCall > ) ,
Original file line number Diff line number Diff line change @@ -1458,7 +1458,7 @@ pub fn noop_visit_expr<T: MutVisitor>(
14581458 ExprKind :: FormatArgs ( fmt) => vis. visit_format_args ( fmt) ,
14591459 ExprKind :: OffsetOf ( container, fields) => {
14601460 vis. visit_ty ( container) ;
1461- for field in fields {
1461+ for field in fields. iter_mut ( ) {
14621462 vis. visit_ident ( field) ;
14631463 }
14641464 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ fn parse_args<'a>(
4141 cx : & mut ExtCtxt < ' a > ,
4242 sp : Span ,
4343 tts : TokenStream ,
44- ) -> PResult < ' a , ( P < ast:: Ty > , Vec < Ident > ) > {
44+ ) -> PResult < ' a , ( P < ast:: Ty > , P < [ Ident ] > ) > {
4545 let mut p = cx. new_parser_from_tts ( tts) ;
4646
4747 let container = p. parse_ty ( ) ?;
@@ -71,7 +71,7 @@ fn parse_args<'a>(
7171 break ;
7272 }
7373
74- Ok ( ( container, fields) )
74+ Ok ( ( container, fields. into ( ) ) )
7575}
7676
7777pub fn expand_offset_of < ' cx > (
You can’t perform that action at this time.
0 commit comments