Skip to content

RFC: Add additional inline intents#3778

Open
scottmcm wants to merge 1 commit intorust-lang:masterfrom
scottmcm:more-inline-options
Open

RFC: Add additional inline intents#3778
scottmcm wants to merge 1 commit intorust-lang:masterfrom
scottmcm:more-inline-options

Conversation

@scottmcm
Copy link
Member

@scottmcm scottmcm commented Feb 23, 2025

This proposes adding #[inline(trampoline)] and #[inline(rarely)] to hint the compiler additional information about why you're marking the function for inlining, to help it hopefully make better choices without the overly-strong hammers of always or never.

Rendered

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-lang Relevant to the language team, which will review and decide on the RFC.

Projects

None yet

Development

Successfully merging this pull request may close these issues.