You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/attributes/codegen.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,9 @@ There are three ways to use the inline attribute:
62
62
> [!NOTE]
63
63
> `#[inline]` in every form is a hint, with no *requirements* on the language to place a copy of the attributed function in the caller.
64
64
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.
0 commit comments