Skip to content

Commit 2869aba

Browse files
committed
comment
1 parent 3e7a5a4 commit 2869aba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/librustc_mir/interpret/place.rs

+7
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,13 @@ where
658658
PlaceTy {
659659
place: match self.frame().return_place {
660660
Some(p) => *p,
661+
// Even if we don't have a return place, we sometimes need to
662+
// create this place, but any attempt to read from / write to it
663+
// (even a ZST read/write) needs to error, so let us make this
664+
// a NULL place.
665+
//
666+
// FIXME: Ideally we'd make sure that the place projections also
667+
// bail out.
661668
None => Place::null(&*self),
662669
},
663670
layout: self.layout_of(

0 commit comments

Comments
 (0)