File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/cargo-test-macro/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,27 +21,27 @@ pub fn cargo_test(attr: TokenStream, item: TokenStream) -> TokenStream {
21
21
let mut ignore = false ;
22
22
let mut requires_reason = false ;
23
23
let mut found_reason = false ;
24
- let is_not_nightly = || !version ( ) . 1 ;
24
+ let is_not_nightly = !version ( ) . 1 ;
25
25
for rule in split_rules ( attr) {
26
26
match rule. as_str ( ) {
27
27
"build_std_real" => {
28
28
// Only run the "real" build-std tests on nightly and with an
29
29
// explicit opt-in (these generally only work on linux, and
30
30
// have some extra requirements, and are slow, and can pollute
31
31
// the environment since it downloads dependencies).
32
- ignore |= is_not_nightly ( ) ;
32
+ ignore |= is_not_nightly;
33
33
ignore |= option_env ! ( "CARGO_RUN_BUILD_STD_TESTS" ) . is_none ( ) ;
34
34
}
35
35
"build_std_mock" => {
36
36
// Only run the "mock" build-std tests on nightly and disable
37
37
// for windows-gnu which is missing object files (see
38
38
// https://github.com/rust-lang/wg-cargo-std-aware/issues/46).
39
- ignore |= is_not_nightly ( ) ;
39
+ ignore |= is_not_nightly;
40
40
ignore |= cfg ! ( all( target_os = "windows" , target_env = "gnu" ) ) ;
41
41
}
42
42
"nightly" => {
43
43
requires_reason = true ;
44
- ignore |= is_not_nightly ( ) ;
44
+ ignore |= is_not_nightly;
45
45
}
46
46
s if s. starts_with ( "requires_" ) => {
47
47
let command = & s[ 9 ..] ;
You can’t perform that action at this time.
0 commit comments