@@ -1727,16 +1727,6 @@ each method; it is not possible to annotate the entire impl with an `#[inline]`
1727
1727
attribute.
1728
1728
"## ,
1729
1729
1730
- E0900 : r##"
1731
- FIXME(anp): change error number
1732
- FIXME(anp): track_caller: invalid syntax
1733
- "## ,
1734
-
1735
- E0901 : r##"
1736
- FIXME(anp): change error number
1737
- FIXME(anp): track_caller: no naked functions
1738
- "## ,
1739
-
1740
1730
E0522 : r##"
1741
1731
The lang attribute is intended for marking special items that are built-in to
1742
1732
Rust itself. This includes special traits (like `Copy` and `Sized`) that affect
@@ -2244,6 +2234,15 @@ These attributes are meant to only be used by the standard library and are
2244
2234
rejected in your own crates.
2245
2235
"## ,
2246
2236
2237
+ E0736 : r##"
2238
+ #[track_caller] and #[naked] cannot be applied to the same function.
2239
+
2240
+ This is primarily due to ABI incompatibilities between the two attributes.
2241
+ See [RFC 2091] for details on this and other limitations.
2242
+
2243
+ [RFC 2091]: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md
2244
+ "## ,
2245
+
2247
2246
;
2248
2247
// E0006, // merged with E0005
2249
2248
// E0101, // replaced with E0282
@@ -2306,4 +2305,5 @@ rejected in your own crates.
2306
2305
E0726 , // non-explicit (not `'_`) elided lifetime in unsupported position
2307
2306
E0727 , // `async` generators are not yet supported
2308
2307
E0728 , // `await` must be in an `async` function or block
2308
+ E0735 , // invalid track_caller application/syntax
2309
2309
}
0 commit comments