diff options
| author | ridwanabdillahi <91507758+ridwanabdillahi@users.noreply.github.com> | 2022-08-12 11:34:31 -0700 |
|---|---|---|
| committer | ridwanabdillahi <91507758+ridwanabdillahi@users.noreply.github.com> | 2022-08-12 11:34:31 -0700 |
| commit | 804579ca7716bbe8125481bffde555e5680b8824 (patch) | |
| tree | f4702122f397ec5a79128da27abb34b05926f2be /compiler/rustc_codegen_llvm/src/back/write.rs | |
| parent | 100882296e065526cfd055380e14334738da4158 (diff) | |
| download | rust-804579ca7716bbe8125481bffde555e5680b8824.tar.gz rust-804579ca7716bbe8125481bffde555e5680b8824.zip | |
Respond to RFC comments.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index 879baaa8556..0913715b3c0 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -425,7 +425,7 @@ fn get_pgo_sample_use_path(config: &ModuleConfig) -> Option<CString> { fn get_instr_profile_output_path(config: &ModuleConfig) -> Option<CString> { if config.instrument_coverage { - Some(CString::new(format!("{}", PathBuf::from("default_%m_%p.profraw").display())).unwrap()) + Some(CString::new("default_%m_%p.profraw").unwrap()) } else { None } |
