File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,19 @@ use cargo_test_support::{
14
14
15
15
use super :: death;
16
16
17
+ #[ cargo_test]
18
+ fn non_nightly_fails ( ) {
19
+ let p = project ( ) . file ( "src/main.rs" , "fn main() {}" ) . build ( ) ;
20
+ p. cargo ( "build -Zchecksum-freshness" )
21
+ . with_stderr_data ( str![ [ r#"
22
+ [ERROR] the `-Z` flag is only accepted on the nightly channel of Cargo, but this is the `stable` channel
23
+ See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
24
+
25
+ "# ] ] )
26
+ . with_status ( 101 )
27
+ . run ( ) ;
28
+ }
29
+
17
30
#[ cargo_test( nightly, reason = "requires -Zchecksum-hash-algorithm" ) ]
18
31
fn checksum_actually_uses_checksum ( ) {
19
32
let p = project ( )
@@ -1584,7 +1597,8 @@ fn bust_patched_dep() {
1584
1597
[RUNNING] `rustc --crate-name foo [..]
1585
1598
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
1586
1599
1587
- "# ] ] ) . run ( ) ;
1600
+ "# ] ] )
1601
+ . run ( ) ;
1588
1602
1589
1603
p. cargo ( "build -Zchecksum-freshness -v" )
1590
1604
. masquerade_as_nightly_cargo ( & [ "checksum-freshness" ] )
@@ -1703,7 +1717,8 @@ fn rebuild_on_mid_build_file_modification() {
1703
1717
[RUNNING] `rustc --crate-name root [..]
1704
1718
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
1705
1719
1706
- "# ] ] ) . run ( ) ;
1720
+ "# ] ] )
1721
+ . run ( ) ;
1707
1722
1708
1723
t. join ( ) . ok ( ) . unwrap ( ) ;
1709
1724
}
You can’t perform that action at this time.
0 commit comments