diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2023-07-04 16:22:01 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2023-07-14 10:10:14 +0200 |
| commit | cfb310939b9098cf5fd211c2c176eb0b2b2498fa (patch) | |
| tree | 5340e787ce732053e4f0050b5fa3094f70d4b6d7 /compiler/rustc_middle/src/middle | |
| parent | fe03b46ee4688a99d7155b4f9dcd875b6903952d (diff) | |
| download | rust-cfb310939b9098cf5fd211c2c176eb0b2b2498fa.tar.gz rust-cfb310939b9098cf5fd211c2c176eb0b2b2498fa.zip | |
Enable potential_query_instability lint in rustc_hir_typeck.
Fix linting errors by using FxIndex(Map|Set) and Unord(Map|Set) as appropriate.
Diffstat (limited to 'compiler/rustc_middle/src/middle')
| -rw-r--r-- | compiler/rustc_middle/src/middle/region.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/middle/region.rs b/compiler/rustc_middle/src/middle/region.rs index 10712e14686..c50c5e6f701 100644 --- a/compiler/rustc_middle/src/middle/region.rs +++ b/compiler/rustc_middle/src/middle/region.rs @@ -10,7 +10,7 @@ use crate::ty::TyCtxt; use rustc_data_structures::fx::{FxHashMap, FxIndexMap}; use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_hir as hir; -use rustc_hir::Node; +use rustc_hir::{HirIdMap, Node}; use rustc_macros::HashStable; use rustc_query_system::ich::StableHashingContext; use rustc_span::{Span, DUMMY_SP}; @@ -228,7 +228,7 @@ pub struct ScopeTree { /// and not the enclosing *statement*. Expressions that are not present in this /// table are not rvalue candidates. The set of rvalue candidates is computed /// during type check based on a traversal of the AST. - pub rvalue_candidates: FxHashMap<hir::HirId, RvalueCandidateType>, + pub rvalue_candidates: HirIdMap<RvalueCandidateType>, /// If there are any `yield` nested within a scope, this map /// stores the `Span` of the last one and its index in the |
