Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c394217

Browse filesBrowse files
authored
Unrolled build for rust-lang#127359
Rollup merge of rust-lang#127359 - GuillaumeGomez:improve-run-make-llvm-ident-code, r=jieyouxu Improve run make llvm ident code I took the commits that are not blocking rust-lang#127237. r? `@Kobzol`
2 parents 2ad6630 + 415e202 commit c394217
Copy full SHA for c394217

File tree

Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed

‎src/tools/run-make-support/src/command.rs

Copy file name to clipboardExpand all lines: src/tools/run-make-support/src/command.rs
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

‎tests/run-make/llvm-ident/rmake.rs

Copy file name to clipboardExpand all lines: tests/run-make/llvm-ident/rmake.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.