Skip to content

Commit 47e4193

Browse files
committed
move a FIXME to a better place
1 parent dcf3a47 commit 47e4193

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/librustc_codegen_llvm/attributes.rs

-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ pub fn from_fn_attrs(
268268
false
269269
} else if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::UNWIND) {
270270
// If a specific #[unwind] attribute is present, use that.
271-
// FIXME: We currently assume it can unwind even with `#[unwind(aborts)]`.
272271
true
273272
} else if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::RUSTC_ALLOCATOR_NOUNWIND) {
274273
// Special attribute for allocator functions, which can't unwind

src/librustc_typeck/collect.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2528,6 +2528,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, id: DefId) -> CodegenFnAttrs {
25282528
} else if attr.check_name(sym::rustc_allocator) {
25292529
codegen_fn_attrs.flags |= CodegenFnAttrFlags::ALLOCATOR;
25302530
} else if attr.check_name(sym::unwind) {
2531+
// FIXME: We currently assume it can unwind even with `#[unwind(aborts)]`.
25312532
codegen_fn_attrs.flags |= CodegenFnAttrFlags::UNWIND;
25322533
} else if attr.check_name(sym::ffi_returns_twice) {
25332534
if tcx.is_foreign_item(id) {

0 commit comments

Comments
 (0)