about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-15 01:40:45 +0100
committerGitHub <noreply@github.com>2022-11-15 01:40:45 +0100
commitda2beab3f67af6fd0e1ff11bd1007226800c08da (patch)
tree5d61dfbeb29095954b9468f20c6842e16a702c9b
parentaea4c0c1b8de16e8fbe035ab71593e8939b8d9f7 (diff)
parenta9e4176bc868bd0d5b1f9a4dcff5aed5c22ad3f8 (diff)
downloadrust-da2beab3f67af6fd0e1ff11bd1007226800c08da.tar.gz
rust-da2beab3f67af6fd0e1ff11bd1007226800c08da.zip
Rollup merge of #104403 - koka831:lint-doc, r=Dylan-DPC
Specify language of code comment to generate document

Fix `let_underscore_drop` comment
https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#example-7
-rw-r--r--compiler/rustc_lint/src/let_underscore.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/let_underscore.rs b/compiler/rustc_lint/src/let_underscore.rs
index 78f355ec3d0..c8939256bbb 100644
--- a/compiler/rustc_lint/src/let_underscore.rs
+++ b/compiler/rustc_lint/src/let_underscore.rs
@@ -11,7 +11,8 @@ declare_lint! {
     /// scope.
     ///
     /// ### Example
-    /// ```
+    ///
+    /// ```rust
     /// struct SomeStruct;
     /// impl Drop for SomeStruct {
     ///     fn drop(&mut self) {