Closed
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();
}