File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -489,11 +489,5 @@ pub fn visit<'tcx>(
489
489
) ;
490
490
}
491
491
492
- for ( & constant, const_lty) in & acx. const_ref_tys {
493
- let _ptr_id = const_lty. label ;
494
- let _expected_perms = PermissionSet :: for_const ( constant) ;
495
- // TODO: check that perms match the expected ones
496
- }
497
-
498
492
( tc. constraints , tc. equiv_constraints )
499
493
}
Original file line number Diff line number Diff line change @@ -625,6 +625,13 @@ fn run(tcx: TyCtxt) {
625
625
let mut asn = gasn. and ( & mut info. lasn ) ;
626
626
info. dataflow . propagate_cell ( & mut asn) ;
627
627
628
+ for ( & constant, const_lty) in & acx. const_ref_tys {
629
+ let ptr_id = const_lty. label ;
630
+ let expected_perms = PermissionSet :: for_const ( constant) ;
631
+ let actual_perms = asn. perms ( ) [ ptr_id] ;
632
+ assert_eq ! ( expected_perms, actual_perms) ;
633
+ }
634
+
628
635
// Print labeling and rewrites for the current function.
629
636
630
637
eprintln ! ( "\n final labeling for {:?}:" , name) ;
You can’t perform that action at this time.
0 commit comments