rustc_error, rustc_private, rustc_ast: Switch to stable hash containers
This commit is contained in:
parent
db9d86b58d
commit
8d3c30c004
8 changed files with 36 additions and 16 deletions
|
@ -22,7 +22,7 @@ use crate::{
|
|||
|
||||
use rustc_lint_defs::pluralize;
|
||||
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::fx::{FxHashMap, FxIndexMap};
|
||||
use rustc_data_structures::sync::Lrc;
|
||||
use rustc_error_messages::FluentArgs;
|
||||
use rustc_span::hygiene::{ExpnKind, MacroKind};
|
||||
|
@ -1487,7 +1487,7 @@ impl EmitterWriter {
|
|||
);
|
||||
|
||||
// Contains the vertical lines' positions for active multiline annotations
|
||||
let mut multilines = FxHashMap::default();
|
||||
let mut multilines = FxIndexMap::default();
|
||||
|
||||
// Get the left-side margin to remove it
|
||||
let mut whitespace_margin = usize::MAX;
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#![feature(result_option_inspect)]
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(incomplete_features)]
|
||||
#![allow(rustc::potential_query_instability)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate rustc_macros;
|
||||
|
@ -27,7 +26,7 @@ use Level::*;
|
|||
|
||||
use emitter::{is_case_difference, Emitter, EmitterWriter};
|
||||
use registry::Registry;
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap};
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap, FxIndexSet};
|
||||
use rustc_data_structures::stable_hasher::StableHasher;
|
||||
use rustc_data_structures::sync::{self, Lock, Lrc};
|
||||
use rustc_data_structures::AtomicRef;
|
||||
|
@ -413,7 +412,7 @@ struct HandlerInner {
|
|||
taught_diagnostics: FxHashSet<DiagnosticId>,
|
||||
|
||||
/// Used to suggest rustc --explain <error code>
|
||||
emitted_diagnostic_codes: FxHashSet<DiagnosticId>,
|
||||
emitted_diagnostic_codes: FxIndexSet<DiagnosticId>,
|
||||
|
||||
/// This set contains a hash of every diagnostic that has been emitted by
|
||||
/// this handler. These hashes is used to avoid emitting the same error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue