Skip to content

Commit cac77ac

Browse files
committed
rustc: rename CachedLayout to LayoutDetails.
1 parent 714fc16 commit cac77ac

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

src/librustc/ty/context.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use ty::{PolyFnSig, InferTy, ParamTy, ProjectionTy, ExistentialPredicate, Predic
4242
use ty::RegionKind;
4343
use ty::{TyVar, TyVid, IntVar, IntVid, FloatVar, FloatVid};
4444
use ty::TypeVariants::*;
45-
use ty::layout::{CachedLayout, TargetDataLayout};
45+
use ty::layout::{LayoutDetails, TargetDataLayout};
4646
use ty::maps;
4747
use ty::steal::Steal;
4848
use ty::BindingMode;
@@ -79,7 +79,7 @@ use hir;
7979
/// Internal storage
8080
pub struct GlobalArenas<'tcx> {
8181
// internings
82-
layout: TypedArena<CachedLayout>,
82+
layout: TypedArena<LayoutDetails>,
8383

8484
// references
8585
generics: TypedArena<ty::Generics>,
@@ -916,7 +916,7 @@ pub struct GlobalCtxt<'tcx> {
916916

917917
stability_interner: RefCell<FxHashSet<&'tcx attr::Stability>>,
918918

919-
layout_interner: RefCell<FxHashSet<&'tcx CachedLayout>>,
919+
layout_interner: RefCell<FxHashSet<&'tcx LayoutDetails>>,
920920

921921
/// A vector of every trait accessible in the whole crate
922922
/// (i.e. including those from subcrates). This is used only for
@@ -1014,7 +1014,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
10141014
interned
10151015
}
10161016

1017-
pub fn intern_layout(self, layout: CachedLayout) -> &'gcx CachedLayout {
1017+
pub fn intern_layout(self, layout: LayoutDetails) -> &'gcx LayoutDetails {
10181018
if let Some(layout) = self.layout_interner.borrow().get(&layout) {
10191019
return layout;
10201020
}

0 commit comments

Comments
 (0)