Skip to content

Commit f57cfe4

Browse files
committed
note a possible future implementation strategy
1 parent e52d94e commit f57cfe4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_target/abi/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,10 @@ impl<'a, Ty> TyLayout<'a, Ty> {
10921092
/// `zero` indicates if the memory is zero-initialized, or alternatively
10931093
/// left entirely uninitialized.
10941094
/// This is conservative: in doubt, it will answer `true`.
1095+
///
1096+
/// FIXME: Once we removed all the conservatism, we could alternatively
1097+
/// create an all-0/all-undef constant and run the vonst value validator to see if
1098+
/// this is a valid value for the given type.
10951099
pub fn might_permit_raw_init<C, E>(
10961100
self,
10971101
cx: &C,

0 commit comments

Comments
 (0)