@@ -1640,16 +1640,6 @@ each method; it is not possible to annotate the entire impl with an `#[inline]`
16401640attribute.
16411641"## ,
16421642
1643- E0900 : r##"
1644- FIXME(anp): change error number
1645- FIXME(anp): track_caller: invalid syntax
1646- "## ,
1647-
1648- E0901 : r##"
1649- FIXME(anp): change error number
1650- FIXME(anp): track_caller: no naked functions
1651- "## ,
1652-
16531643E0522 : r##"
16541644The lang attribute is intended for marking special items that are built-in to
16551645Rust itself. This includes special traits (like `Copy` and `Sized`) that affect
@@ -2085,6 +2075,15 @@ These attributes are meant to only be used by the standard library and are
20852075rejected in your own crates.
20862076"## ,
20872077
2078+ E0736 : r##"
2079+ #[track_caller] and #[naked] cannot be applied to the same function.
2080+
2081+ This is primarily due to ABI incompatibilities between the two attributes.
2082+ See [RFC 2091] for details on this and other limitations.
2083+
2084+ [RFC 2091]: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md
2085+ "## ,
2086+
20882087;
20892088// E0006, // merged with E0005
20902089// E0101, // replaced with E0282
@@ -2146,4 +2145,5 @@ rejected in your own crates.
21462145 E0726 , // non-explicit (not `'_`) elided lifetime in unsupported position
21472146 E0727 , // `async` generators are not yet supported
21482147 E0728 , // `await` must be in an `async` function or block
2148+ E0735 , // invalid track_caller application/syntax
21492149}
0 commit comments