@@ -15,7 +15,7 @@ use cargo_test_support::{
15
15
16
16
use super :: death;
17
17
18
- #[ cargo_test]
18
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
19
19
fn modifying_and_moving ( ) {
20
20
let p = project ( )
21
21
. file ( "src/main.rs" , "mod a; fn main() {}" )
@@ -63,7 +63,7 @@ error[E0583]: file not found for module `a`
63
63
. run ( ) ;
64
64
}
65
65
66
- #[ cargo_test]
66
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
67
67
fn rebuild_sub_package_then_while_package ( ) {
68
68
let p = project ( )
69
69
. file (
@@ -145,7 +145,7 @@ fn rebuild_sub_package_then_while_package() {
145
145
. run ( ) ;
146
146
}
147
147
148
- #[ cargo_test]
148
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
149
149
fn changing_lib_features_caches_targets ( ) {
150
150
let p = project ( )
151
151
. file (
@@ -204,7 +204,7 @@ fn changing_lib_features_caches_targets() {
204
204
. run ( ) ;
205
205
}
206
206
207
- #[ cargo_test]
207
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
208
208
fn changing_profiles_caches_targets ( ) {
209
209
let p = project ( )
210
210
. file (
@@ -259,7 +259,7 @@ fn changing_profiles_caches_targets() {
259
259
. run ( ) ;
260
260
}
261
261
262
- #[ cargo_test]
262
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
263
263
fn changing_bin_paths_common_target_features_caches_targets ( ) {
264
264
// Make sure dep_cache crate is built once per feature
265
265
let p = project ( )
@@ -444,7 +444,7 @@ ftest on
444
444
. run ( ) ;
445
445
}
446
446
447
- #[ cargo_test]
447
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
448
448
fn changing_bin_features_caches_targets ( ) {
449
449
let p = project ( )
450
450
. file (
@@ -552,7 +552,7 @@ feature on
552
552
. run ( ) ;
553
553
}
554
554
555
- #[ cargo_test]
555
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
556
556
fn rebuild_tests_if_lib_changes ( ) {
557
557
let p = project ( )
558
558
. file ( "src/lib.rs" , "pub fn foo() {}" )
@@ -588,7 +588,7 @@ error[E0425]: cannot find function `foo` in crate `foo`
588
588
. run ( ) ;
589
589
}
590
590
591
- #[ cargo_test]
591
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
592
592
fn no_rebuild_transitive_target_deps ( ) {
593
593
let p = project ( )
594
594
. file (
@@ -654,7 +654,7 @@ fn no_rebuild_transitive_target_deps() {
654
654
. run ( ) ;
655
655
}
656
656
657
- #[ cargo_test]
657
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
658
658
fn rerun_if_changed_in_dep ( ) {
659
659
let p = project ( )
660
660
. file (
@@ -702,7 +702,7 @@ fn rerun_if_changed_in_dep() {
702
702
. run ( ) ;
703
703
}
704
704
705
- #[ cargo_test]
705
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
706
706
fn same_build_dir_cached_packages ( ) {
707
707
let p = project ( )
708
708
. no_manifest ( )
@@ -792,7 +792,7 @@ fn same_build_dir_cached_packages() {
792
792
. run ( ) ;
793
793
}
794
794
795
- #[ cargo_test]
795
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
796
796
fn no_rebuild_if_build_artifacts_move_backwards_in_time ( ) {
797
797
let p = project ( )
798
798
. file (
@@ -826,7 +826,7 @@ fn no_rebuild_if_build_artifacts_move_backwards_in_time() {
826
826
. run ( ) ;
827
827
}
828
828
829
- #[ cargo_test]
829
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
830
830
fn rebuild_if_environment_changes ( ) {
831
831
let p = project ( )
832
832
. file (
@@ -891,7 +891,7 @@ new desc
891
891
. run ( ) ;
892
892
}
893
893
894
- #[ cargo_test]
894
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
895
895
fn no_rebuild_when_rename_dir ( ) {
896
896
let p = project ( )
897
897
. file (
@@ -937,7 +937,7 @@ fn no_rebuild_when_rename_dir() {
937
937
. run ( ) ;
938
938
}
939
939
940
- #[ cargo_test]
940
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
941
941
fn unused_optional_dep ( ) {
942
942
Package :: new ( "registry1" , "0.1.0" ) . publish ( ) ;
943
943
Package :: new ( "registry2" , "0.1.0" ) . publish ( ) ;
@@ -999,7 +999,7 @@ fn unused_optional_dep() {
999
999
. run ( ) ;
1000
1000
}
1001
1001
1002
- #[ cargo_test]
1002
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1003
1003
fn path_dev_dep_registry_updates ( ) {
1004
1004
Package :: new ( "registry1" , "0.1.0" ) . publish ( ) ;
1005
1005
Package :: new ( "registry2" , "0.1.0" ) . publish ( ) ;
@@ -1061,7 +1061,7 @@ fn path_dev_dep_registry_updates() {
1061
1061
. run ( ) ;
1062
1062
}
1063
1063
1064
- #[ cargo_test]
1064
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1065
1065
fn change_panic_mode ( ) {
1066
1066
let p = project ( )
1067
1067
. file (
@@ -1099,7 +1099,7 @@ fn change_panic_mode() {
1099
1099
p. cargo ( "build -p baz" ) . run ( ) ;
1100
1100
}
1101
1101
1102
- #[ cargo_test]
1102
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1103
1103
fn dont_rebuild_based_on_plugins ( ) {
1104
1104
let p = project ( )
1105
1105
. file (
@@ -1167,7 +1167,7 @@ fn dont_rebuild_based_on_plugins() {
1167
1167
. run ( ) ;
1168
1168
}
1169
1169
1170
- #[ cargo_test]
1170
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1171
1171
fn reuse_workspace_lib ( ) {
1172
1172
let p = project ( )
1173
1173
. file (
@@ -1201,7 +1201,7 @@ fn reuse_workspace_lib() {
1201
1201
. run ( ) ;
1202
1202
}
1203
1203
1204
- #[ cargo_test]
1204
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1205
1205
fn reuse_shared_build_dep ( ) {
1206
1206
let p = project ( )
1207
1207
. file (
@@ -1250,7 +1250,7 @@ fn reuse_shared_build_dep() {
1250
1250
. run ( ) ;
1251
1251
}
1252
1252
1253
- #[ cargo_test]
1253
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1254
1254
fn changing_rustflags_is_cached ( ) {
1255
1255
let p = project ( ) . file ( "src/lib.rs" , "" ) . build ( ) ;
1256
1256
@@ -1294,7 +1294,7 @@ fn changing_rustflags_is_cached() {
1294
1294
. run ( ) ;
1295
1295
}
1296
1296
1297
- #[ cargo_test]
1297
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1298
1298
fn reuse_panic_build_dep_test ( ) {
1299
1299
let p = project ( )
1300
1300
. file (
@@ -1338,7 +1338,7 @@ fn reuse_panic_build_dep_test() {
1338
1338
. run ( ) ;
1339
1339
}
1340
1340
1341
- #[ cargo_test]
1341
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1342
1342
fn reuse_panic_pm ( ) {
1343
1343
// foo(panic) -> bar(panic)
1344
1344
// somepm(nopanic) -> bar(nopanic)
@@ -1401,7 +1401,7 @@ fn reuse_panic_pm() {
1401
1401
. run ( ) ;
1402
1402
}
1403
1403
1404
- #[ cargo_test]
1404
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1405
1405
fn bust_patched_dep ( ) {
1406
1406
Package :: new ( "registry1" , "0.1.0" ) . publish ( ) ;
1407
1407
Package :: new ( "registry2" , "0.1.0" )
@@ -1464,7 +1464,7 @@ fn bust_patched_dep() {
1464
1464
. run ( ) ;
1465
1465
}
1466
1466
1467
- #[ cargo_test]
1467
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1468
1468
fn rebuild_on_mid_build_file_modification ( ) {
1469
1469
let server = TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ;
1470
1470
let addr = server. local_addr ( ) . unwrap ( ) ;
@@ -1572,7 +1572,7 @@ fn rebuild_on_mid_build_file_modification() {
1572
1572
t. join ( ) . ok ( ) . unwrap ( ) ;
1573
1573
}
1574
1574
1575
- #[ cargo_test]
1575
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1576
1576
fn dirty_both_lib_and_test ( ) {
1577
1577
// This tests that all artifacts that depend on the results of a build
1578
1578
// script will get rebuilt when the build script reruns, even for separate
@@ -1664,7 +1664,7 @@ fn dirty_both_lib_and_test() {
1664
1664
p. cargo ( "test --lib" ) . run ( ) ;
1665
1665
}
1666
1666
1667
- #[ cargo_test]
1667
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1668
1668
fn script_fails_stay_dirty ( ) {
1669
1669
// Check if a script is aborted (such as hitting Ctrl-C) that it will re-run.
1670
1670
// Steps:
@@ -1703,7 +1703,7 @@ fn script_fails_stay_dirty() {
1703
1703
. run ( ) ;
1704
1704
}
1705
1705
1706
- #[ cargo_test]
1706
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1707
1707
fn metadata_change_invalidates ( ) {
1708
1708
let p = project ( )
1709
1709
. file (
@@ -1750,7 +1750,7 @@ fn metadata_change_invalidates() {
1750
1750
assert_eq ! ( p. glob( "target/debug/deps/libfoo-*.rlib" ) . count( ) , 1 ) ;
1751
1751
}
1752
1752
1753
- #[ cargo_test]
1753
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1754
1754
fn edition_change_invalidates ( ) {
1755
1755
const MANIFEST : & str = r#"
1756
1756
[package]
@@ -1797,7 +1797,7 @@ fn edition_change_invalidates() {
1797
1797
assert_eq ! ( p. glob( "target/debug/deps/libfoo-*.rlib" ) . count( ) , 1 ) ;
1798
1798
}
1799
1799
1800
- #[ cargo_test]
1800
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1801
1801
fn rename_with_path_deps ( ) {
1802
1802
let p = project ( )
1803
1803
. file (
@@ -1860,7 +1860,7 @@ fn rename_with_path_deps() {
1860
1860
. run ( ) ;
1861
1861
}
1862
1862
1863
- #[ cargo_test]
1863
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1864
1864
fn move_target_directory_with_path_deps ( ) {
1865
1865
let p = project ( )
1866
1866
. file (
@@ -1932,7 +1932,7 @@ fn move_target_directory_with_path_deps() {
1932
1932
. run ( ) ;
1933
1933
}
1934
1934
1935
- #[ cargo_test]
1935
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
1936
1936
fn rerun_if_changes ( ) {
1937
1937
let p = project ( )
1938
1938
. file (
@@ -2017,7 +2017,7 @@ fn rerun_if_changes() {
2017
2017
. run ( ) ;
2018
2018
}
2019
2019
2020
- #[ cargo_test]
2020
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
2021
2021
fn channel_shares_filenames ( ) {
2022
2022
// Test that different "nightly" releases use the same output filename.
2023
2023
@@ -2191,7 +2191,7 @@ LLVM version: 9.0
2191
2191
assert_eq ! ( check( "nightly1" , true ) , nightly1_name) ;
2192
2192
}
2193
2193
2194
- #[ cargo_test]
2194
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
2195
2195
fn linking_interrupted ( ) {
2196
2196
// Interrupt during the linking phase shouldn't leave test executable as "fresh".
2197
2197
@@ -2314,7 +2314,7 @@ fn linking_interrupted() {
2314
2314
. run ( ) ;
2315
2315
}
2316
2316
2317
- #[ cargo_test]
2317
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
2318
2318
#[ cfg_attr(
2319
2319
not( all( target_arch = "x86_64" , target_os = "windows" , target_env = "msvc" ) ) ,
2320
2320
ignore
@@ -2355,7 +2355,7 @@ fn lld_is_fresh() {
2355
2355
. run ( ) ;
2356
2356
}
2357
2357
2358
- #[ cargo_test]
2358
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
2359
2359
fn env_in_code_causes_rebuild ( ) {
2360
2360
let p = project ( )
2361
2361
. file (
@@ -2458,7 +2458,7 @@ fn env_in_code_causes_rebuild() {
2458
2458
. run ( ) ;
2459
2459
}
2460
2460
2461
- #[ cargo_test]
2461
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
2462
2462
fn env_build_script_no_rebuild ( ) {
2463
2463
let p = project ( )
2464
2464
. file (
@@ -2497,7 +2497,7 @@ fn env_build_script_no_rebuild() {
2497
2497
. run ( ) ;
2498
2498
}
2499
2499
2500
- #[ cargo_test]
2500
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
2501
2501
fn changing_linker ( ) {
2502
2502
// Changing linker should rebuild.
2503
2503
let p = project ( ) . file ( "src/main.rs" , "fn main() {}" ) . build ( ) ;
@@ -2516,7 +2516,7 @@ fn changing_linker() {
2516
2516
. run ( ) ;
2517
2517
}
2518
2518
2519
- #[ cargo_test]
2519
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
2520
2520
fn verify_source_before_recompile ( ) {
2521
2521
Package :: new ( "bar" , "0.1.0" )
2522
2522
. file ( "src/lib.rs" , "" )
@@ -2592,7 +2592,7 @@ directory sources are not intended to be edited, if modifications are required t
2592
2592
. run ( ) ;
2593
2593
}
2594
2594
2595
- #[ cargo_test]
2595
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
2596
2596
fn skip_mtime_check_in_selected_cargo_home_subdirs ( ) {
2597
2597
let p = project ( )
2598
2598
. at ( "cargo_home/registry/foo" )
@@ -2621,7 +2621,7 @@ fn skip_mtime_check_in_selected_cargo_home_subdirs() {
2621
2621
. run ( ) ;
2622
2622
}
2623
2623
2624
- #[ cargo_test]
2624
+ #[ cargo_test( nightly , reason = "requires -Zchecksum-hash-algorithm" ) ]
2625
2625
fn use_mtime_cache_in_cargo_home ( ) {
2626
2626
let p = project ( )
2627
2627
. at ( "cargo_home/foo" )
0 commit comments