@@ -2,7 +2,7 @@ use rustc_ast as ast;
22use rustc_ast:: ptr:: P ;
33use rustc_ast:: token:: { self , Delimiter } ;
44use rustc_ast:: tokenstream:: TokenStream ;
5- use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
5+ use rustc_data_structures:: fx:: { FxHashMap , FxIndexMap , FxIndexSet } ;
66use rustc_errors:: PResult ;
77use rustc_expand:: base:: { self , * } ;
88use rustc_parse:: parser:: Parser ;
@@ -20,8 +20,8 @@ use crate::errors;
2020pub struct AsmArgs {
2121 pub templates : Vec < P < ast:: Expr > > ,
2222 pub operands : Vec < ( ast:: InlineAsmOperand , Span ) > ,
23- named_args : FxHashMap < Symbol , usize > ,
24- reg_args : FxHashSet < usize > ,
23+ named_args : FxIndexMap < Symbol , usize > ,
24+ reg_args : FxIndexSet < usize > ,
2525 pub clobber_abis : Vec < ( Symbol , Span ) > ,
2626 options : ast:: InlineAsmOptions ,
2727 pub options_spans : Vec < Span > ,
@@ -56,8 +56,8 @@ pub fn parse_asm_args<'a>(
5656 let mut args = AsmArgs {
5757 templates : vec ! [ first_template] ,
5858 operands : vec ! [ ] ,
59- named_args : FxHashMap :: default ( ) ,
60- reg_args : FxHashSet :: default ( ) ,
59+ named_args : Default :: default ( ) ,
60+ reg_args : Default :: default ( ) ,
6161 clobber_abis : Vec :: new ( ) ,
6262 options : ast:: InlineAsmOptions :: empty ( ) ,
6363 options_spans : vec ! [ ] ,
0 commit comments