Rollup merge of #108736 - clubby789:ast-passes-unstable, r=Nilstrieb
Remove `allow(potential_query_instability)` from `ast_passes` cc #84447
This commit is contained in:
commit
ff95645e2c
@ -12,7 +12,7 @@ use rustc_ast::visit::{self, AssocCtxt, BoundKind, FnCtxt, FnKind, Visitor};
|
|||||||
use rustc_ast::walk_list;
|
use rustc_ast::walk_list;
|
||||||
use rustc_ast::*;
|
use rustc_ast::*;
|
||||||
use rustc_ast_pretty::pprust::{self, State};
|
use rustc_ast_pretty::pprust::{self, State};
|
||||||
use rustc_data_structures::fx::FxHashMap;
|
use rustc_data_structures::fx::FxIndexMap;
|
||||||
use rustc_macros::Subdiagnostic;
|
use rustc_macros::Subdiagnostic;
|
||||||
use rustc_parse::validate_attr;
|
use rustc_parse::validate_attr;
|
||||||
use rustc_session::lint::builtin::{
|
use rustc_session::lint::builtin::{
|
||||||
@ -643,7 +643,7 @@ fn validate_generic_param_order(
|
|||||||
span: Span,
|
span: Span,
|
||||||
) {
|
) {
|
||||||
let mut max_param: Option<ParamKindOrd> = None;
|
let mut max_param: Option<ParamKindOrd> = None;
|
||||||
let mut out_of_order = FxHashMap::default();
|
let mut out_of_order = FxIndexMap::default();
|
||||||
let mut param_idents = Vec::with_capacity(generics.len());
|
let mut param_idents = Vec::with_capacity(generics.len());
|
||||||
|
|
||||||
for (idx, param) in generics.iter().enumerate() {
|
for (idx, param) in generics.iter().enumerate() {
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
//!
|
//!
|
||||||
//! The crate also contains other misc AST visitors, e.g. `node_count` and `show_span`.
|
//! The crate also contains other misc AST visitors, e.g. `node_count` and `show_span`.
|
||||||
|
|
||||||
#![allow(rustc::potential_query_instability)]
|
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(if_let_guard)]
|
#![feature(if_let_guard)]
|
||||||
#![feature(iter_is_partitioned)]
|
#![feature(iter_is_partitioned)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user