about summary refs log tree commit diff
path: root/tests/ui/force-inlining
AgeCommit message (Collapse)AuthorLines
2025-01-10mir_build: check annotated functions w/out callersDavid Wood-53/+112
2025-01-10inline: re-introduce some callee body checksDavid Wood-0/+102
2025-01-10inline: force inlining shimsDavid Wood-0/+9
2025-01-10mir_transform: implement forced inliningDavid Wood-0/+803
Adds `#[rustc_force_inline]` which is similar to always inlining but reports an error if the inlining was not possible, and which always attempts to inline annotated items, regardless of optimisation levels. It can only be applied to free functions to guarantee that the MIR inliner will be able to resolve calls.