@@ -20,19 +20,39 @@ fn ui_tests() {
2020
2121 // ToVariant
2222 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) ;
2524 t. compile_fail ( "tests/ui/to_variant_fail_04.rs" ) ;
2625 t. compile_fail ( "tests/ui/to_variant_fail_05.rs" ) ;
2726 t. compile_fail ( "tests/ui/to_variant_fail_06.rs" ) ;
2827 t. compile_fail ( "tests/ui/to_variant_fail_07.rs" ) ;
2928
3029 // FromVariant
3130 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) ;
3432 t. compile_fail ( "tests/ui/from_variant_fail_04.rs" ) ;
3533 t. compile_fail ( "tests/ui/from_variant_fail_05.rs" ) ;
3634 t. compile_fail ( "tests/ui/from_variant_fail_06.rs" ) ;
3735 t. compile_fail ( "tests/ui/from_variant_fail_07.rs" ) ;
3836}
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