-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
Right now we can ignore a test like
#[test]
#[ignore]
fn test() { /* do something */ }
But to ignore it only on windows you've got to do
#[test]
#[cfg(target_os = "win32")]
#[ignore]
fn test() { /* do nothing */ }
#[test]
#[cfg(target_os = "macos")]
#[cfg(target_os = "linux")]
fn test() { /* do something */ }
We should just be able to do this
#[test]
#[ignore(target_os = "win32")]
fn test() { /* do something */ }
Where the thing insider ignore()
is just matched against all configuration items in the compilation environment
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.