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.
notrust
1 parent ef4982f commit 0904d1dCopy full SHA for 0904d1d
src/librustdoc/html/markdown.rs
@@ -403,7 +403,11 @@ impl LangString {
403
"should_fail" => { data.should_fail = true; seen_rust_tags = true; },
404
"no_run" => { data.no_run = true; seen_rust_tags = true; },
405
"ignore" => { data.ignore = true; seen_rust_tags = true; },
406
- "notrust" => { data.notrust = true; seen_rust_tags = true; },
+ "notrust" => {
407
+ data.notrust = true; seen_rust_tags = true;
408
+ warn!("Use of the `notrust` code tag is discouraged. \
409
+ Tag the code with its language instead or use `plain`.");
410
+ },
411
"rust" => { data.notrust = false; seen_rust_tags = true; },
412
"test_harness" => { data.test_harness = true; seen_rust_tags = true; }
413
_ => { seen_other_tags = true }
0 commit comments