@@ -114,7 +114,7 @@ declare_clippy_lint! {
114
114
///
115
115
/// Better:
116
116
///
117
- /// ```ignore
117
+ /// ```rust, ignore
118
118
/// let opt = Some(1);
119
119
/// opt?;
120
120
/// # Some::<()>(())
@@ -168,7 +168,7 @@ declare_clippy_lint! {
168
168
/// **Known problems:** None.
169
169
///
170
170
/// **Example:**
171
- /// ```ignore
171
+ /// ```rust, ignore
172
172
/// struct X;
173
173
/// impl X {
174
174
/// fn add(&self, other: &X) -> X {
@@ -200,7 +200,7 @@ declare_clippy_lint! {
200
200
/// **Known problems:** None.
201
201
///
202
202
/// **Example:**
203
- /// ```ignore
203
+ /// ```rust, ignore
204
204
/// impl X {
205
205
/// fn as_str(self) -> &str {
206
206
/// ..
@@ -245,7 +245,7 @@ declare_clippy_lint! {
245
245
/// **Known problems:** The error type needs to implement `Debug`
246
246
///
247
247
/// **Example:**
248
- /// ```ignore
248
+ /// ```rust, ignore
249
249
/// x.ok().expect("why did I do this again?")
250
250
/// ```
251
251
pub OK_EXPECT ,
@@ -318,7 +318,7 @@ declare_clippy_lint! {
318
318
/// **Known problems:** The order of the arguments is not in execution order.
319
319
///
320
320
/// **Example:**
321
- /// ```ignore
321
+ /// ```rust, ignore
322
322
/// opt.map_or(None, |a| a + 1)
323
323
/// ```
324
324
pub OPTION_MAP_OR_NONE ,
@@ -707,7 +707,7 @@ declare_clippy_lint! {
707
707
/// **Known problems:** None.
708
708
///
709
709
/// **Example:**
710
- /// ```ignore
710
+ /// ```rust, ignore
711
711
/// impl Foo {
712
712
/// fn new(..) -> NotAFoo {
713
713
/// }
@@ -771,7 +771,7 @@ declare_clippy_lint! {
771
771
/// **Known problems:** None.
772
772
///
773
773
/// **Example:**
774
- /// ```should_panic
774
+ /// ```rust, should_panic
775
775
/// for x in (0..100).step_by(0) {
776
776
/// //..
777
777
/// }
@@ -953,7 +953,7 @@ declare_clippy_lint! {
953
953
/// **Known problems:** None.
954
954
///
955
955
/// **Example:**
956
- /// ```ignore
956
+ /// ```rust, ignore
957
957
/// name.chars().last() == Some('_') || name.chars().next_back() == Some('-')
958
958
/// ```
959
959
pub CHARS_LAST_CMP ,
@@ -1147,7 +1147,7 @@ declare_clippy_lint! {
1147
1147
/// **Known problems:** None
1148
1148
///
1149
1149
/// **Example:**
1150
- /// ```ignore
1150
+ /// ```rust, ignore
1151
1151
/// unsafe { (&() as *const ()).offset(1) };
1152
1152
/// ```
1153
1153
pub ZST_OFFSET ,
0 commit comments