Skip to content

Commit 6df6d0a

Browse files
onalante-msftemilio
authored andcommitted
Add revision suggestion for MSRV >= 1.59.0
1 parent e262305 commit 6df6d0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/codegen/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,6 +2202,8 @@ impl CodeGenerator for CompInfo {
22022202
};
22032203

22042204
let uninit_decl = if !check_field_offset.is_empty() {
2205+
// FIXME: When MSRV >= 1.59.0, we can use
2206+
// > const PTR: *const #canonical_ident = ::#prefix::mem::MaybeUninit::uninit().as_ptr();
22052207
Some(quote! {
22062208
// Use a shared MaybeUninit so that rustc with
22072209
// opt-level=0 doesn't take too much stack space,

0 commit comments

Comments
 (0)