1
Fork 0

Automatically enable cross-crate inlining for small functions

This commit is contained in:
Ben Kimock 2023-10-06 20:29:42 -04:00
parent 09df6108c8
commit 33b0e4be06
67 changed files with 434 additions and 344 deletions

View file

@ -126,14 +126,6 @@ impl CodegenFnAttrs {
}
}
/// Returns `true` if `#[inline]` or `#[inline(always)]` is present.
pub fn requests_inline(&self) -> bool {
match self.inline {
InlineAttr::Hint | InlineAttr::Always => true,
InlineAttr::None | InlineAttr::Never => false,
}
}
/// Returns `true` if it looks like this symbol needs to be exported, for example:
///
/// * `#[no_mangle]` is present