We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af581ab commit dd136e7Copy full SHA for dd136e7
1 file changed
compiler/rustc_lint/src/runtime_symbols.rs
@@ -15,10 +15,11 @@ declare_lint! {
15
///
16
/// ### Example
17
18
- /// ```rust,compile_fail
19
- /// #[unsafe(no_mangle)]
+ #[cfg_attr(bootstrap, doc = "```rust")]
+ #[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
20
+ #[cfg_attr(not(bootstrap), doc = "#[unsafe(no_mangle)]")]
21
/// pub fn strlen() {} // invalid definition of the `strlen` function
- /// ```
22
+ #[doc = "```"]
23
24
/// {{produces}}
25
0 commit comments