From f2824ae379ac2edee1fd687b9e56f18c048086cd Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 1 Jun 2024 22:13:43 -0700 Subject: [PATCH] Fill in ignore reasons in all #[ignore] attributes --- tests/compiletest.rs | 4 ++-- tests/test_backtrace.rs | 5 ++++- tests/test_option.rs | 5 ++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index 7974a62..23a6a06 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -1,5 +1,5 @@ -#[rustversion::attr(not(nightly), ignore)] -#[cfg_attr(miri, ignore)] +#[rustversion::attr(not(nightly), ignore = "requires nightly")] +#[cfg_attr(miri, ignore = "incompatible with miri")] #[test] fn ui() { let t = trybuild::TestCases::new(); diff --git a/tests/test_backtrace.rs b/tests/test_backtrace.rs index 4710d45..8f11da3 100644 --- a/tests/test_backtrace.rs +++ b/tests/test_backtrace.rs @@ -270,5 +270,8 @@ pub mod enums { } #[test] -#[cfg_attr(not(thiserror_nightly_testing), ignore)] +#[cfg_attr( + not(thiserror_nightly_testing), + ignore = "requires `--cfg=thiserror_nightly_testing`" +)] fn test_backtrace() {} diff --git a/tests/test_option.rs b/tests/test_option.rs index 232e5a3..5464b08 100644 --- a/tests/test_option.rs +++ b/tests/test_option.rs @@ -101,5 +101,8 @@ pub mod enums { } #[test] -#[cfg_attr(not(thiserror_nightly_testing), ignore)] +#[cfg_attr( + not(thiserror_nightly_testing), + ignore = "requires `--cfg=thiserror_nightly_testing`" +)] fn test_option() {}