Skip to content

Commit 2ccd26e

Browse files
committed
Add attributes.codegen.inline.trait
This adds some wording that was removed from the "optimization hints" section.
1 parent e38127d commit 2ccd26e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/attributes/codegen.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ There are three ways to use the inline attribute:
6262
> [!NOTE]
6363
> `#[inline]` in every form is a hint, with no *requirements* on the language to place a copy of the attributed function in the caller.
6464
65+
r[attributes.codegen.inline.trait]
66+
When `inline` is applied to a function in a [trait definition], it applies only to that function when used as a default function for a trait implementation and not to all trait implementations.
67+
6568
r[attributes.codegen.cold]
6669
### The `cold` attribute
6770

0 commit comments

Comments
 (0)