We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
inline
async
1 parent 4e3d6b2 commit 9d865bfCopy full SHA for 9d865bf
src/attributes/codegen.md
@@ -74,6 +74,12 @@ The `inline` attribute supports these modes:
74
r[attributes.codegen.inline.trait]
75
When `inline` is applied to a function in a [trait], it applies only to the code of the [default definition].
76
77
+r[attributes.codegen.inline.async]
78
+When `inline` is applied to an async function or async closure, it applies only to the code of the generated `poll` function.
79
+
80
+> [!NOTE]
81
+> For more details, see [Rust issue #129347](https://github.com/rust-lang/rust/issues/129347).
82
83
r[attributes.codegen.inline.externally-exported]
84
The `inline` attribute is ignored if the function is externally exported with [`no_mangle`] or [`export_name`].
85
0 commit comments