diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-01-22 17:06:34 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-01-22 19:06:20 +0100 |
| commit | 30be6a666d3918b3a149ff2c2c3242c9b1912655 (patch) | |
| tree | df478a4eceb06545206cde7b3c7863e8e66f7a86 /src/rustllvm/RustWrapper.cpp | |
| parent | 46dcffd05b46e62c27629f4231fc794e94e614a8 (diff) | |
| download | rust-30be6a666d3918b3a149ff2c2c3242c9b1912655.tar.gz rust-30be6a666d3918b3a149ff2c2c3242c9b1912655.zip | |
Use cold functions for panic formatting Option::expect, Result::unwrap etc
Option::expect, Result::unwrap, unwrap_err, expect These methods are marked inline, but insert a big chunk of formatting code, as well as other error path related code, such as deallocating a std::io::Error if you have one. We can explicitly separate out that code path into a function that is never inline, since the panicking case should always be rare.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
