about summary refs log tree commit diff
path: root/src/librustc/error_codes.rs
diff options
context:
space:
mode:
authorAyose <ayosec@gmail.com>2019-07-20 00:55:58 +0000
committerAdam Perry <adam.n.perry@gmail.com>2019-10-07 08:05:21 -0700
commit543449d4fdf7bb7fd4a12c2fea96dafbe26eea90 (patch)
tree3f1550e764c244fd3908871db551aed213ed29d7 /src/librustc/error_codes.rs
parente3cb9ea15a2082f39d4d4f10a22e779701dd0d64 (diff)
downloadrust-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/librustc/error_codes.rs')
-rw-r--r--src/librustc/error_codes.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs
index 502172db91c..959a06c2e32 100644
--- a/src/librustc/error_codes.rs
+++ b/src/librustc/error_codes.rs
@@ -1640,6 +1640,16 @@ each method; it is not possible to annotate the entire impl with an `#[inline]`
 attribute.
 "##,
 
+E0900: r##"
+TODO: change error number
+TODO: track_caller: invalid syntax
+"##,
+
+E0901: r##"
+TODO: change error number
+TODO: track_caller: no naked functions
+"##,
+
 E0522: r##"
 The lang attribute is intended for marking special items that are built-in to
 Rust itself. This includes special traits (like `Copy` and `Sized`) that affect