diff options
| author | bors <bors@rust-lang.org> | 2023-05-13 17:02:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-13 17:02:38 +0000 |
| commit | f38264fa567144adba2d846347d66e00b9d08f35 (patch) | |
| tree | 12a14445ebd2bf83ca7eebd229a2d025e427780b | |
| parent | db8f39ce198d82f21914105e33bab50ce7b0e8f1 (diff) | |
| parent | 9fff960636afa0d3edc01891265341c6e4c0cd14 (diff) | |
Auto merge of #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 #14689).
| -rw-r--r-- | crates/rust-analyzer/src/bin/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs index b255a440538..992e174a421 100644 --- a/crates/rust-analyzer/src/bin/main.rs +++ b/crates/rust-analyzer/src/bin/main.rs @@ -246,7 +246,7 @@ fn patch_path_prefix(path: PathBuf) -> PathBuf { format!("{}:", d.to_ascii_uppercase() as char) } Prefix::VerbatimDisk(d) => { - format!(r"\\?\{}:\", d.to_ascii_uppercase() as char) + format!(r"\\?\{}:", d.to_ascii_uppercase() as char) } _ => return path, }; |
