Skip to content

Commit bdcd082

Browse files
committed
rustc_target: move in type definitions from ty::layout.
1 parent 38e9640 commit bdcd082

File tree

9 files changed

+808
-762
lines changed

9 files changed

+808
-762
lines changed

src/librustc/ty/context.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
12041204
f: F) -> R
12051205
where F: for<'b> FnOnce(TyCtxt<'b, 'tcx, 'tcx>) -> R
12061206
{
1207-
let data_layout = TargetDataLayout::parse(s);
1207+
let data_layout = TargetDataLayout::parse(&s.target.target).unwrap_or_else(|err| {
1208+
s.fatal(&err);
1209+
});
12081210
let interners = CtxtInterners::new(&arenas.interner);
12091211
let common_types = CommonTypes::new(&interners);
12101212
let dep_graph = hir.dep_graph.clone();

0 commit comments

Comments
 (0)