File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -270,10 +270,10 @@ pub fn from_fn_attrs(
270
270
// optimize based on this!
271
271
false
272
272
} else if codegen_fn_attrs. flags . contains ( CodegenFnAttrFlags :: UNWIND ) {
273
- // If a specific #[unwind] attribute is present, use that
273
+ // If a specific #[unwind] attribute is present, use that.
274
274
true
275
275
} else if codegen_fn_attrs. flags . contains ( CodegenFnAttrFlags :: RUSTC_ALLOCATOR_NOUNWIND ) {
276
- // Special attribute for allocator functions, which can't unwind
276
+ // Special attribute for allocator functions, which can't unwind.
277
277
false
278
278
} else {
279
279
let sig = cx. tcx . normalize_erasing_late_bound_regions ( ty:: ParamEnv :: reveal_all ( ) , & sig) ;
Original file line number Diff line number Diff line change 12
12
#[ unwind( allowed) ]
13
13
pub extern fn foo_allowed ( ) { }
14
14
15
- // "Rust" ABI (`extrn "Rust"` could be removed as all `fn` get it implicitly; we leave it
16
- // in for clarity.)
15
+ // "Rust"
16
+ // (`extern "Rust"` could be removed as all `fn` get it implicitly; we leave it in for clarity.)
17
17
pub extern "Rust" fn bar ( ) { }
18
18
#[ unwind( allowed) ]
19
19
pub extern "Rust" fn bar_allowed ( ) { }
You can’t perform that action at this time.
0 commit comments