Skip to content

Commit f7fe249

Browse files
committed
Remove associated_types gate from std::ops docs
1 parent dcaeb6a commit f7fe249

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/libcore/ops.rs

-30
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
//! demonstrates adding and subtracting two `Point`s.
2626
//!
2727
//! ```rust
28-
//! #![feature(associated_types)]
29-
//!
3028
//! use std::ops::{Add, Sub};
3129
//!
3230
//! #[derive(Show)]
@@ -104,8 +102,6 @@ pub trait Drop {
104102
/// calling `add`, and therefore, `main` prints `Adding!`.
105103
///
106104
/// ```rust
107-
/// #![feature(associated_types)]
108-
///
109105
/// use std::ops::Add;
110106
///
111107
/// #[derive(Copy)]
@@ -157,8 +153,6 @@ add_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
157153
/// calling `sub`, and therefore, `main` prints `Subtracting!`.
158154
///
159155
/// ```rust
160-
/// #![feature(associated_types)]
161-
///
162156
/// use std::ops::Sub;
163157
///
164158
/// #[derive(Copy)]
@@ -210,8 +204,6 @@ sub_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
210204
/// calling `mul`, and therefore, `main` prints `Multiplying!`.
211205
///
212206
/// ```rust
213-
/// #![feature(associated_types)]
214-
///
215207
/// use std::ops::Mul;
216208
///
217209
/// #[derive(Copy)]
@@ -263,8 +255,6 @@ mul_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
263255
/// calling `div`, and therefore, `main` prints `Dividing!`.
264256
///
265257
/// ```
266-
/// #![feature(associated_types)]
267-
///
268258
/// use std::ops::Div;
269259
///
270260
/// #[derive(Copy)]
@@ -316,8 +306,6 @@ div_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
316306
/// calling `rem`, and therefore, `main` prints `Remainder-ing!`.
317307
///
318308
/// ```
319-
/// #![feature(associated_types)]
320-
///
321309
/// use std::ops::Rem;
322310
///
323311
/// #[derive(Copy)]
@@ -386,8 +374,6 @@ rem_float_impl! { f64, fmod }
386374
/// `neg`, and therefore, `main` prints `Negating!`.
387375
///
388376
/// ```
389-
/// #![feature(associated_types)]
390-
///
391377
/// use std::ops::Neg;
392378
///
393379
/// struct Foo;
@@ -461,8 +447,6 @@ neg_uint_impl! { u64, i64 }
461447
/// `not`, and therefore, `main` prints `Not-ing!`.
462448
///
463449
/// ```
464-
/// #![feature(associated_types)]
465-
///
466450
/// use std::ops::Not;
467451
///
468452
/// struct Foo;
@@ -515,8 +499,6 @@ not_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
515499
/// calling `bitand`, and therefore, `main` prints `Bitwise And-ing!`.
516500
///
517501
/// ```
518-
/// #![feature(associated_types)]
519-
///
520502
/// use std::ops::BitAnd;
521503
///
522504
/// #[derive(Copy)]
@@ -568,8 +550,6 @@ bitand_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
568550
/// calling `bitor`, and therefore, `main` prints `Bitwise Or-ing!`.
569551
///
570552
/// ```
571-
/// #![feature(associated_types)]
572-
///
573553
/// use std::ops::BitOr;
574554
///
575555
/// #[derive(Copy)]
@@ -621,8 +601,6 @@ bitor_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
621601
/// calling `bitxor`, and therefore, `main` prints `Bitwise Xor-ing!`.
622602
///
623603
/// ```
624-
/// #![feature(associated_types)]
625-
///
626604
/// use std::ops::BitXor;
627605
///
628606
/// #[derive(Copy)]
@@ -674,8 +652,6 @@ bitxor_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
674652
/// calling `shl`, and therefore, `main` prints `Shifting left!`.
675653
///
676654
/// ```
677-
/// #![feature(associated_types)]
678-
///
679655
/// use std::ops::Shl;
680656
///
681657
/// #[derive(Copy)]
@@ -745,8 +721,6 @@ shl_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
745721
/// calling `shr`, and therefore, `main` prints `Shifting right!`.
746722
///
747723
/// ```
748-
/// #![feature(associated_types)]
749-
///
750724
/// use std::ops::Shr;
751725
///
752726
/// #[derive(Copy)]
@@ -1006,8 +980,6 @@ impl<Idx: fmt::Show> fmt::Show for RangeTo<Idx> {
1006980
/// struct.
1007981
///
1008982
/// ```
1009-
/// #![feature(associated_types)]
1010-
///
1011983
/// use std::ops::Deref;
1012984
///
1013985
/// struct DerefExample<T> {
@@ -1061,8 +1033,6 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
10611033
/// struct.
10621034
///
10631035
/// ```
1064-
/// #![feature(associated_types)]
1065-
///
10661036
/// use std::ops::{Deref, DerefMut};
10671037
///
10681038
/// struct DerefMutExample<T> {

0 commit comments

Comments
 (0)