Skip to content

Commit f734536

Browse files
author
The Miri Conjob Bot
committed
Merge from rustc
2 parents 6c6e7c5 + de38254 commit f734536

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ pub struct PrimitiveLayouts<'tcx> {
311311
}
312312

313313
impl<'mir, 'tcx: 'mir> PrimitiveLayouts<'tcx> {
314-
fn new(layout_cx: LayoutCx<'tcx, TyCtxt<'tcx>>) -> Result<Self, LayoutError<'tcx>> {
314+
fn new(layout_cx: LayoutCx<'tcx, TyCtxt<'tcx>>) -> Result<Self, &'tcx LayoutError<'tcx>> {
315315
let tcx = layout_cx.tcx;
316316
let mut_raw_ptr = tcx.mk_ptr(TypeAndMut { ty: tcx.types.unit, mutbl: Mutability::Mut });
317317
let const_raw_ptr = tcx.mk_ptr(TypeAndMut { ty: tcx.types.unit, mutbl: Mutability::Not });

tests/compiletest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ fn test_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->
8888
mode,
8989
program,
9090
output_conflict_handling,
91+
out_dir: PathBuf::from(std::env::var_os("CARGO_TARGET_DIR").unwrap()).join("ui"),
9192
edition: Some("2021".into()),
9293
..Config::rustc(path.into())
9394
};

0 commit comments

Comments
 (0)