diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-06 08:17:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-06 08:17:38 +0200 |
| commit | ab7155dd977e88bc275832d6733d1c5653338d7c (patch) | |
| tree | 29b4655fec86ea15de8b88ee5f19ec8d245b6f0a /src/test/debuginfo/enum-thinlto.rs | |
| parent | e98823025fe600dbe2d1385abec2804d0a8e0b2f (diff) | |
| parent | 9058bf2100499649a285e49555e42fbe8fa3556d (diff) | |
| download | rust-ab7155dd977e88bc275832d6733d1c5653338d7c.tar.gz rust-ab7155dd977e88bc275832d6733d1c5653338d7c.zip | |
Rollup merge of #63230 - tmandry:disallow-possibly-uninitialized, r=Centril
Make use of possibly uninitialized data [E0381] a hard error This is one of the behaviors we no longer allow in NLL. Since it can lead to undefined behavior, I think it's definitely worth making it a hard error without waiting to turn off migration mode (#58781). Closes #60450. My ulterior motive here is making it impossible to leave variables partially initialized across a yield (see #60889, discussion at #63035), so tests are included for that. cc #54987 --- I'm not sure if bypassing the buffer is a good way of doing this. We could also make a `force_errors_buffer` or similar that gets recombined with all the errors as they are emitted. But this is simpler and seems fine to me. r? @Centril cc @cramertj @nikomatsakis @pnkfelix @RalfJung
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
