about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2019-11-05 16:30:04 +0000
committerNadrieril <nadrieril+git@gmail.com>2019-11-05 18:32:26 +0000
commitf774eb69fd19cabaa17dfe91dd0a1b23a2dce842 (patch)
treec0e53808a54d03c9ba000c349522eed878075ee2 /src/libstd/sys/unix/stack_overflow.rs
parentd582ed5684de1951774b637ccfe8b4cf8bd2008b (diff)
downloadrust-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