@@ -286,8 +286,8 @@ pub fn eq_item_kind(l: &ItemKind, r: &ItemKind) -> bool {
286286 match ( l, r) {
287287 ( ExternCrate ( l) , ExternCrate ( r) ) => l == r,
288288 ( Use ( l) , Use ( r) ) => eq_use_tree ( l, r) ,
289- ( Static ( lt, lm, le ) , Static ( rt, rm, 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) ,
289+ ( Static ( box ast :: StaticItem { ty : lt, mutability : lm, expr : le } ) , Static ( box ast :: StaticItem { ty : rt, mutability : rm, expr : re } ) ) => lm == rm && eq_ty ( lt, rt) && eq_expr_opt ( le, re) ,
290+ ( Const ( box ast :: ConstItem { defaultness : ld, ty : lt, expr : le } ) , Const ( box 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 ( box ast :: ConstItem { defaultness : ld, ty : lt, expr : le } ) , Const ( box 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