@@ -91,7 +91,7 @@ use fmt;
91
91
/// let _x = HasDrop;
92
92
/// }
93
93
/// ```
94
- #[ lang= "drop" ]
94
+ #[ lang = "drop" ]
95
95
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
96
96
pub trait Drop {
97
97
/// The `drop` method, called when the value goes out of scope.
@@ -181,7 +181,7 @@ macro_rules! forward_ref_binop {
181
181
/// Foo + Foo;
182
182
/// }
183
183
/// ```
184
- #[ lang= "add" ]
184
+ #[ lang = "add" ]
185
185
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
186
186
pub trait Add < RHS =Self > {
187
187
/// The resulting type after applying the `+` operator
@@ -235,7 +235,7 @@ add_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
235
235
/// Foo - Foo;
236
236
/// }
237
237
/// ```
238
- #[ lang= "sub" ]
238
+ #[ lang = "sub" ]
239
239
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
240
240
pub trait Sub < RHS =Self > {
241
241
/// The resulting type after applying the `-` operator
@@ -289,7 +289,7 @@ sub_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
289
289
/// Foo * Foo;
290
290
/// }
291
291
/// ```
292
- #[ lang= "mul" ]
292
+ #[ lang = "mul" ]
293
293
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
294
294
pub trait Mul < RHS =Self > {
295
295
/// The resulting type after applying the `*` operator
@@ -343,7 +343,7 @@ mul_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
343
343
/// Foo / Foo;
344
344
/// }
345
345
/// ```
346
- #[ lang= "div" ]
346
+ #[ lang = "div" ]
347
347
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
348
348
pub trait Div < RHS =Self > {
349
349
/// The resulting type after applying the `/` operator
@@ -397,7 +397,7 @@ div_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
397
397
/// Foo % Foo;
398
398
/// }
399
399
/// ```
400
- #[ lang= "rem" ]
400
+ #[ lang = "rem" ]
401
401
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
402
402
pub trait Rem < RHS =Self > {
403
403
/// The resulting type after applying the `%` operator
@@ -470,7 +470,7 @@ rem_float_impl! { f64, fmod }
470
470
/// -Foo;
471
471
/// }
472
472
/// ```
473
- #[ lang= "neg" ]
473
+ #[ lang = "neg" ]
474
474
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
475
475
pub trait Neg {
476
476
/// The resulting type after applying the `-` operator
@@ -541,7 +541,7 @@ neg_impl_numeric! { isize i8 i16 i32 i64 f32 f64 }
541
541
/// !Foo;
542
542
/// }
543
543
/// ```
544
- #[ lang= "not" ]
544
+ #[ lang = "not" ]
545
545
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
546
546
pub trait Not {
547
547
/// The resulting type after applying the `!` operator
@@ -595,7 +595,7 @@ not_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
595
595
/// Foo & Foo;
596
596
/// }
597
597
/// ```
598
- #[ lang= "bitand" ]
598
+ #[ lang = "bitand" ]
599
599
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
600
600
pub trait BitAnd < RHS =Self > {
601
601
/// The resulting type after applying the `&` operator
@@ -649,7 +649,7 @@ bitand_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
649
649
/// Foo | Foo;
650
650
/// }
651
651
/// ```
652
- #[ lang= "bitor" ]
652
+ #[ lang = "bitor" ]
653
653
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
654
654
pub trait BitOr < RHS =Self > {
655
655
/// The resulting type after applying the `|` operator
@@ -703,7 +703,7 @@ bitor_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
703
703
/// Foo ^ Foo;
704
704
/// }
705
705
/// ```
706
- #[ lang= "bitxor" ]
706
+ #[ lang = "bitxor" ]
707
707
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
708
708
pub trait BitXor < RHS =Self > {
709
709
/// The resulting type after applying the `^` operator
@@ -757,7 +757,7 @@ bitxor_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
757
757
/// Foo << Foo;
758
758
/// }
759
759
/// ```
760
- #[ lang= "shl" ]
760
+ #[ lang = "shl" ]
761
761
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
762
762
pub trait Shl < RHS > {
763
763
/// The resulting type after applying the `<<` operator
@@ -829,7 +829,7 @@ shl_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
829
829
/// Foo >> Foo;
830
830
/// }
831
831
/// ```
832
- #[ lang= "shr" ]
832
+ #[ lang = "shr" ]
833
833
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
834
834
pub trait Shr < RHS > {
835
835
/// The resulting type after applying the `>>` operator
@@ -902,7 +902,7 @@ shr_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
902
902
/// Foo[Bar];
903
903
/// }
904
904
/// ```
905
- #[ lang= "index" ]
905
+ #[ lang = "index" ]
906
906
#[ rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`" ]
907
907
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
908
908
pub trait Index < Idx : ?Sized > {
@@ -949,7 +949,7 @@ pub trait Index<Idx: ?Sized> {
949
949
/// &mut Foo[Bar];
950
950
/// }
951
951
/// ```
952
- #[ lang= "index_mut" ]
952
+ #[ lang = "index_mut" ]
953
953
#[ rustc_on_unimplemented = "the type `{Self}` cannot be mutably indexed by `{Idx}`" ]
954
954
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
955
955
pub trait IndexMut < Idx : ?Sized > : Index < Idx > {
@@ -960,7 +960,7 @@ pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
960
960
961
961
/// An unbounded range.
962
962
#[ derive( Copy , Clone , PartialEq , Eq ) ]
963
- #[ lang= "range_full" ]
963
+ #[ lang = "range_full" ]
964
964
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
965
965
pub struct RangeFull ;
966
966
@@ -973,7 +973,7 @@ impl fmt::Debug for RangeFull {
973
973
974
974
/// A (half-open) range which is bounded at both ends.
975
975
#[ derive( Clone , PartialEq , Eq ) ]
976
- #[ lang= "range" ]
976
+ #[ lang = "range" ]
977
977
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
978
978
pub struct Range < Idx > {
979
979
/// The lower bound of the range (inclusive).
@@ -993,7 +993,7 @@ impl<Idx: fmt::Debug> fmt::Debug for Range<Idx> {
993
993
994
994
/// A range which is only bounded below.
995
995
#[ derive( Clone , PartialEq , Eq ) ]
996
- #[ lang= "range_from" ]
996
+ #[ lang = "range_from" ]
997
997
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
998
998
pub struct RangeFrom < Idx > {
999
999
/// The lower bound of the range (inclusive).
@@ -1010,7 +1010,7 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> {
1010
1010
1011
1011
/// A range which is only bounded above.
1012
1012
#[ derive( Copy , Clone , PartialEq , Eq ) ]
1013
- #[ lang= "range_to" ]
1013
+ #[ lang = "range_to" ]
1014
1014
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1015
1015
pub struct RangeTo < Idx > {
1016
1016
/// The upper bound of the range (exclusive).
@@ -1053,7 +1053,7 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> {
1053
1053
/// assert_eq!('a', *x);
1054
1054
/// }
1055
1055
/// ```
1056
- #[ lang= "deref" ]
1056
+ #[ lang = "deref" ]
1057
1057
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1058
1058
pub trait Deref {
1059
1059
/// The resulting type after dereferencing
@@ -1114,7 +1114,7 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
1114
1114
/// assert_eq!('b', *x);
1115
1115
/// }
1116
1116
/// ```
1117
- #[ lang= "deref_mut" ]
1117
+ #[ lang = "deref_mut" ]
1118
1118
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1119
1119
pub trait DerefMut : Deref {
1120
1120
/// The method called to mutably dereference a value
@@ -1128,7 +1128,7 @@ impl<'a, T: ?Sized> DerefMut for &'a mut T {
1128
1128
}
1129
1129
1130
1130
/// A version of the call operator that takes an immutable receiver.
1131
- #[ lang= "fn" ]
1131
+ #[ lang = "fn" ]
1132
1132
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1133
1133
#[ rustc_paren_sugar]
1134
1134
#[ fundamental] // so that regex can rely that `&str: !FnMut`
@@ -1138,7 +1138,7 @@ pub trait Fn<Args> : FnMut<Args> {
1138
1138
}
1139
1139
1140
1140
/// A version of the call operator that takes a mutable receiver.
1141
- #[ lang= "fn_mut" ]
1141
+ #[ lang = "fn_mut" ]
1142
1142
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1143
1143
#[ rustc_paren_sugar]
1144
1144
#[ fundamental] // so that regex can rely that `&str: !FnMut`
@@ -1148,7 +1148,7 @@ pub trait FnMut<Args> : FnOnce<Args> {
1148
1148
}
1149
1149
1150
1150
/// A version of the call operator that takes a by-value receiver.
1151
- #[ lang= "fn_once" ]
1151
+ #[ lang = "fn_once" ]
1152
1152
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1153
1153
#[ rustc_paren_sugar]
1154
1154
#[ fundamental] // so that regex can rely that `&str: !FnMut`
0 commit comments