Skip to content

Commit 753d582

Browse files
committed
rustc: rename CachedLayout to LayoutDetails.
1 parent 8437d7c commit 753d582

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
@@ -41,7 +41,7 @@ use ty::{PolyFnSig, InferTy, ParamTy, ProjectionTy, ExistentialPredicate, Predic
4141
use ty::RegionKind;
4242
use ty::{TyVar, TyVid, IntVar, IntVid, FloatVar, FloatVid};
4343
use ty::TypeVariants::*;
44-
use ty::layout::{CachedLayout, TargetDataLayout};
44+
use ty::layout::{LayoutDetails, TargetDataLayout};
4545
use ty::maps;
4646
use ty::steal::Steal;
4747
use ty::BindingMode;
@@ -78,7 +78,7 @@ use hir;
7878
/// Internal storage
7979
pub struct GlobalArenas<'tcx> {
8080
// internings
81-
layout: TypedArena<CachedLayout>,
81+
layout: TypedArena<LayoutDetails>,
8282

8383
// references
8484
generics: TypedArena<ty::Generics>,
@@ -918,7 +918,7 @@ pub struct GlobalCtxt<'tcx> {
918918

919919
stability_interner: RefCell<FxHashSet<&'tcx attr::Stability>>,
920920

921-
layout_interner: RefCell<FxHashSet<&'tcx CachedLayout>>,
921+
layout_interner: RefCell<FxHashSet<&'tcx LayoutDetails>>,
922922

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

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

0 commit comments

Comments
 (0)