diff options
| author | bors <bors@rust-lang.org> | 2013-10-28 22:51:51 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-28 22:51:51 -0700 |
| commit | 671ab42a3b86addf7b90ff126554a092579e589a (patch) | |
| tree | 9be83bf730af3c4c600aec162208a6b3eb1c36d8 /src/libstd/rt | |
| parent | dba60700804119f7e953e6b2b72ce4875c9d60cb (diff) | |
| parent | 541e5f84d7ccbf02f8fdab6da0ff92f7ffbf0866 (diff) | |
| download | rust-671ab42a3b86addf7b90ff126554a092579e589a.tar.gz rust-671ab42a3b86addf7b90ff126554a092579e589a.zip | |
auto merge of #10127 : thestinger/rust/cold, r=pcwalton
This allows a function to marked as infrequently called, resulting in any branch calling it to be considered colder.
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/borrowck.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/rt/borrowck.rs b/src/libstd/rt/borrowck.rs index 9d13e79464a..7fcd674009d 100644 --- a/src/libstd/rt/borrowck.rs +++ b/src/libstd/rt/borrowck.rs @@ -57,6 +57,7 @@ pub fn clear_task_borrow_list() { let _ = try_take_task_borrow_list(); } +#[cold] unsafe fn fail_borrowed(box: *mut raw::Box<()>, file: *c_char, line: size_t) -> ! { debug_borrow("fail_borrowed: ", box, 0, 0, file, line); |
