Skip to content

Commit ed1418e

Browse files
committed
Partially revert "Temporarily fix rust-lang/rust#89658"
This reverts commit da9b7b2. rust-lang/rust#89665
1 parent 3b28d3c commit ed1418e

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/windows.rs

-16
Original file line numberDiff line numberDiff line change
@@ -143,27 +143,11 @@ fn get_prefix(base: &BasePath) -> PrefixComponent<'_> {
143143
}
144144

145145
fn push_separator(base: &mut BasePathBuf) {
146-
// https://github.com/rust-lang/rust/issues/89658
147-
/*
148146
base.replace_with(|mut base| {
149147
// Add a separator if necessary.
150148
base.push("");
151149
base
152150
});
153-
*/
154-
155-
const SEPARATOR: &str = "\\";
156-
157-
if let Some(Component::Prefix(prefix)) = base.components().next_back() {
158-
if matches!(prefix.kind(), Prefix::Disk(_) | Prefix::VerbatimDisk(_)) {
159-
return;
160-
}
161-
}
162-
// This inefficient implementation must be used until the above issue is
163-
// resolved.
164-
if !base.0.to_string_lossy().ends_with(SEPARATOR) {
165-
base.0.push(SEPARATOR);
166-
}
167151
}
168152

169153
pub(super) fn push(base: &mut BasePathBuf, initial_path: &Path) {

0 commit comments

Comments
 (0)