@@ -20,19 +20,39 @@ fn ui_tests() {
20
20
21
21
// ToVariant
22
22
t. compile_fail ( "tests/ui/to_variant_fail_01.rs" ) ;
23
- t. compile_fail ( "tests/ui/to_variant_fail_02.rs" ) ;
24
- t. compile_fail ( "tests/ui/to_variant_fail_03.rs" ) ;
23
+ to_variant_ui_path ( & t) ;
25
24
t. compile_fail ( "tests/ui/to_variant_fail_04.rs" ) ;
26
25
t. compile_fail ( "tests/ui/to_variant_fail_05.rs" ) ;
27
26
t. compile_fail ( "tests/ui/to_variant_fail_06.rs" ) ;
28
27
t. compile_fail ( "tests/ui/to_variant_fail_07.rs" ) ;
29
28
30
29
// FromVariant
31
30
t. compile_fail ( "tests/ui/from_variant_fail_01.rs" ) ;
32
- t. compile_fail ( "tests/ui/from_variant_fail_02.rs" ) ;
33
- t. compile_fail ( "tests/ui/from_variant_fail_03.rs" ) ;
31
+ from_variant_ui_path ( & t) ;
34
32
t. compile_fail ( "tests/ui/from_variant_fail_04.rs" ) ;
35
33
t. compile_fail ( "tests/ui/from_variant_fail_05.rs" ) ;
36
34
t. compile_fail ( "tests/ui/from_variant_fail_06.rs" ) ;
37
35
t. compile_fail ( "tests/ui/from_variant_fail_07.rs" ) ;
38
36
}
37
+
38
+ // FIXME(rust/issues/54725): Full path spans are only available on nightly as of now
39
+ #[ rustversion:: not( nightly) ]
40
+ fn to_variant_ui_path ( _t : & trybuild:: TestCases ) { }
41
+
42
+ // FIXME(rust/issues/54725): Full path spans are only available on nightly as of now
43
+ #[ rustversion:: nightly]
44
+ fn to_variant_ui_path ( t : & trybuild:: TestCases ) {
45
+ t. compile_fail ( "tests/ui/to_variant_fail_02.rs" ) ;
46
+ t. compile_fail ( "tests/ui/to_variant_fail_03.rs" ) ;
47
+ }
48
+
49
+ // FIXME(rust/issues/54725): Full path spans are only available on nightly as of now
50
+ #[ rustversion:: not( nightly) ]
51
+ fn from_variant_ui_path ( _t : & trybuild:: TestCases ) { }
52
+
53
+ // FIXME(rust/issues/54725): Full path spans are only available on nightly as of now
54
+ #[ rustversion:: nightly]
55
+ fn from_variant_ui_path ( t : & trybuild:: TestCases ) {
56
+ t. compile_fail ( "tests/ui/from_variant_fail_02.rs" ) ;
57
+ t. compile_fail ( "tests/ui/from_variant_fail_03.rs" ) ;
58
+ }
0 commit comments