diff options
| author | bors <bors@rust-lang.org> | 2016-01-15 15:39:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-01-15 15:39:39 +0000 |
| commit | e51661b888de8885732d33e9e17b5bc95b778729 (patch) | |
| tree | 080affcc39e2de75f7a0e337b87745fcbd1419c8 /src/libstd/io | |
| parent | 1f4e317e45349eb2d3c853e96bfd24dd574b36d1 (diff) | |
| parent | 8ea7b88c9b8de8d750b42ceb46b3ec667e21e881 (diff) | |
Auto merge of #30898 - petrochenkov:tvarfstab, r=alexcrichton
This wasn't done in https://github.com/rust-lang/rust/pull/29083 because attributes weren't parsed on fields of tuple variant back then. r? @alexcrichton
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 40533117f06..abb47b69418 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1175,7 +1175,7 @@ pub trait Seek { pub enum SeekFrom { /// Set the offset to the provided number of bytes. #[stable(feature = "rust1", since = "1.0.0")] - Start(u64), + Start(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] u64), /// Set the offset to the size of this object plus the specified number of /// bytes. @@ -1183,7 +1183,7 @@ pub enum SeekFrom { /// It is possible to seek beyond the end of an object, but it's an error to /// seek before byte 0. #[stable(feature = "rust1", since = "1.0.0")] - End(i64), + End(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] i64), /// Set the offset to the current position plus the specified number of /// bytes. @@ -1191,7 +1191,7 @@ pub enum SeekFrom { /// It is possible to seek beyond the end of an object, but it's an error to /// seek before byte 0. #[stable(feature = "rust1", since = "1.0.0")] - Current(i64), + Current(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] i64), } fn read_until<R: BufRead + ?Sized>(r: &mut R, delim: u8, buf: &mut Vec<u8>) |
