[RFC 2091] Add #[track_caller] attribute.
- The attribute is behind a feature gate. - Error if both #[naked] and #[track_caller] are applied to the same function. - Error if #[track_caller] is applied to a non-function item. - Error if ABI is not "rust" - Error if #[track_caller] is applied to a trait function. Error codes and descriptions are pending.
This commit is contained in:
parent
e3cb9ea15a
commit
543449d4fd
22 changed files with 199 additions and 1 deletions
|
|
@ -0,0 +1,5 @@
|
|||
# `track_caller`
|
||||
|
||||
The tracking issue for this feature is: [#47809](https://github.com/rust-lang/rust/issues/47809).
|
||||
|
||||
------------------------
|
||||
Loading…
Add table
Add a link
Reference in a new issue