@@ -2605,13 +2605,13 @@ pub type ForeignItem = Item<ForeignItemKind>;
2605
2605
/// An item within an `extern` block.
2606
2606
#[ derive( Clone , RustcEncodable , RustcDecodable , Debug ) ]
2607
2607
pub enum ForeignItemKind {
2608
- /// A foreign function.
2609
- Fn ( FnSig , Generics , Option < P < Block > > ) ,
2610
- /// A foreign static item (`static ext: u8`).
2608
+ /// A static item (`static FOO: u8`).
2611
2609
Static ( P < Ty > , Mutability ) ,
2612
- /// A foreign type.
2610
+ /// A function.
2611
+ Fn ( FnSig , Generics , Option < P < Block > > ) ,
2612
+ /// A type.
2613
2613
Ty ,
2614
- /// A macro invocation .
2614
+ /// A macro expanding to an item .
2615
2615
Macro ( Mac ) ,
2616
2616
}
2617
2617
@@ -2651,16 +2651,13 @@ pub struct AssocItem {
2651
2651
/// means "provided" and conversely `None` means "required".
2652
2652
#[ derive( Clone , RustcEncodable , RustcDecodable , Debug ) ]
2653
2653
pub enum AssocItemKind {
2654
- /// An associated constant, `const $ident: $ty $def?;` where `def ::= "=" $expr? ;`.
2655
- /// If `def` is parsed, then the associated constant is provided, and otherwise required.
2654
+ /// A constant, `const $ident: $ty $def?;` where `def ::= "=" $expr? ;`.
2655
+ /// If `def` is parsed, then the constant is provided, and otherwise required.
2656
2656
Const ( P < Ty > , Option < P < Expr > > ) ,
2657
-
2658
- /// An associated function.
2657
+ /// A function.
2659
2658
Fn ( FnSig , Generics , Option < P < Block > > ) ,
2660
-
2661
- /// An associated type.
2659
+ /// A type.
2662
2660
TyAlias ( Generics , GenericBounds , Option < P < Ty > > ) ,
2663
-
2664
- /// A macro expanding to an associated item.
2661
+ /// A macro expanding to an item.
2665
2662
Macro ( Mac ) ,
2666
2663
}
0 commit comments