about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-13 17:02:38 +0000
committerbors <bors@rust-lang.org>2023-05-13 17:02:38 +0000
commitf38264fa567144adba2d846347d66e00b9d08f35 (patch)
tree12a14445ebd2bf83ca7eebd229a2d025e427780b
parentdb8f39ce198d82f21914105e33bab50ce7b0e8f1 (diff)
parent9fff960636afa0d3edc01891265341c6e4c0cd14 (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.rs2
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,
                 };