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.
become
#[track_caller]
1 parent 55522ed commit 8e699c5Copy full SHA for 8e699c5
library/std/src/keyword_docs.rs
@@ -1323,7 +1323,10 @@ mod return_keyword {}
1323
/// currently has these requirements:
1324
/// 1. callee and caller must have the same ABI, arguments, and return type
1325
/// 2. callee and caller must not have varargs
1326
-/// 3. callee and caller must not be marked with `#[track_caller]`
+/// 3. caller must not be marked with `#[track_caller]`
1327
+/// - callee is allowed to be marked with `#[track_caller]` as otherwise
1328
+/// adding `#[track_caller]` would be a breaking change. if callee is
1329
+/// marked with `#[track_caller]` a tail call is not guaranteed.
1330
/// 4. callee and caller cannot be a closure
1331
/// (unless it's coerced to a function pointer)
1332
///
0 commit comments