@@ -1393,13 +1393,13 @@ fn mk_ctxt() -> parse::ParseSess {
1393
1393
}
1394
1394
1395
1395
#[ cfg( test) ]
1396
- fn roundtrip ( in_item : P < hir:: Item > ) {
1396
+ fn roundtrip ( in_item : hir:: Item ) {
1397
1397
let mut wr = Cursor :: new ( Vec :: new ( ) ) ;
1398
- encode_item_ast ( & mut Encoder :: new ( & mut wr) , & * in_item) ;
1398
+ encode_item_ast ( & mut Encoder :: new ( & mut wr) , & in_item) ;
1399
1399
let rbml_doc = rbml:: Doc :: new ( wr. get_ref ( ) ) ;
1400
1400
let out_item = decode_item_ast ( rbml_doc) ;
1401
1401
1402
- assert ! ( * in_item == out_item) ;
1402
+ assert ! ( in_item == out_item) ;
1403
1403
}
1404
1404
1405
1405
#[ test]
@@ -1449,11 +1449,11 @@ fn test_simplification() {
1449
1449
let hir_item = lower_item ( & lcx, & item) ;
1450
1450
let item_in = InlinedItemRef :: Item ( & hir_item) ;
1451
1451
let item_out = simplify_ast ( item_in) ;
1452
- let item_exp = InlinedItem :: Item ( lower_item ( & lcx, & quote_item ! ( & cx,
1452
+ let item_exp = InlinedItem :: Item ( P ( lower_item ( & lcx, & quote_item ! ( & cx,
1453
1453
fn new_int_alist<B >( ) -> alist<isize , B > {
1454
1454
return alist { eq_fn: eq_int, data: Vec :: new( ) } ;
1455
1455
}
1456
- ) . unwrap ( ) ) ) ;
1456
+ ) . unwrap ( ) ) ) ) ;
1457
1457
match ( item_out, item_exp) {
1458
1458
( InlinedItem :: Item ( item_out) , InlinedItem :: Item ( item_exp) ) => {
1459
1459
assert ! ( pprust:: item_to_string( & * item_out) ==
0 commit comments