@@ -114,7 +114,7 @@ declare_clippy_lint! {
114114 ///
115115 /// Better:
116116 ///
117- /// ```ignore
117+ /// ```rust, ignore
118118 /// let opt = Some(1);
119119 /// opt?;
120120 /// # Some::<()>(())
@@ -168,7 +168,7 @@ declare_clippy_lint! {
168168 /// **Known problems:** None.
169169 ///
170170 /// **Example:**
171- /// ```ignore
171+ /// ```rust, ignore
172172 /// struct X;
173173 /// impl X {
174174 /// fn add(&self, other: &X) -> X {
@@ -200,7 +200,7 @@ declare_clippy_lint! {
200200 /// **Known problems:** None.
201201 ///
202202 /// **Example:**
203- /// ```ignore
203+ /// ```rust, ignore
204204 /// impl X {
205205 /// fn as_str(self) -> &str {
206206 /// ..
@@ -245,7 +245,7 @@ declare_clippy_lint! {
245245 /// **Known problems:** The error type needs to implement `Debug`
246246 ///
247247 /// **Example:**
248- /// ```ignore
248+ /// ```rust, ignore
249249 /// x.ok().expect("why did I do this again?")
250250 /// ```
251251 pub OK_EXPECT ,
@@ -318,7 +318,7 @@ declare_clippy_lint! {
318318 /// **Known problems:** The order of the arguments is not in execution order.
319319 ///
320320 /// **Example:**
321- /// ```ignore
321+ /// ```rust, ignore
322322 /// opt.map_or(None, |a| a + 1)
323323 /// ```
324324 pub OPTION_MAP_OR_NONE ,
@@ -707,7 +707,7 @@ declare_clippy_lint! {
707707 /// **Known problems:** None.
708708 ///
709709 /// **Example:**
710- /// ```ignore
710+ /// ```rust, ignore
711711 /// impl Foo {
712712 /// fn new(..) -> NotAFoo {
713713 /// }
@@ -771,7 +771,7 @@ declare_clippy_lint! {
771771 /// **Known problems:** None.
772772 ///
773773 /// **Example:**
774- /// ```should_panic
774+ /// ```rust, should_panic
775775 /// for x in (0..100).step_by(0) {
776776 /// //..
777777 /// }
@@ -953,7 +953,7 @@ declare_clippy_lint! {
953953 /// **Known problems:** None.
954954 ///
955955 /// **Example:**
956- /// ```ignore
956+ /// ```rust, ignore
957957 /// name.chars().last() == Some('_') || name.chars().next_back() == Some('-')
958958 /// ```
959959 pub CHARS_LAST_CMP ,
@@ -1147,7 +1147,7 @@ declare_clippy_lint! {
11471147 /// **Known problems:** None
11481148 ///
11491149 /// **Example:**
1150- /// ```ignore
1150+ /// ```rust, ignore
11511151 /// unsafe { (&() as *const ()).offset(1) };
11521152 /// ```
11531153 pub ZST_OFFSET ,
0 commit comments