Make a reference a link in doc
This commit is contained in:
parent
13ca5c88f1
commit
ea028497ed
@ -13,7 +13,7 @@ declare_clippy_lint! {
|
|||||||
/// repetitive
|
/// repetitive
|
||||||
///
|
///
|
||||||
/// **Known problems:** The match statement may be slower due to the compiler
|
/// **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:**
|
/// **Example:**
|
||||||
/// ```rust,ignore
|
/// ```rust,ignore
|
||||||
|
@ -22,7 +22,7 @@ declare_clippy_lint! {
|
|||||||
/// **Known problems:** If creating the closure inside the closure has a side-
|
/// **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 then moving the closure creation out will change when that side-
|
||||||
/// effect runs.
|
/// 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:**
|
/// **Example:**
|
||||||
/// ```rust,ignore
|
/// ```rust,ignore
|
||||||
@ -45,8 +45,9 @@ declare_clippy_lint! {
|
|||||||
///
|
///
|
||||||
/// **Why is this bad?** It's unnecessary to create the closure.
|
/// **Why is this bad?** It's unnecessary to create the closure.
|
||||||
///
|
///
|
||||||
/// **Known problems:** rust-lang/rust-clippy#3071, rust-lang/rust-clippy#4002,
|
/// **Known problems:** [#3071](https://github.com/rust-lang/rust-clippy/issues/3071),
|
||||||
/// rust-lang/rust-clippy#3942
|
/// [#3942](https://github.com/rust-lang/rust-clippy/issues/3942),
|
||||||
|
/// [#4002](https://github.com/rust-lang/rust-clippy/issues/4002)
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// **Example:**
|
/// **Example:**
|
||||||
|
@ -218,7 +218,7 @@ declare_clippy_lint! {
|
|||||||
/// **Why is this bad?** The `while let` loop is usually shorter and more
|
/// **Why is this bad?** The `while let` loop is usually shorter and more
|
||||||
/// readable.
|
/// 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:**
|
/// **Example:**
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
|
@ -75,7 +75,7 @@ declare_clippy_lint! {
|
|||||||
/// **Why is this bad?** `Vec` already keeps its contents in a separate area on
|
/// **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.
|
/// 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).
|
/// 1st comment).
|
||||||
///
|
///
|
||||||
/// **Example:**
|
/// **Example:**
|
||||||
|
@ -28,8 +28,8 @@ declare_clippy_lint! {
|
|||||||
/// feels inconsistent.
|
/// feels inconsistent.
|
||||||
///
|
///
|
||||||
/// **Known problems:**
|
/// **Known problems:**
|
||||||
/// - False positive when using associated types (#2843)
|
/// - 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)
|
/// - False positives in some situations when using generics ([#3410](https://github.com/rust-lang/rust-clippy/issues/3410))
|
||||||
///
|
///
|
||||||
/// **Example:**
|
/// **Example:**
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
Loading…
Reference in New Issue
Block a user