Skip to content

Commit 93471ac

Browse files
committed
rustc: rename CachedLayout to LayoutDetails.
1 parent 597973d commit 93471ac

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

src/librustc/ty/context.rs

+4-4
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>,
@@ -921,7 +921,7 @@ pub struct GlobalCtxt<'tcx> {
921921

922922
stability_interner: RefCell<FxHashSet<&'tcx attr::Stability>>,
923923

924-
layout_interner: RefCell<FxHashSet<&'tcx CachedLayout>>,
924+
layout_interner: RefCell<FxHashSet<&'tcx LayoutDetails>>,
925925

926926
/// A vector of every trait accessible in the whole crate
927927
/// (i.e. including those from subcrates). This is used only for
@@ -1019,7 +1019,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
10191019
interned
10201020
}
10211021

1022-
pub fn intern_layout(self, layout: CachedLayout) -> &'gcx CachedLayout {
1022+
pub fn intern_layout(self, layout: LayoutDetails) -> &'gcx LayoutDetails {
10231023
if let Some(layout) = self.layout_interner.borrow().get(&layout) {
10241024
return layout;
10251025
}

0 commit comments

Comments
 (0)