File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,11 @@ fn main() {
1111 . unwrap ( )
1212 . as_secs ( ) ; // What's the use of this timestamp here?
1313 let your_command = format ! ( "rustc-env=TEST_FOO={}" , timestamp) ;
14-
1514 println ! ( "cargo:{}" , your_command) ;
16- // 告诉 Cargo 当 TEST_FOO 环境变量变化时重新运行构建脚本
17- println ! ( "cargo:rerun-if-env-changed=TEST_FOO" ) ;
1815
1916 // In tests8, we should enable "pass" feature to make the
2017 // testcase return early. Fill in the command to tell
2118 // Cargo about that.
22- let your_command = "Your command here, please checkout exercises/tests/build.rs " ;
23- println ! ( "cargo:{}" , your_command ) ;
19+ let your_command1 = "rustc-cfg=feature= \" pass \" " ;
20+ println ! ( "cargo:{}" , your_command1 ) ;
2421}
Original file line number Diff line number Diff line change 3434// Execute `rustlings hint tests7` or use the `hint` watch subcommand for a
3535// hint.
3636
37- // I AM NOT DONE
38-
3937use std:: time:: SystemTime ;
4038
4139fn main ( ) {
Original file line number Diff line number Diff line change 77// Execute `rustlings hint tests8` or use the `hint` watch subcommand for a
88// hint.
99
10- // I AM NOT DONE
11-
1210fn main ( ) { }
1311
1412#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments