Skip to content

Commit 1590350

Browse files
committed
Remove allow(rustc::potential_query_instability) for builtin_macros
1 parent 98c33e4 commit 1590350

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

compiler/rustc_builtin_macros/src/asm.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use rustc_ast as ast;
22
use rustc_ast::ptr::P;
33
use rustc_ast::token::{self, Delimiter};
44
use rustc_ast::tokenstream::TokenStream;
5-
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
5+
use rustc_data_structures::fx::{FxHashMap, FxIndexMap, FxIndexSet};
66
use rustc_errors::PResult;
77
use rustc_expand::base::{self, *};
88
use rustc_parse::parser::Parser;
@@ -20,8 +20,8 @@ use crate::errors;
2020
pub 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![],

compiler/rustc_builtin_macros/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! This crate contains implementations of built-in macros and other code generating facilities
22
//! injecting code into the crate before it is lowered to HIR.
33
4-
#![allow(rustc::potential_query_instability)]
54
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
65
#![feature(array_windows)]
76
#![feature(box_patterns)]

0 commit comments

Comments
 (0)