diff options
| author | Ayose <ayosec@gmail.com> | 2019-07-20 00:55:58 +0000 |
|---|---|---|
| committer | Adam Perry <adam.n.perry@gmail.com> | 2019-10-07 08:05:21 -0700 |
| commit | 543449d4fdf7bb7fd4a12c2fea96dafbe26eea90 (patch) | |
| tree | 3f1550e764c244fd3908871db551aed213ed29d7 /src/libsyntax_pos | |
| parent | e3cb9ea15a2082f39d4d4f10a22e779701dd0d64 (diff) | |
| download | rust-543449d4fdf7bb7fd4a12c2fea96dafbe26eea90.tar.gz rust-543449d4fdf7bb7fd4a12c2fea96dafbe26eea90.zip | |
[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.
Diffstat (limited to 'src/libsyntax_pos')
| -rw-r--r-- | src/libsyntax_pos/symbol.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs index c7230d5ca15..2b005c3fc42 100644 --- a/src/libsyntax_pos/symbol.rs +++ b/src/libsyntax_pos/symbol.rs @@ -674,6 +674,7 @@ symbols! { tool_attributes, tool_lints, trace_macros, + track_caller, trait_alias, transmute, transparent, |
