]> git.lizzy.rs Git - rust.git/commitdiff
Make a reference a link in doc
authorTakayuki Nakata <f.seasons017@gmail.com>
Wed, 13 Jan 2021 00:21:26 +0000 (09:21 +0900)
committerTakayuki Nakata <f.seasons017@gmail.com>
Wed, 13 Jan 2021 00:21:26 +0000 (09:21 +0900)
clippy_lints/src/comparison_chain.rs
clippy_lints/src/eta_reduction.rs
clippy_lints/src/loops.rs
clippy_lints/src/types.rs
clippy_lints/src/use_self.rs

index ae1143b2c50ce8fbbe5647c56f6d52e386b70155..90d31dece13113ae9d2c64711211df9b1c67553a 100644 (file)
@@ -13,7 +13,7 @@
     /// repetitive
     ///
     /// **Known problems:** The match statement may be slower due to the compiler
-    /// not inlining the call to cmp. See issue #5354
+    /// not inlining the call to cmp. See issue [#5354](https://github.com/rust-lang/rust-clippy/issues/5354)
     ///
     /// **Example:**
     /// ```rust,ignore
index 53df3abbf543744ef1300c6b80ddaef834a2afdb..1a722d39f730bb1cb293920cd610fbe9b8f329b7 100644 (file)
@@ -22,7 +22,7 @@
     /// **Known problems:** If creating the closure inside the closure has a side-
     /// effect then moving the closure creation out will change when that side-
     /// effect runs.
-    /// See rust-lang/rust-clippy#1439 for more details.
+    /// See [#1439](https://github.com/rust-lang/rust-clippy/issues/1439) for more details.
     ///
     /// **Example:**
     /// ```rust,ignore
@@ -45,8 +45,9 @@
     ///
     /// **Why is this bad?** It's unnecessary to create the closure.
     ///
-    /// **Known problems:** rust-lang/rust-clippy#3071, rust-lang/rust-clippy#4002,
-    /// rust-lang/rust-clippy#3942
+    /// **Known problems:** [#3071](https://github.com/rust-lang/rust-clippy/issues/3071),
+    /// [#3942](https://github.com/rust-lang/rust-clippy/issues/3942),
+    /// [#4002](https://github.com/rust-lang/rust-clippy/issues/4002)
     ///
     ///
     /// **Example:**
index 1bd96b2b4c89beb3e433a3d8b416ac498cd42d6e..a6413dc2662a8c287427707fa965d6fe137ecd71 100644 (file)
     /// **Why is this bad?** The `while let` loop is usually shorter and more
     /// readable.
     ///
-    /// **Known problems:** Sometimes the wrong binding is displayed (#383).
+    /// **Known problems:** Sometimes the wrong binding is displayed ([#383](https://github.com/rust-lang/rust-clippy/issues/383)).
     ///
     /// **Example:**
     /// ```rust,no_run
index 75042d846d87206ec4afde6f8d25b06b0b42c8af..ef199c11e271249349a979b77925a6805dee07b2 100644 (file)
@@ -75,7 +75,7 @@
     /// **Why is this bad?** `Vec` already keeps its contents in a separate area on
     /// the heap. So if you `Box` its contents, you just add another level of indirection.
     ///
-    /// **Known problems:** Vec<Box<T: Sized>> makes sense if T is a large type (see #3530,
+    /// **Known problems:** Vec<Box<T: Sized>> makes sense if T is a large type (see [#3530](https://github.com/rust-lang/rust-clippy/issues/3530),
     /// 1st comment).
     ///
     /// **Example:**
index 3b23f885e08d9584d9434efd03aa31c93ef7b345..bb73d66dabac7fa2234377000753cb2cda81a2ba 100644 (file)
@@ -28,8 +28,8 @@
     /// feels inconsistent.
     ///
     /// **Known problems:**
-    /// - False positive when using associated types (#2843)
-    /// - False positives in some situations when using generics (#3410)
+    /// - False positive when using associated types ([#2843](https://github.com/rust-lang/rust-clippy/issues/2843))
+    /// - False positives in some situations when using generics ([#3410](https://github.com/rust-lang/rust-clippy/issues/3410))
     ///
     /// **Example:**
     /// ```rust