@@ -1815,7 +1815,7 @@ declare_lint! {
1815
1815
1816
1816
declare_lint ! {
1817
1817
/// The `irrefutable_let_patterns` lint detects detects [irrefutable
1818
- /// patterns] in [if- let] and [while- let] statements.
1818
+ /// patterns] in [`if let` ] and [` while let` ] statements.
1819
1819
///
1820
1820
///
1821
1821
///
@@ -1832,7 +1832,7 @@ declare_lint! {
1832
1832
/// ### Explanation
1833
1833
///
1834
1834
/// There usually isn't a reason to have an irrefutable pattern in an
1835
- /// if- let or while- let statement, because the pattern will always match
1835
+ /// `if let` or ` while let` statement, because the pattern will always match
1836
1836
/// successfully. A [`let`] or [`loop`] statement will suffice. However,
1837
1837
/// when generating code with a macro, forbidding irrefutable patterns
1838
1838
/// would require awkward workarounds in situations where the macro
@@ -1843,14 +1843,14 @@ declare_lint! {
1843
1843
/// See [RFC 2086] for more details.
1844
1844
///
1845
1845
/// [irrefutable patterns]: https://doc.rust-lang.org/reference/patterns.html#refutability
1846
- /// [if- let]: https://doc.rust-lang.org/reference/expressions/if-expr.html#if-let-expressions
1847
- /// [while- let]: https://doc.rust-lang.org/reference/expressions/loop-expr.html#predicate-pattern-loops
1846
+ /// [`if let` ]: https://doc.rust-lang.org/reference/expressions/if-expr.html#if-let-expressions
1847
+ /// [` while let` ]: https://doc.rust-lang.org/reference/expressions/loop-expr.html#predicate-pattern-loops
1848
1848
/// [`let`]: https://doc.rust-lang.org/reference/statements.html#let-statements
1849
1849
/// [`loop`]: https://doc.rust-lang.org/reference/expressions/loop-expr.html#infinite-loops
1850
1850
/// [RFC 2086]: https://github.com/rust-lang/rfcs/blob/master/text/2086-allow-if-let-irrefutables.md
1851
1851
pub IRREFUTABLE_LET_PATTERNS ,
1852
1852
Warn ,
1853
- "detects irrefutable patterns in if- let and while- let statements"
1853
+ "detects irrefutable patterns in `if let` and ` while let` statements"
1854
1854
}
1855
1855
1856
1856
declare_lint ! {
0 commit comments