diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-24 18:13:54 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-26 09:57:05 -0700 |
| commit | 36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157 (patch) | |
| tree | 7769ba1cae0d202a55b219efb2a04032f3bf70eb /src/libstd/ffi | |
| parent | 557d4346a26266d2eb13f6b0adf106b8873b0da1 (diff) | |
| download | rust-36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157.tar.gz rust-36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157.zip | |
Register new snapshots
Diffstat (limited to 'src/libstd/ffi')
| -rw-r--r-- | src/libstd/ffi/os_str.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs index 5851c6e2998..99cbd26bcd1 100644 --- a/src/libstd/ffi/os_str.rs +++ b/src/libstd/ffi/os_str.rs @@ -133,18 +133,6 @@ impl<'a> From<&'a OsStr> for OsString { } } -#[cfg(stage0)] -#[stable(feature = "rust1", since = "1.0.0")] -impl ops::Index<ops::RangeFull> for OsString { - type Output = OsStr; - - #[inline] - fn index(&self, _index: &ops::RangeFull) -> &OsStr { - unsafe { mem::transmute(self.inner.as_slice()) } - } -} - -#[cfg(not(stage0))] #[stable(feature = "rust1", since = "1.0.0")] impl ops::Index<ops::RangeFull> for OsString { type Output = OsStr; |
