@@ -18,45 +18,31 @@ fn test_compile_errors() {
18
18
t. compile_fail ( "tests/ui/invalid_pymethod_names.rs" ) ;
19
19
t. compile_fail ( "tests/ui/invalid_pymodule_args.rs" ) ;
20
20
t. compile_fail ( "tests/ui/reject_generics.rs" ) ;
21
-
22
- tests_not_msrv ( & t) ;
23
- tests_nightly ( & t) ;
24
-
25
- #[ rustversion:: since( 1.49 ) ]
26
- fn tests_not_msrv ( t : & trybuild:: TestCases ) {
27
- t. compile_fail ( "tests/ui/deprecations.rs" ) ;
28
- t. compile_fail ( "tests/ui/invalid_closure.rs" ) ;
29
- t. compile_fail ( "tests/ui/pyclass_send.rs" ) ;
30
- t. compile_fail ( "tests/ui/invalid_argument_attributes.rs" ) ;
31
- t. compile_fail ( "tests/ui/invalid_frompy_derive.rs" ) ;
32
- t. compile_fail ( "tests/ui/static_ref.rs" ) ;
33
- t. compile_fail ( "tests/ui/wrong_aspyref_lifetimes.rs" ) ;
34
- t. compile_fail ( "tests/ui/invalid_pyfunctions.rs" ) ;
35
- t. compile_fail ( "tests/ui/invalid_pymethods.rs" ) ;
36
- #[ cfg( Py_LIMITED_API ) ]
37
- t. compile_fail ( "tests/ui/abi3_nativetype_inheritance.rs" ) ;
38
- t. compile_fail ( "tests/ui/invalid_intern_arg.rs" ) ;
39
- t. compile_fail ( "tests/ui/invalid_frozen_pyclass_borrow.rs" ) ;
40
- t. compile_fail ( "tests/ui/invalid_pymethod_receiver.rs" ) ;
41
- t. compile_fail ( "tests/ui/missing_intopy.rs" ) ;
42
- t. compile_fail ( "tests/ui/invalid_result_conversion.rs" ) ;
43
- t. compile_fail ( "tests/ui/not_send.rs" ) ;
44
- t. compile_fail ( "tests/ui/not_send2.rs" ) ;
45
- #[ cfg( not( feature = "nightly" ) ) ]
46
- t. compile_fail ( "tests/ui/not_send3.rs" ) ;
47
- t. compile_fail ( "tests/ui/get_set_all.rs" ) ;
48
- }
49
-
50
- #[ rustversion:: before( 1.49 ) ]
51
- fn tests_not_msrv ( _t : & trybuild:: TestCases ) { }
52
-
53
- #[ cfg( feature = "nightly" ) ]
54
- fn tests_nightly ( t : & trybuild:: TestCases ) {
55
- t. compile_fail ( "tests/ui/not_send_auto_trait.rs" ) ;
56
- t. compile_fail ( "tests/ui/not_send_auto_trait2.rs" ) ;
57
- t. compile_fail ( "tests/ui/send_wrapper.rs" ) ;
58
- }
59
-
21
+ t. compile_fail ( "tests/ui/deprecations.rs" ) ;
22
+ t. compile_fail ( "tests/ui/invalid_closure.rs" ) ;
23
+ t. compile_fail ( "tests/ui/pyclass_send.rs" ) ;
24
+ t. compile_fail ( "tests/ui/invalid_argument_attributes.rs" ) ;
25
+ t. compile_fail ( "tests/ui/invalid_frompy_derive.rs" ) ;
26
+ t. compile_fail ( "tests/ui/static_ref.rs" ) ;
27
+ t. compile_fail ( "tests/ui/wrong_aspyref_lifetimes.rs" ) ;
28
+ t. compile_fail ( "tests/ui/invalid_pyfunctions.rs" ) ;
29
+ t. compile_fail ( "tests/ui/invalid_pymethods.rs" ) ;
30
+ #[ cfg( Py_LIMITED_API ) ]
31
+ t. compile_fail ( "tests/ui/abi3_nativetype_inheritance.rs" ) ;
32
+ t. compile_fail ( "tests/ui/invalid_intern_arg.rs" ) ;
33
+ t. compile_fail ( "tests/ui/invalid_frozen_pyclass_borrow.rs" ) ;
34
+ t. compile_fail ( "tests/ui/invalid_pymethod_receiver.rs" ) ;
35
+ t. compile_fail ( "tests/ui/missing_intopy.rs" ) ;
36
+ t. compile_fail ( "tests/ui/invalid_result_conversion.rs" ) ;
37
+ t. compile_fail ( "tests/ui/not_send.rs" ) ;
38
+ t. compile_fail ( "tests/ui/not_send2.rs" ) ;
39
+ t. compile_fail ( "tests/ui/get_set_all.rs" ) ;
60
40
#[ cfg( not( feature = "nightly" ) ) ]
61
- fn tests_nightly ( _t : & trybuild:: TestCases ) { }
41
+ t. compile_fail ( "tests/ui/not_send3.rs" ) ;
42
+ #[ cfg( feature = "nightly" ) ]
43
+ t. compile_fail ( "tests/ui/not_send_auto_trait.rs" ) ;
44
+ #[ cfg( feature = "nightly" ) ]
45
+ t. compile_fail ( "tests/ui/not_send_auto_trait2.rs" ) ;
46
+ #[ cfg( feature = "nightly" ) ]
47
+ t. compile_fail ( "tests/ui/send_wrapper.rs" ) ;
62
48
}
0 commit comments