Skip to content

Commit f38264f

Browse files
committed
Auto merge of rust-lang#14799 - mataha:fix/root-in-verbatim-prefix, r=Veykril
Remove root component from patched Windows UNC path prefix As it shouldn't be there to begin with (per discussion in rust-lang#14689).
2 parents db8f39c + 9fff960 commit f38264f

File tree

1 file changed

+1
-1
lines changed
  • crates/rust-analyzer/src/bin

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/bin/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ fn patch_path_prefix(path: PathBuf) -> PathBuf {
246246
format!("{}:", d.to_ascii_uppercase() as char)
247247
}
248248
Prefix::VerbatimDisk(d) => {
249-
format!(r"\\?\{}:\", d.to_ascii_uppercase() as char)
249+
format!(r"\\?\{}:", d.to_ascii_uppercase() as char)
250250
}
251251
_ => return path,
252252
};

0 commit comments

Comments
 (0)