diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2019-11-05 16:30:04 +0000 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2019-11-05 18:32:26 +0000 |
| commit | f774eb69fd19cabaa17dfe91dd0a1b23a2dce842 (patch) | |
| tree | c0e53808a54d03c9ba000c349522eed878075ee2 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | d582ed5684de1951774b637ccfe8b4cf8bd2008b (diff) | |
| download | rust-f774eb69fd19cabaa17dfe91dd0a1b23a2dce842.tar.gz rust-f774eb69fd19cabaa17dfe91dd0a1b23a2dce842.zip | |
Use VarLenSlice consistently when splitting constructors
The previous behaviour ignored slice lengths above a certain length because it could not do otherwise. We now have VarLenSlice however, that can represent the ignored lengths to make the algorithm more consistent. This does not change the correctness of the algorithm, but makes it easier to reason about. As a nice side-effect, exhaustiveness errors have improved: they now capture all missing lengths instead of only the shortest.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
