Skip to content

Commit a6622c2

Browse files
committed
note some FIXMEs
1 parent 5ebd077 commit a6622c2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/librustc_mir/interpret/eval_context.rs

+3
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tc
377377
// A field with extern type. If this field is at offset 0 and the sized
378378
// part makes no alignment constraints, we behave like the underlying
379379
// extern type.
380+
// FIXME: Once we have made decisions for how to handle size and alignment
381+
// of `extern type`, this should be adapted. It is just a temporary hack
382+
// to get some code to work that probably ought to work.
380383
if sized_size == Size::ZERO && sized_align.abi() == 1 {
381384
return Ok(None)
382385
} else {

src/librustc_mir/interpret/place.rs

+3
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ where
356356
let align = self.size_and_align_of(base.meta, field_layout)?
357357
.map(|(_, align)| align)
358358
// If this is an extern type, we fall back to its static alignment.
359+
// FIXME: Once we have made decisions for how to handle size and alignment
360+
// of `extern type`, this should be adapted. It is just a temporary hack
361+
// to get some code to work that probably ought to work.
359362
.unwrap_or_else(|| base.layout.align);
360363
(base.meta, offset.abi_align(align))
361364
} else {

0 commit comments

Comments
 (0)