summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-28 09:24:28 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-11 16:04:24 -0700
commitcac7a2053aba7be214d5e58e13867089638a8f50 (patch)
tree8c0af42bd2ab5237a19c04e9777e433805d600df /src/libstd/path
parentf9260d41d6e37653bf71b08a041be0310098716a (diff)
downloadrust-cac7a2053aba7be214d5e58e13867089638a8f50.tar.gz
rust-cac7a2053aba7be214d5e58e13867089638a8f50.zip
std: Remove i18n/l10n from format!
* The select/plural methods from format strings are removed
* The # character no longer needs to be escaped
* The \-based escapes have been removed
* '{{' is now an escape for '{'
* '}}' is now an escape for '}'

Closes #14810
[breaking-change]
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/windows.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs
index 011dfa6eeac..5a1d60192fc 100644
--- a/src/libstd/path/windows.rs
+++ b/src/libstd/path/windows.rs
@@ -899,10 +899,16 @@ pub fn make_non_verbatim(path: &Path) -> Option<Path> {
             // \\?\D:\
             Path::new(repr.slice_from(4))
         }
+        #[cfg(stage0)]
         Some(VerbatimUNCPrefix(_,_)) => {
             // \\?\UNC\server\share
             Path::new(format!(r"\\{}", repr.slice_from(7)))
         }
+        #[cfg(not(stage0))]
+        Some(VerbatimUNCPrefix(_,_)) => {
+            // \\?\UNC\server\share
+            Path::new(format!(r"\{}", repr.slice_from(7)))
+        }
     };
     if new_path.prefix.is_none() {
         // \\?\UNC\server is a VerbatimUNCPrefix