Remove allow(rustc::potential_query_instability)
for builtin_macros
This commit is contained in:
parent
98c33e47a4
commit
1590350836
2 changed files with 5 additions and 6 deletions
|
@ -2,7 +2,7 @@ use rustc_ast as ast;
|
||||||
use rustc_ast::ptr::P;
|
use rustc_ast::ptr::P;
|
||||||
use rustc_ast::token::{self, Delimiter};
|
use rustc_ast::token::{self, Delimiter};
|
||||||
use rustc_ast::tokenstream::TokenStream;
|
use rustc_ast::tokenstream::TokenStream;
|
||||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
use rustc_data_structures::fx::{FxHashMap, FxIndexMap, FxIndexSet};
|
||||||
use rustc_errors::PResult;
|
use rustc_errors::PResult;
|
||||||
use rustc_expand::base::{self, *};
|
use rustc_expand::base::{self, *};
|
||||||
use rustc_parse::parser::Parser;
|
use rustc_parse::parser::Parser;
|
||||||
|
@ -20,8 +20,8 @@ use crate::errors;
|
||||||
pub struct AsmArgs {
|
pub struct AsmArgs {
|
||||||
pub templates: Vec<P<ast::Expr>>,
|
pub templates: Vec<P<ast::Expr>>,
|
||||||
pub operands: Vec<(ast::InlineAsmOperand, Span)>,
|
pub operands: Vec<(ast::InlineAsmOperand, Span)>,
|
||||||
named_args: FxHashMap<Symbol, usize>,
|
named_args: FxIndexMap<Symbol, usize>,
|
||||||
reg_args: FxHashSet<usize>,
|
reg_args: FxIndexSet<usize>,
|
||||||
pub clobber_abis: Vec<(Symbol, Span)>,
|
pub clobber_abis: Vec<(Symbol, Span)>,
|
||||||
options: ast::InlineAsmOptions,
|
options: ast::InlineAsmOptions,
|
||||||
pub options_spans: Vec<Span>,
|
pub options_spans: Vec<Span>,
|
||||||
|
@ -56,8 +56,8 @@ pub fn parse_asm_args<'a>(
|
||||||
let mut args = AsmArgs {
|
let mut args = AsmArgs {
|
||||||
templates: vec![first_template],
|
templates: vec![first_template],
|
||||||
operands: vec![],
|
operands: vec![],
|
||||||
named_args: FxHashMap::default(),
|
named_args: Default::default(),
|
||||||
reg_args: FxHashSet::default(),
|
reg_args: Default::default(),
|
||||||
clobber_abis: Vec::new(),
|
clobber_abis: Vec::new(),
|
||||||
options: ast::InlineAsmOptions::empty(),
|
options: ast::InlineAsmOptions::empty(),
|
||||||
options_spans: vec![],
|
options_spans: vec![],
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
//! This crate contains implementations of built-in macros and other code generating facilities
|
//! This crate contains implementations of built-in macros and other code generating facilities
|
||||||
//! injecting code into the crate before it is lowered to HIR.
|
//! injecting code into the crate before it is lowered to HIR.
|
||||||
|
|
||||||
#![allow(rustc::potential_query_instability)]
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![feature(array_windows)]
|
#![feature(array_windows)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue