diff options
| author | Ralf Jung <post@ralfj.de> | 2019-08-07 16:23:11 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-08-11 12:04:49 +0200 |
| commit | 5c77a17d182fd05f06eaf899281b2eda49047e91 (patch) | |
| tree | c57b4e06de4f3fb72e257101e20ff5e68286ab2e | |
| parent | c5a63566d6d8d70687410b41b6464bcef3ef89f3 (diff) | |
| download | rust-5c77a17d182fd05f06eaf899281b2eda49047e91.tar.gz rust-5c77a17d182fd05f06eaf899281b2eda49047e91.zip | |
note down some more future plans
| -rw-r--r-- | src/librustc_lint/builtin.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 5c2a86f8f3f..13ec27aa1ab 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -1908,6 +1908,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for InvalidValue { 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, } |
