@@ -287,7 +287,7 @@ pub fn eq_item_kind(l: &ItemKind, r: &ItemKind) -> bool {
287287 ( ExternCrate ( l) , ExternCrate ( r) ) => l == r,
288288 ( Use ( l) , Use ( r) ) => eq_use_tree ( l, r) ,
289289 ( Static ( ast:: Static { ty : lt, mutability : lm, expr : le} ) , Static ( ast:: Static { ty : rt, mutability : rm, expr : re} ) ) => lm == rm && eq_ty ( lt, rt) && eq_expr_opt ( le, re) ,
290- ( Const ( ld, lt, le ) , Const ( rd, rt, re ) ) => eq_defaultness ( * ld, * rd) && eq_ty ( lt, rt) && eq_expr_opt ( le, re) ,
290+ ( Const ( ast :: ConstItem { defaultness : ld, ty : lt, expr : le } ) , Const ( ast :: ConstItem { defaultness : rd, ty : rt, expr : re } ) ) => eq_defaultness ( * ld, * rd) && eq_ty ( lt, rt) && eq_expr_opt ( le, re) ,
291291 (
292292 Fn ( box ast:: Fn {
293293 defaultness : ld,
@@ -451,7 +451,7 @@ pub fn eq_foreign_item_kind(l: &ForeignItemKind, r: &ForeignItemKind) -> bool {
451451pub fn eq_assoc_item_kind ( l : & AssocItemKind , r : & AssocItemKind ) -> bool {
452452 use AssocItemKind :: * ;
453453 match ( l, r) {
454- ( Const ( ld, lt, le ) , Const ( rd, rt, re ) ) => eq_defaultness ( * ld, * rd) && eq_ty ( lt, rt) && eq_expr_opt ( le, re) ,
454+ ( Const ( ast :: ConstItem { defaultness : ld, ty : lt, expr : le } ) , Const ( ast :: ConstItem { defaultness : rd, ty : rt, expr : re } ) ) => eq_defaultness ( * ld, * rd) && eq_ty ( lt, rt) && eq_expr_opt ( le, re) ,
455455 (
456456 Fn ( box ast:: Fn {
457457 defaultness : ld,
0 commit comments