diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2019-08-02 17:08:16 -0700 |
|---|---|---|
| committer | Tyler Mandry <tmandry@gmail.com> | 2019-08-05 14:57:12 -0700 |
| commit | 9058bf2100499649a285e49555e42fbe8fa3556d (patch) | |
| tree | 863024b0f88ff6f9672a8525070fca4ef221879e /src/test/debuginfo/enum-thinlto.rs | |
| parent | c43753f910aae000f8bcb0a502407ea332afc74b (diff) | |
| download | rust-9058bf2100499649a285e49555e42fbe8fa3556d.tar.gz rust-9058bf2100499649a285e49555e42fbe8fa3556d.zip | |
Make use of possibly uninitialized data 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 discussion at #63035), so tests are included for that.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
