]> git.lizzy.rs Git - rust.git/commit
Auto merge of #32244 - Amanieu:compare_exchange_result, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 19 Mar 2016 19:25:34 +0000 (12:25 -0700)
committerbors <bors@rust-lang.org>
Sat, 19 Mar 2016 19:25:34 +0000 (12:25 -0700)
commit8eeb5062d115b846a66685e73ce29697f7eeee11
treecfd2d819b031934155a4bf3fc52f20ab15a95b87
parent151be09333b53a761c847107bc659769632ae6c6
parent421fed188c66379cb2f00c7e4ad7b7381b3abaa9
Auto merge of #32244 - Amanieu:compare_exchange_result, r=alexcrichton

Change compare_exchange to return a Result<T, T>

As per the discussion in #31767

I also changed the feature name from `extended_compare_and_swap` to `compare_exchange`.

r? @alexcrichton
src/libcore/intrinsics.rs
src/librustc_trans/trans/intrinsic.rs
src/librustc_typeck/check/intrinsic.rs