@@ -1727,16 +1727,6 @@ each method; it is not possible to annotate the entire impl with an `#[inline]`
17271727attribute.
17281728"## ,
17291729
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-
17401730E0522 : r##"
17411731The lang attribute is intended for marking special items that are built-in to
17421732Rust 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
22442234rejected in your own crates.
22452235"## ,
22462236
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+
22472246;
22482247// E0006, // merged with E0005
22492248// E0101, // replaced with E0282
@@ -2306,4 +2305,5 @@ rejected in your own crates.
23062305 E0726 , // non-explicit (not `'_`) elided lifetime in unsupported position
23072306 E0727 , // `async` generators are not yet supported
23082307 E0728 , // `await` must be in an `async` function or block
2308+ E0735 , // invalid track_caller application/syntax
23092309}
0 commit comments