about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-09-16 19:07:20 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-10-01 10:03:06 +0000
commit6ecacf76bcd9165eafdb7223e754e74982a00a4c (patch)
tree248ed5288276e939d5cce6c04a1530317c607716 /src/librustdoc/html
parent7e90a4184437fb39904288106cfb4bfab322e18a (diff)
downloadrust-6ecacf76bcd9165eafdb7223e754e74982a00a4c.tar.gz
rust-6ecacf76bcd9165eafdb7223e754e74982a00a4c.zip
rustdoc: adopt to the new lint API
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/markdown.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs
index 8e53fbbcd19..68eb5008583 100644
--- a/src/librustdoc/html/markdown.rs
+++ b/src/librustdoc/html/markdown.rs
@@ -813,11 +813,8 @@ impl<'tcx> ExtraInfo<'tcx> {
             crate::lint::INVALID_CODEBLOCK_ATTRIBUTES,
             hir_id,
             self.sp,
-            |lint| {
-                let mut diag = lint.build(msg);
-                diag.help(help);
-                diag.emit();
-            },
+            msg,
+            |lint| lint.help(help),
         );
     }
 }