Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/attributes/codegen.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ r[attributes.codegen.inline]
r[attributes.codegen.inline.intro]
The *`inline` [attribute]* suggests whether a copy of the attributed function's code should be placed in the caller rather than generating a call to the function.

r[attribute.codegen.inline.crate-boundaries]
The attribute also makes it possible for the compiler to inline non-generic functions across crate boundaries.
Non-generic functions without the *`inline`* [attribute] can not be inlined in another crate.

> [!EXAMPLE]
> ```rust
> #[inline]
Expand Down
Loading