diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-18 09:36:18 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-18 16:32:32 -0700 |
| commit | fccf5a00056b1d72065951a4428070326df1cfb5 (patch) | |
| tree | 481e99dcf4197b0b25cd765877c1b132f768d772 /src/libstd/sys/common | |
| parent | 94a95067e017252d4928a4292a6aeef66902e694 (diff) | |
| download | rust-fccf5a00056b1d72065951a4428070326df1cfb5.tar.gz rust-fccf5a00056b1d72065951a4428070326df1cfb5.zip | |
Register new snapshots
Diffstat (limited to 'src/libstd/sys/common')
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index dfc88571a82..3cc91bf54b4 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -172,18 +172,6 @@ impl Wtf8Buf { Wtf8Buf { bytes: string.into_bytes() } } - #[cfg(stage0)] - /// Create a WTF-8 string from an UTF-8 `&str` slice. - /// - /// This copies the content of the slice. - /// - /// Since WTF-8 is a superset of UTF-8, this always succeeds. - #[inline] - pub fn from_str(str: &str) -> Wtf8Buf { - Wtf8Buf { bytes: slice::SliceExt::to_vec(str.as_bytes()) } - } - - #[cfg(not(stage0))] /// Create a WTF-8 string from an UTF-8 `&str` slice. /// /// This copies the content of the slice. |
