File tree 3 files changed +5
-5
lines changed
version-verbose-commit-hash
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ enum Binary {
25
25
}
26
26
27
27
fn check_broken_pipe_handled_gracefully ( bin : Binary , mut cmd : Command ) {
28
- let ( reader, writer) = std:: io :: pipe ( ) . unwrap ( ) ;
28
+ let ( reader, writer) = std:: pipe :: pipe ( ) . unwrap ( ) ;
29
29
drop ( reader) ; // close read-end
30
30
cmd. stdout ( writer) . stderr ( Stdio :: piped ( ) ) ;
31
31
Original file line number Diff line number Diff line change 3
3
// ensures the output of rustdoc's help menu is as expected.
4
4
// See https://github.com/rust-lang/rust/issues/88756
5
5
6
- use run_make_support:: { bare_rustdoc , diff } ;
6
+ use run_make_support:: { diff , rustdoc } ;
7
7
8
8
fn main ( ) {
9
- let out = bare_rustdoc ( ) . run ( ) . stdout_utf8 ( ) ;
9
+ let out = rustdoc ( ) . run ( ) . stdout_utf8 ( ) ;
10
10
diff ( )
11
11
. expected_file ( "output-default.stdout" )
12
12
. actual_text ( "actual" , out)
Original file line number Diff line number Diff line change 5
5
6
6
//@ needs-git-hash
7
7
8
- use run_make_support:: { bare_rustc, bare_rustdoc , regex } ;
8
+ use run_make_support:: { bare_rustc, regex , rustdoc } ;
9
9
10
10
fn main ( ) {
11
11
let out_rustc =
12
12
bare_rustc ( ) . arg ( "--version" ) . arg ( "--verbose" ) . run ( ) . stdout_utf8 ( ) . to_lowercase ( ) ;
13
13
let out_rustdoc =
14
- bare_rustdoc ( ) . arg ( "--version" ) . arg ( "--verbose" ) . run ( ) . stdout_utf8 ( ) . to_lowercase ( ) ;
14
+ rustdoc ( ) . arg ( "--version" ) . arg ( "--verbose" ) . run ( ) . stdout_utf8 ( ) . to_lowercase ( ) ;
15
15
let re =
16
16
regex:: Regex :: new ( r#"commit-hash: [0-9a-f]{40}\ncommit-date: [0-9]{4}-[0-9]{2}-[0-9]{2}"# )
17
17
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments