From f3f1be6a763c39ef978df006c7ffc53a0fa69dbe Mon Sep 17 00:00:00 2001 From: Alexey Gladkov Date: Fri, 7 Apr 2023 17:23:05 +0300 Subject: ALT: Disable lint tests Signed-off-by: Alexey Gladkov --- compiler/rustc_lint/src/methods.rs | 2 +- compiler/rustc_lint/src/traits.rs | 2 +- compiler/rustc_lint_defs/src/builtin.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/rustc_lint/src/methods.rs b/compiler/rustc_lint/src/methods.rs index 4c25d94a1f3..e4fb9e4d240 100644 --- a/compiler/rustc_lint/src/methods.rs +++ b/compiler/rustc_lint/src/methods.rs @@ -12,7 +12,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust + /// ```rust,ignore (fails) /// # #![allow(unused)] /// # use std::ffi::CString; /// let c_str = CString::new("foo").unwrap().as_ptr(); diff --git a/compiler/rustc_lint/src/traits.rs b/compiler/rustc_lint/src/traits.rs index 7ea1a138b7e..db26e6c2753 100644 --- a/compiler/rustc_lint/src/traits.rs +++ b/compiler/rustc_lint/src/traits.rs @@ -11,7 +11,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust + /// ```rust,ignore (fails) /// fn foo() {} /// ``` /// diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 6e9dc880a7d..ed88e5a933e 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -2796,7 +2796,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust + /// ```rust,ignore (fails) /// fn foo() { } /// /// fn main() { @@ -2823,7 +2823,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust + /// ```rust,ignore (fails) /// enum Void {} /// extern { /// static EXTERN: Void; @@ -2851,7 +2851,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust,compile_fail + /// ```rust,compile_fail,ignore (fails) /// struct X; /// /// #[deprecated = "message"] @@ -3394,7 +3394,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust + /// ```rust,ignore (fails) /// /// docs for x /// let x = 12; /// ``` -- 2.25.4