@@ -2,7 +2,7 @@ use rustc_ast as ast;
2
2
use rustc_ast:: ptr:: P ;
3
3
use rustc_ast:: token:: { self , Delimiter } ;
4
4
use rustc_ast:: tokenstream:: TokenStream ;
5
- use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
5
+ use rustc_data_structures:: fx:: { FxHashMap , FxIndexMap , FxIndexSet } ;
6
6
use rustc_errors:: PResult ;
7
7
use rustc_expand:: base:: { self , * } ;
8
8
use rustc_parse:: parser:: Parser ;
@@ -20,8 +20,8 @@ use crate::errors;
20
20
pub struct AsmArgs {
21
21
pub templates : Vec < P < ast:: Expr > > ,
22
22
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 > ,
25
25
pub clobber_abis : Vec < ( Symbol , Span ) > ,
26
26
options : ast:: InlineAsmOptions ,
27
27
pub options_spans : Vec < Span > ,
@@ -56,8 +56,8 @@ pub fn parse_asm_args<'a>(
56
56
let mut args = AsmArgs {
57
57
templates : vec ! [ first_template] ,
58
58
operands : vec ! [ ] ,
59
- named_args : FxHashMap :: default ( ) ,
60
- reg_args : FxHashSet :: default ( ) ,
59
+ named_args : Default :: default ( ) ,
60
+ reg_args : Default :: default ( ) ,
61
61
clobber_abis : Vec :: new ( ) ,
62
62
options : ast:: InlineAsmOptions :: empty ( ) ,
63
63
options_spans : vec ! [ ] ,
0 commit comments