rust/src/libstd
bors bfcde309e7 auto merge of #15876 : brson/rust/failfat, r=pcwalton
Adds a new runtime unwinding function that encapsulates the printing of the words "explicit failure" when `fail!()` is called w/o arguments.

The before/after optimized assembly:



```
        leaq    "str\"str\"(1412)"(%rip), %rax
        movq    %rax, 24(%rsp)
        movq    $16, 32(%rsp)
        leaq    "str\"str\"(1413)"(%rip), %rax
        movq    %rax, 8(%rsp)
        movq    $19, 16(%rsp)
        leaq    24(%rsp), %rdi
        leaq    8(%rsp), %rsi
        movl    $11, %edx
        callq   _ZN6unwind12begin_unwind21h15836560661922107792E
```

```
        leaq    "str\"str\"(1369)"(%rip), %rax
        movq    %rax, 8(%rsp)
        movq    $19, 16(%rsp)
        leaq    8(%rsp), %rdi
        movl    $11, %esi
        callq   _ZN6unwind31begin_unwind_no_time_to_explain20hd1c720cdde6a116480dE@PLT
```

Before/after filesizes:

rwxrwxr-x 1 brian brian 21479503 Jul 20 22:09 stage2-old/lib/librustc-4e7c5e5c.so
rwxrwxr-x 1 brian brian 21475415 Jul 20 22:30 x86_64-unknown-linux-gnu/stage2/lib/librustc-4e7c5e5c.so

This is the lowest-hanging fruit in the fail-bloat wars. Further fixes are going to require harder tradeoffs.

r? @pcwalton
2014-07-22 10:46:16 +00:00
..
collections auto merge of #15867 : cmr/rust/rewrite-lexer4, r=alexcrichton 2014-07-22 07:16:17 +00:00
io auto merge of #15867 : cmr/rust/rewrite-lexer4, r=alexcrichton 2014-07-22 07:16:17 +00:00
num Add a ton of ignore-lexer-test 2014-07-21 18:38:40 -07:00
path auto merge of #15867 : cmr/rust/rewrite-lexer4, r=alexcrichton 2014-07-22 07:16:17 +00:00
rand Improve documentation for rand::random 2014-07-18 21:19:51 -04:00
rt Use fewer instructions for fail! 2014-07-21 13:50:12 -07:00
sync
ascii.rs auto merge of #15867 : cmr/rust/rewrite-lexer4, r=alexcrichton 2014-07-22 07:16:17 +00:00
bitflags.rs
c_vec.rs
dynamic_lib.rs
failure.rs Stabilization for owned (now boxed) and cell 2014-07-13 12:52:51 -07:00
fmt.rs auto merge of #15867 : cmr/rust/rewrite-lexer4, r=alexcrichton 2014-07-22 07:16:17 +00:00
from_str.rs
gc.rs
hash.rs mark std::hash experimental 2014-07-11 14:25:15 -07:00
lib.rs Rename to_str to to_string 2014-07-21 09:54:52 -07:00
macros.rs Use fewer instructions for fail! 2014-07-21 13:50:12 -07:00
os.rs Fix errors 2014-07-15 20:34:16 +02:00
prelude.rs Rename to_str to to_string 2014-07-21 09:54:52 -07:00
rtdeps.rs
task.rs Rename to_str to to_string 2014-07-21 09:54:52 -07:00
to_string.rs Rename to_str to to_string 2014-07-21 09:54:52 -07:00