@@ -42,7 +42,7 @@ use ty::{PolyFnSig, InferTy, ParamTy, ProjectionTy, ExistentialPredicate, Predic
42
42
use ty:: RegionKind ;
43
43
use ty:: { TyVar , TyVid , IntVar , IntVid , FloatVar , FloatVid } ;
44
44
use ty:: TypeVariants :: * ;
45
- use ty:: layout:: { CachedLayout , TargetDataLayout } ;
45
+ use ty:: layout:: { LayoutDetails , TargetDataLayout } ;
46
46
use ty:: maps;
47
47
use ty:: steal:: Steal ;
48
48
use ty:: BindingMode ;
@@ -79,7 +79,7 @@ use hir;
79
79
/// Internal storage
80
80
pub struct GlobalArenas < ' tcx > {
81
81
// internings
82
- layout : TypedArena < CachedLayout > ,
82
+ layout : TypedArena < LayoutDetails > ,
83
83
84
84
// references
85
85
generics : TypedArena < ty:: Generics > ,
@@ -916,7 +916,7 @@ pub struct GlobalCtxt<'tcx> {
916
916
917
917
stability_interner : RefCell < FxHashSet < & ' tcx attr:: Stability > > ,
918
918
919
- layout_interner : RefCell < FxHashSet < & ' tcx CachedLayout > > ,
919
+ layout_interner : RefCell < FxHashSet < & ' tcx LayoutDetails > > ,
920
920
921
921
/// A vector of every trait accessible in the whole crate
922
922
/// (i.e. including those from subcrates). This is used only for
@@ -1014,7 +1014,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
1014
1014
interned
1015
1015
}
1016
1016
1017
- pub fn intern_layout ( self , layout : CachedLayout ) -> & ' gcx CachedLayout {
1017
+ pub fn intern_layout ( self , layout : LayoutDetails ) -> & ' gcx LayoutDetails {
1018
1018
if let Some ( layout) = self . layout_interner . borrow ( ) . get ( & layout) {
1019
1019
return layout;
1020
1020
}
0 commit comments