diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-27 10:08:40 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-27 10:08:40 -0700 |
| commit | 956c2eb257a4ac69371144e64be3e8c7cce8cb07 (patch) | |
| tree | 10ff68950ad7982fdc0a77a82f979234fbd0f1a8 /src/libstd/ffi | |
| parent | 169231dc83b3078fd19d193ff422628f03e20a44 (diff) | |
| parent | 36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157 (diff) | |
| download | rust-956c2eb257a4ac69371144e64be3e8c7cce8cb07.tar.gz rust-956c2eb257a4ac69371144e64be3e8c7cce8cb07.zip | |
rollup merge of #23738: alexcrichton/snapshots
Conflicts: src/libcollections/vec.rs
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 24844ad0961..49dbac4585b 100644 --- a/src/libstd/ffi/os_str.rs +++ b/src/libstd/ffi/os_str.rs @@ -119,18 +119,6 @@ impl<'a, T: ?Sized + AsRef<OsStr>> From<&'a T> 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; |
