diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ascii.rs | 2 | ||||
| -rw-r--r-- | src/libstd/io/fs.rs | 2 | ||||
| -rw-r--r-- | src/libstd/lib.rs | 2 | ||||
| -rw-r--r-- | src/libstd/os.rs | 4 | ||||
| -rw-r--r-- | src/libstd/path/posix.rs | 20 | ||||
| -rw-r--r-- | src/libstd/sys/windows/process.rs | 4 |
6 files changed, 16 insertions, 18 deletions
diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs index 23eb367dbd1..b5c8e271492 100644 --- a/src/libstd/ascii.rs +++ b/src/libstd/ascii.rs @@ -696,7 +696,7 @@ mod tests { assert!("".is_ascii()); assert!("a".is_ascii()); - assert!(!"\u2009".is_ascii()); + assert!(!"\u{2009}".is_ascii()); } diff --git a/src/libstd/io/fs.rs b/src/libstd/io/fs.rs index 5611c6526ad..da0834dc9ef 100644 --- a/src/libstd/io/fs.rs +++ b/src/libstd/io/fs.rs @@ -1215,7 +1215,7 @@ mod test { assert!(dirpath.is_dir()); let mut filepath = dirpath; - filepath.push("unicode-file-\uac00\u4e00\u30fc\u4f60\u597d.rs"); + filepath.push("unicode-file-\u{ac00}\u{4e00}\u{30fc}\u{4f60}\u{597d}.rs"); check!(File::create(&filepath)); // ignore return; touch only assert!(!filepath.is_dir()); assert!(filepath.exists()); diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index d4274d7e401..f6b73f037f2 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -106,7 +106,7 @@ #![allow(unknown_features)] #![feature(macro_rules, globs, linkage)] #![feature(default_type_params, phase, lang_items, unsafe_destructor)] -#![feature(import_shadowing, slicing_syntax, tuple_indexing)] +#![feature(import_shadowing, slicing_syntax)] // Don't link to std. We are std. #![no_std] diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 6c91010f4cb..138296cca70 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -1182,15 +1182,13 @@ pub fn page_size() -> uint { /// /// The memory map is released (unmapped) when the destructor is run, so don't /// let it leave scope by accident if you want it to stick around. +#[allow(missing_copy_implementations)] pub struct MemoryMap { data: *mut u8, len: uint, kind: MemoryMapKind, } -#[cfg(not(stage0))] -impl Copy for MemoryMap {} - /// Type of memory map pub enum MemoryMapKind { /// Virtual memory map. Usually used to change the permissions of a given diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index ba2c89bf1ce..470e1b4dbb7 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -542,10 +542,10 @@ mod tests { ) ) t!("foo", display, "foo"); - t!(b"foo\x80", display, "foo\uFFFD"); - t!(b"foo\xFFbar", display, "foo\uFFFDbar"); + t!(b"foo\x80", display, "foo\u{FFFD}"); + t!(b"foo\xFFbar", display, "foo\u{FFFD}bar"); t!(b"foo\xFF/bar", filename_display, "bar"); - t!(b"foo/\xFFbar", filename_display, "\uFFFDbar"); + t!(b"foo/\xFFbar", filename_display, "\u{FFFD}bar"); t!(b"/", filename_display, ""); macro_rules! t( @@ -566,10 +566,10 @@ mod tests { ) t!("foo", "foo"); - t!(b"foo\x80", "foo\uFFFD"); - t!(b"foo\xFFbar", "foo\uFFFDbar"); + t!(b"foo\x80", "foo\u{FFFD}"); + t!(b"foo\xFFbar", "foo\u{FFFD}bar"); t!(b"foo\xFF/bar", "bar", filename); - t!(b"foo/\xFFbar", "\uFFFDbar", filename); + t!(b"foo/\xFFbar", "\u{FFFD}bar", filename); t!(b"/", "", filename); } @@ -590,10 +590,10 @@ mod tests { t!(b"foo", "foo", "foo"); t!(b"foo/bar", "foo/bar", "bar"); t!(b"/", "/", ""); - t!(b"foo\xFF", "foo\uFFFD", "foo\uFFFD"); - t!(b"foo\xFF/bar", "foo\uFFFD/bar", "bar"); - t!(b"foo/\xFFbar", "foo/\uFFFDbar", "\uFFFDbar"); - t!(b"\xFFfoo/bar\xFF", "\uFFFDfoo/bar\uFFFD", "bar\uFFFD"); + t!(b"foo\xFF", "foo\u{FFFD}", "foo\u{FFFD}"); + t!(b"foo\xFF/bar", "foo\u{FFFD}/bar", "bar"); + t!(b"foo/\xFFbar", "foo/\u{FFFD}bar", "\u{FFFD}bar"); + t!(b"\xFFfoo/bar\xFF", "\u{FFFD}foo/bar\u{FFFD}", "bar\u{FFFD}"); } #[test] diff --git a/src/libstd/sys/windows/process.rs b/src/libstd/sys/windows/process.rs index 02548bedf02..adbcff8a53f 100644 --- a/src/libstd/sys/windows/process.rs +++ b/src/libstd/sys/windows/process.rs @@ -500,8 +500,8 @@ mod tests { "echo \"a b c\"" ); assert_eq!( - test_wrapper("\u03c0\u042f\u97f3\u00e6\u221e", &[]), - "\u03c0\u042f\u97f3\u00e6\u221e" + test_wrapper("\u{03c0}\u{042f}\u{97f3}\u{00e6}\u{221e}", &[]), + "\u{03c0}\u{042f}\u{97f3}\u{00e6}\u{221e}" ); } } |
