only compute codegen_fn_attrs
where needed
This commit is contained in:
parent
66ff6c32e5
commit
d371ebe117
11 changed files with 153 additions and 50 deletions
|
@ -95,7 +95,9 @@ bitflags! {
|
|||
}
|
||||
|
||||
impl CodegenFnAttrs {
|
||||
pub fn new() -> CodegenFnAttrs {
|
||||
pub const EMPTY: &'static Self = &Self::new();
|
||||
|
||||
pub const fn new() -> CodegenFnAttrs {
|
||||
CodegenFnAttrs {
|
||||
flags: CodegenFnAttrFlags::empty(),
|
||||
inline: InlineAttr::None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue