File tree 2 files changed +0
-9
lines changed
2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,6 @@ impl Annotatable {
106
106
}
107
107
}
108
108
109
- pub fn expect_foreign_item ( self ) -> ast:: ForeignItem {
110
- match self {
111
- Annotatable :: ForeignItem ( i) => i. into_inner ( ) ,
112
- _ => panic ! ( "expected foreign item" )
113
- }
114
- }
115
-
116
109
pub fn expect_stmt ( self ) -> ast:: Stmt {
117
110
match self {
118
111
Annotatable :: Stmt ( stmt) => stmt. into_inner ( ) ,
Original file line number Diff line number Diff line change @@ -149,8 +149,6 @@ impl ExpansionKind {
149
149
Expansion :: ImplItems ( items. map ( Annotatable :: expect_impl_item) . collect ( ) ) ,
150
150
ExpansionKind :: TraitItems =>
151
151
Expansion :: TraitItems ( items. map ( Annotatable :: expect_trait_item) . collect ( ) ) ,
152
- ExpansionKind :: ForeignItems =>
153
- Expansion :: ForeignItems ( items. map ( Annotatable :: expect_foreign_item) . collect ( ) ) ,
154
152
ExpansionKind :: Stmts => Expansion :: Stmts ( items. map ( Annotatable :: expect_stmt) . collect ( ) ) ,
155
153
ExpansionKind :: Expr => Expansion :: Expr (
156
154
items. next ( ) . expect ( "expected exactly one expression" ) . expect_expr ( )
You can’t perform that action at this time.
0 commit comments