File tree 3 files changed +19
-2
lines changed
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ pub mod rc;
98
98
/// Common out-of-memory routine
99
99
#[ cold]
100
100
#[ inline( never) ]
101
- #[ unsafe_no_nounwind ]
101
+ #[ unsafe_no_unwind ]
102
102
pub fn oom ( ) -> ! {
103
103
// FIXME(#14674): This really needs to do something other than just abort
104
104
// here, but any printing done must be *guaranteed* to not
Original file line number Diff line number Diff line change @@ -654,7 +654,7 @@ impl LintPass for UnusedAttributes {
654
654
"omit_gdb_pretty_printer_section" ,
655
655
"unsafe_no_drop_flag" ,
656
656
"can_unwind" ,
657
- "nounwind " ,
657
+ "unsafe_no_unwind " ,
658
658
659
659
// used in resolve
660
660
"prelude_import" ,
Original file line number Diff line number Diff line change
1
+ // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ #![ allow( dead_code) ]
12
+
13
+ #[ can_unwind]
14
+ extern fn foo ( ) { } //~ ERROR the `#[can_unwind]` attribute is an experimental feature
15
+
16
+ #[ unsafe_no_unwind]
17
+ fn main ( ) { } //~ ERROR the `#[unsafe_no_unwind]` attribute is an experimental feature
You can’t perform that action at this time.
0 commit comments