Skip to content

Commit b723af2

Browse files
committed
rustc_trans: go through layouts uniformly for fat pointers and variants.
1 parent 026214c commit b723af2

File tree

25 files changed

+363
-447
lines changed

25 files changed

+363
-447
lines changed

src/librustc/lint/context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use rustc_serialize::{Decoder, Decodable, Encoder, Encodable};
3535
use session::{config, early_error, Session};
3636
use traits::Reveal;
3737
use ty::{self, TyCtxt, Ty};
38-
use ty::layout::{FullLayout, LayoutError, LayoutOf};
38+
use ty::layout::{LayoutError, LayoutOf, TyLayout};
3939
use util::nodemap::FxHashMap;
4040

4141
use std::default::Default as StdDefault;
@@ -628,9 +628,9 @@ impl<'a, 'tcx> LateContext<'a, 'tcx> {
628628
}
629629

630630
impl<'a, 'tcx> LayoutOf<Ty<'tcx>> for &'a LateContext<'a, 'tcx> {
631-
type FullLayout = Result<FullLayout<'tcx>, LayoutError<'tcx>>;
631+
type TyLayout = Result<TyLayout<'tcx>, LayoutError<'tcx>>;
632632

633-
fn layout_of(self, ty: Ty<'tcx>) -> Self::FullLayout {
633+
fn layout_of(self, ty: Ty<'tcx>) -> Self::TyLayout {
634634
(self.tcx, self.param_env.reveal_all()).layout_of(ty)
635635
}
636636
}

0 commit comments

Comments
 (0)