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.
standalone-crate
1 parent ada8918 commit 5d170f3Copy full SHA for 5d170f3
src/librustdoc/html/markdown.rs
@@ -1319,6 +1319,20 @@ impl LangString {
1319
"the code block will either not be tested if not marked as a rust \
1320
one or the code will be wrapped inside a main function",
1321
)),
1322
+ "standalone" | "standalone_crate" => {
1323
+ if let Some(extra) = extra
1324
+ && extra.sp.at_least_rust_2024()
1325
+ {
1326
+ Some((
1327
+ "standalone-crate",
1328
+ "the code block will either not be tested if not marked as \
1329
+ a rust one or the code will be run as part of the merged \
1330
+ doctests if compatible",
1331
+ ))
1332
+ } else {
1333
+ None
1334
+ }
1335
1336
_ => None,
1337
} {
1338
if let Some(extra) = extra {
0 commit comments