We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustX
1 parent fb32eb3 commit d3cb25fCopy full SHA for d3cb25f
src/librustdoc/html/markdown.rs
@@ -1284,6 +1284,16 @@ impl LangString {
1284
LangStringToken::LangToken(x) if x.starts_with("edition") => {
1285
data.edition = x[7..].parse::<Edition>().ok();
1286
}
1287
+ LangStringToken::LangToken(x)
1288
+ if x.starts_with("rust") && x[4..].parse::<Edition>().is_ok() =>
1289
+ {
1290
+ if let Some(extra) = extra {
1291
+ extra.error_invalid_codeblock_attr(format!(
1292
+ "unknown attribute `{x}`. Did you mean `edition{}`?",
1293
+ &x[4..]
1294
+ ));
1295
+ }
1296
1297
LangStringToken::LangToken(x)
1298
if allow_error_code_check && x.starts_with('E') && x.len() == 5 =>
1299
{
0 commit comments