File tree 2 files changed +4
-3
lines changed
src/tools/run-make-support/src
tests/run-make/llvm-ident
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,12 @@ impl Command {
75
75
/// Generic command arguments provider. Prefer specific helper methods if possible.
76
76
/// Note that for some executables, arguments might be platform specific. For C/C++
77
77
/// compilers, arguments might be platform *and* compiler specific.
78
- pub fn args < S > ( & mut self , args : & [ S ] ) -> & mut Self
78
+ pub fn args < S , V > ( & mut self , args : V ) -> & mut Self
79
79
where
80
80
S : AsRef < ffi:: OsStr > ,
81
+ V : AsRef < [ S ] > ,
81
82
{
82
- self . cmd . args ( args) ;
83
+ self . cmd . args ( args. as_ref ( ) ) ;
83
84
self
84
85
}
85
86
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fn main() {
28
28
files. push ( path. to_path_buf ( ) ) ;
29
29
}
30
30
} ) ;
31
- cmd ( llvm_bin_dir ( ) . join ( "llvm-dis" ) ) . args ( & files) . run ( ) ;
31
+ cmd ( llvm_bin_dir ( ) . join ( "llvm-dis" ) ) . args ( files) . run ( ) ;
32
32
33
33
// Check LLVM IR files (including temporary outputs) have `!llvm.ident`
34
34
// named metadata, reusing the related codegen test.
You can’t perform that action at this time.
0 commit comments