Skip to content

Commit

Permalink
note a possible future implementation strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 22, 2019
1 parent e52d94e commit f57cfe4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustc_target/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,10 @@ impl<'a, Ty> TyLayout<'a, Ty> {
/// `zero` indicates if the memory is zero-initialized, or alternatively
/// left entirely uninitialized.
/// This is conservative: in doubt, it will answer `true`.
///
/// FIXME: Once we removed all the conservatism, we could alternatively
/// create an all-0/all-undef constant and run the vonst value validator to see if
/// this is a valid value for the given type.
pub fn might_permit_raw_init<C, E>(
self,
cx: &C,
Expand Down

0 comments on commit f57cfe4

Please sign in to comment.