summaryrefslogtreecommitdiff
path: root/compiler/rustc_lint_defs
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2022-10-25 00:59:32 +0200
committerKagami Sascha Rosylight <saschanaz@outlook.com>2022-10-25 00:59:32 +0200
commit30b522365bf3a2be8248c1572054e5988db0e1fd (patch)
tree9bf26fe9b47de7cdae27b4c5c91d2a0aad2488b7 /compiler/rustc_lint_defs
parent8ecbb7e39a2bbd082fbac4b05eb715bda2c91fce (diff)
downloadrust-30b522365bf3a2be8248c1572054e5988db0e1fd.tar.gz
Fix failing examples
Diffstat (limited to 'compiler/rustc_lint_defs')
-rw-r--r--compiler/rustc_lint_defs/src/builtin.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs
index 61ee467f595..1fc2c454864 100644
--- a/compiler/rustc_lint_defs/src/builtin.rs
+++ b/compiler/rustc_lint_defs/src/builtin.rs
@@ -605,7 +605,7 @@ declare_lint! {
///
/// ### Example
///
- /// ```
+ /// ```rust
/// #[warn(unused_tuple_struct_fields)]
/// struct S(i32, i32, i32);
/// let s = S(1, 2, 3);
@@ -1154,7 +1154,7 @@ declare_lint! {
///
/// ### Example
///
- /// ```compile_fail
+ /// ```rust,compile_fail
/// #[repr(packed)]
/// pub struct Foo {
/// field1: u64,
@@ -2615,7 +2615,7 @@ declare_lint! {
///
/// ### Example
///
- /// ```compile_fail
+ /// ```rust,compile_fail
/// # #![allow(unused)]
/// enum E {
/// A,
@@ -3986,7 +3986,7 @@ declare_lint! {
///
/// ### Example
///
- /// ```
+ /// ```rust
/// #![allow(test_unstable_lint)]
/// ```
///