diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-01-14 17:08:35 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-01-14 17:08:35 +0300 |
| commit | 8ea7b88c9b8de8d750b42ceb46b3ec667e21e881 (patch) | |
| tree | baaec5bb999d03a1a4cd642a5f523a320014e987 /src/libcollections | |
| parent | e1f550ebc299d5eadc073160cd3acb8de6c5d857 (diff) | |
| download | rust-8ea7b88c9b8de8d750b42ceb46b3ec667e21e881.tar.gz rust-8ea7b88c9b8de8d750b42ceb46b3ec667e21e881.zip | |
Require stability annotations on fields of tuple variants
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/borrow.rs | 6 | ||||
| -rw-r--r-- | src/libcollections/btree/map.rs | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/libcollections/borrow.rs b/src/libcollections/borrow.rs index bfd4c2e96b5..25bfbb04a90 100644 --- a/src/libcollections/borrow.rs +++ b/src/libcollections/borrow.rs @@ -95,11 +95,13 @@ pub enum Cow<'a, B: ?Sized + 'a> { /// Borrowed data. #[stable(feature = "rust1", since = "1.0.0")] - Borrowed(&'a B), + Borrowed(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] &'a B), /// Owned data. #[stable(feature = "rust1", since = "1.0.0")] - Owned(<B as ToOwned>::Owned), + Owned( + #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] <B as ToOwned>::Owned + ), } #[stable(feature = "rust1", since = "1.0.0")] diff --git a/src/libcollections/btree/map.rs b/src/libcollections/btree/map.rs index f87f5e6c2e6..74895f16596 100644 --- a/src/libcollections/btree/map.rs +++ b/src/libcollections/btree/map.rs @@ -126,11 +126,15 @@ pub struct RangeMut<'a, K: 'a, V: 'a> { pub enum Entry<'a, K: 'a, V: 'a> { /// A vacant Entry #[stable(feature = "rust1", since = "1.0.0")] - Vacant(VacantEntry<'a, K, V>), + Vacant( + #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] VacantEntry<'a, K, V> + ), /// An occupied Entry #[stable(feature = "rust1", since = "1.0.0")] - Occupied(OccupiedEntry<'a, K, V>), + Occupied( + #[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] OccupiedEntry<'a, K, V> + ), } /// A vacant Entry. |
