We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc128c commit 65b7908Copy full SHA for 65b7908
src/librustc_trans/back/linker.rs
@@ -484,14 +484,10 @@ impl<'a> Linker for MsvcLinker<'a> {
484
match entry {
485
Ok(entry) => {
486
let path = entry.path();
487
- if let Some(ext) = path.extension() {
488
- if ext == OsStr::new("natvis") {
489
- if let Some(natvis_path_str) = path.to_str() {
490
- self.cmd.arg(&format!("/NATVIS:{}",natvis_path_str));
491
- } else {
492
- self.sess.warn(&format!("natvis path not unicode: {:?}", path));
493
- }
494
+ if path.extension() == Some("natvis".as_ref()) {
+ let mut arg = OsString::from("/NATVIS:");
+ arg.push(path);
+ self.cmd.arg(arg);
495
}
496
},
497
Err(err) => {
0 commit comments