Skip to content

Commit

Permalink
some typography
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Oct 12, 2019
1 parent 63af27f commit 79c623f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/librustc_codegen_llvm/attributes.rs
Expand Up @@ -270,10 +270,10 @@ pub fn from_fn_attrs(
// optimize based on this!
false
} else if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::UNWIND) {
// If a specific #[unwind] attribute is present, use that
// If a specific #[unwind] attribute is present, use that.
true
} else if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::RUSTC_ALLOCATOR_NOUNWIND) {
// Special attribute for allocator functions, which can't unwind
// Special attribute for allocator functions, which can't unwind.
false
} else {
let sig = cx.tcx.normalize_erasing_late_bound_regions(ty::ParamEnv::reveal_all(), &sig);
Expand Down
4 changes: 2 additions & 2 deletions src/test/codegen/unwind-extern-exports.rs
Expand Up @@ -12,8 +12,8 @@
#[unwind(allowed)]
pub extern fn foo_allowed() {}

// "Rust" ABI (`extrn "Rust"` could be removed as all `fn` get it implicitly; we leave it
// in for clarity.)
// "Rust"
// (`extern "Rust"` could be removed as all `fn` get it implicitly; we leave it in for clarity.)
pub extern "Rust" fn bar() {}
#[unwind(allowed)]
pub extern "Rust" fn bar_allowed() {}

0 comments on commit 79c623f

Please sign in to comment.