]> git.lizzy.rs Git - rust.git/commitdiff
note down some more future plans
authorRalf Jung <post@ralfj.de>
Wed, 7 Aug 2019 14:23:11 +0000 (16:23 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 11 Aug 2019 10:04:49 +0000 (12:04 +0200)
src/librustc_lint/builtin.rs

index 5c2a86f8f3feb18f3216c467c4196c0e23ab6a90..13ec27aa1ab3f67ccd67b85a50f05210eb581859 100644 (file)
@@ -1908,6 +1908,8 @@ fn ty_maybe_allows_zero_init<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> bool {
                     ty.tuple_fields().all(|field| ty_maybe_allows_zero_init(tcx, field))
                 }
                 // FIXME: Would be nice to also warn for `NonNull`/`NonZero*`.
+                // FIXME: *Only for `mem::uninitialized`*, we could also warn for `bool`,
+                //        `char`, and any multivariant enum.
                 // Conservative fallback.
                 _ => true,
             }