From 60536d53c5621885d45679331b3b8f2905b4baae 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 3045fc1a476..58d87fbd36b 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 b6481d70bc8..3edbd483d13 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -2837,7 +2837,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust + /// ```rust,ignore (fails) /// fn foo() { } /// /// fn main() { @@ -2864,7 +2864,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust + /// ```rust,ignore (fails) /// enum Void {} /// extern { /// static EXTERN: Void; @@ -2892,7 +2892,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust,compile_fail + /// ```rust,compile_fail,ignore (fails) /// struct X; /// /// #[deprecated = "message"] @@ -3390,7 +3390,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust + /// ```rust,ignore (fails) /// /// docs for x /// let x = 12; /// ``` -- 2.25.4