File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/tools/run-make-support/src
tests/run-make/llvm-ident Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,12 @@ impl Command {
7575 /// Generic command arguments provider. Prefer specific helper methods if possible.
7676 /// Note that for some executables, arguments might be platform specific. For C/C++
7777 /// 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
7979 where
8080 S : AsRef < ffi:: OsStr > ,
81+ V : AsRef < [ S ] > ,
8182 {
82- self . cmd . args ( args) ;
83+ self . cmd . args ( args. as_ref ( ) ) ;
8384 self
8485 }
8586
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fn main() {
2828 files. push ( path. to_path_buf ( ) ) ;
2929 }
3030 } ) ;
31- cmd ( llvm_bin_dir ( ) . join ( "llvm-dis" ) ) . args ( & files) . run ( ) ;
31+ cmd ( llvm_bin_dir ( ) . join ( "llvm-dis" ) ) . args ( files) . run ( ) ;
3232
3333 // Check LLVM IR files (including temporary outputs) have `!llvm.ident`
3434 // named metadata, reusing the related codegen test.
You can’t perform that action at this time.
0 commit comments