diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-15 10:56:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-15 10:56:58 +0100 |
| commit | 9ca0bd518ac5b30eea0319c92566eaf77f397708 (patch) | |
| tree | 5f7e8958b9da0f98907c85af2976e80350ec7e6a /compiler/rustc_interface/src | |
| parent | df89fd2063aaa060c72c81254db0b930ff379e9a (diff) | |
| parent | 97e844a032c47d4b3e70d2043f809767e437ac24 (diff) | |
Rollup merge of #91880 - matthiaskrgr:clippy_perf_dec, r=jyn514
fix clippy::single_char_pattern perf findings
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index da76f221269..34865900495 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -584,7 +584,7 @@ fn output_conflicts_with_dir(output_paths: &[PathBuf]) -> Option<PathBuf> { fn escape_dep_filename(filename: &str) -> String { // Apparently clang and gcc *only* escape spaces: // https://llvm.org/klaus/clang/commit/9d50634cfc268ecc9a7250226dd5ca0e945240d4 - filename.replace(" ", "\\ ") + filename.replace(' ', "\\ ") } // Makefile comments only need escaping newlines and `\`. |
