File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_hir_analysis/src/outlives Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change
1
+ use rustc_data_structures:: fx:: FxIndexMap ;
1
2
use rustc_infer:: infer:: outlives:: components:: { push_outlives_components, Component } ;
2
3
use rustc_middle:: ty:: { self , Region , Ty , TyCtxt } ;
3
4
use rustc_middle:: ty:: { GenericArg , GenericArgKind } ;
4
5
use rustc_span:: Span ;
5
6
use smallvec:: smallvec;
6
- use std:: collections:: BTreeMap ;
7
7
8
8
/// Tracks the `T: 'a` or `'a: 'a` predicates that we have inferred
9
9
/// must be added to the struct header.
10
10
pub ( crate ) type RequiredPredicates < ' tcx > =
11
- BTreeMap < ty:: OutlivesPredicate < GenericArg < ' tcx > , ty:: Region < ' tcx > > , Span > ;
11
+ FxIndexMap < ty:: OutlivesPredicate < GenericArg < ' tcx > , ty:: Region < ' tcx > > , Span > ;
12
12
13
13
/// Given a requirement `T: 'a` or `'b: 'a`, deduce the
14
14
/// outlives_component and add it to `required_predicates`
You can’t perform that action at this time.
0 commit comments