@@ -286,8 +286,8 @@ pub fn eq_item_kind(l: &ItemKind, r: &ItemKind) -> bool {
286
286
match ( l, r) {
287
287
( ExternCrate ( l) , ExternCrate ( r) ) => l == r,
288
288
( Use ( l) , Use ( r) ) => eq_use_tree ( l, r) ,
289
- ( 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 ( 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) ,
289
+ ( Static ( box ast:: Static { ty : lt, mutability : lm, expr : le} ) , Static ( box ast:: Static { 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) ,
291
291
(
292
292
Fn ( box ast:: Fn {
293
293
defaultness : ld,
@@ -451,7 +451,7 @@ pub fn eq_foreign_item_kind(l: &ForeignItemKind, r: &ForeignItemKind) -> bool {
451
451
pub fn eq_assoc_item_kind ( l : & AssocItemKind , r : & AssocItemKind ) -> bool {
452
452
use AssocItemKind :: * ;
453
453
match ( l, r) {
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) ,
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) ,
455
455
(
456
456
Fn ( box ast:: Fn {
457
457
defaultness : ld,
0 commit comments