-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Since #49291 #[inline]
is no longer accepted on closures, despite the fact that this attribute does have an effect on code generation.
The generated LLVM IR (in debug builds) for this example is different if you remove #[inline(always)]
:
#![feature(stmt_expr_attributes)]
#![crate_type="rlib"]
pub fn main() {
let x = #[inline(always)] || {};
x();
}
schneiderfelipe
Metadata
Metadata
Assignees
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.