File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
tests/fail/function_calls Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- 0265a3e93bf1b89d97cae113ed214954d5c35e22
1+ 538f118da1409759ba198acc0ff62070bc6d2dce
Original file line number Diff line number Diff line change 1717//! load to the first, as a result of C++20's coherence-ordered before rules.
1818//!
1919//! Rust follows the C++20 memory model (except for the Consume ordering and some operations not performable through C++'s
20- //! std::atomic<T> API). It is therefore possible for this implementation to generate behaviours never observable when the
20+ //! ` std::atomic<T>` API). It is therefore possible for this implementation to generate behaviours never observable when the
2121//! same program is compiled and run natively. Unfortunately, no literature exists at the time of writing which proposes
2222//! an implementable and C++20-compatible relaxed memory model that supports all atomic operation existing in Rust. The closest one is
2323//! A Promising Semantics for Relaxed-Memory Concurrency by Jeehoon Kang et al. (<https://www.cs.tau.ac.il/~orilahav/papers/popl17.pdf>)
Original file line number Diff line number Diff line change 11#![ feature( rustc_private) ]
2- #![ feature( map_first_last) ]
32#![ feature( map_try_insert) ]
43#![ feature( never_type) ]
54#![ feature( try_blocks) ]
Original file line number Diff line number Diff line change 11//@revisions: extern_block definition both
22#![ feature( rustc_attrs, c_unwind) ]
33
4- #[ cfg_attr( any( definition, both) , rustc_allocator_nounwind ) ]
4+ #[ cfg_attr( any( definition, both) , rustc_nounwind ) ]
55#[ no_mangle]
66extern "C-unwind" fn nounwind ( ) {
77 //[definition]~^ ERROR: abnormal termination: the program aborted execution
@@ -11,7 +11,7 @@ extern "C-unwind" fn nounwind() {
1111
1212fn main ( ) {
1313 extern "C-unwind" {
14- #[ cfg_attr( any( extern_block, both) , rustc_allocator_nounwind ) ]
14+ #[ cfg_attr( any( extern_block, both) , rustc_nounwind ) ]
1515 fn nounwind ( ) ;
1616 }
1717 unsafe { nounwind ( ) }
You can’t perform that action at this time.
0 commit comments