about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-09-21 17:54:39 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-09-24 12:40:29 +0300
commit9d6b9d62ba67fd2ff5d97ae958c954ad2c45d04d (patch)
treee450f514c2bd1dcfe7e7c0660fbde767f3ce45b9 /src/libstd/sys/unix/stack_overflow.rs
parentacb73dbe8b311eb2ffa640ac3e01795d84159df4 (diff)
downloadrust-9d6b9d62ba67fd2ff5d97ae958c954ad2c45d04d.tar.gz
rust-9d6b9d62ba67fd2ff5d97ae958c954ad2c45d04d.zip
typeck::check::coercion - roll back failed unsizing type vars
This wraps unsizing coercions within an additional level of
`commit_if_ok`, which rolls back type variables if the unsizing coercion
fails. This prevents a large amount of type-variables from accumulating
while type-checking a large function, e.g. shaving 2GB off one of the
4GB peaks in #36799.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions