Skip to content

Commit e32b8eb

Browse files
committed
Remove default bound for Machine::MemoryExtra
1 parent e475539 commit e32b8eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc_mir/const_eval.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,8 @@ pub fn const_eval_raw_provider<'tcx>(
636636
tcx.at(span),
637637
key.param_env,
638638
CompileTimeInterpreter::new(),
639-
Default::default());
639+
Default::default()
640+
);
640641

641642
let res = ecx.load_mir(cid.instance.def);
642643
res.map(|body| {

src/librustc_mir/interpret/machine.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub trait Machine<'mir, 'tcx>: Sized {
7373
/// Extra data stored in memory. A reference to this is available when `AllocExtra`
7474
/// gets initialized, so you can e.g., have an `Rc` here if there is global state you
7575
/// need access to in the `AllocExtra` hooks.
76-
type MemoryExtra: Default;
76+
type MemoryExtra;
7777

7878
/// Extra data stored in every allocation.
7979
type AllocExtra: AllocationExtra<Self::PointerTag> + 'static;

0 commit comments

Comments
 (0)