This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
compiler/rustc_mir_dataflow/src Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ use rustc_middle::mir::tcx::PlaceTy;
53
53
use rustc_middle:: mir:: visit:: { PlaceContext , Visitor } ;
54
54
use rustc_middle:: mir:: * ;
55
55
use rustc_middle:: ty:: { self , Ty , TyCtxt } ;
56
- use rustc_span:: DUMMY_SP ;
57
56
use rustc_target:: abi:: VariantIdx ;
58
57
59
58
use crate :: lattice:: { HasBottom , HasTop } ;
@@ -694,7 +693,7 @@ impl Map {
694
693
if max_derefs > 0 {
695
694
if let Some ( ty:: TypeAndMut { ty : deref_ty, .. } ) = ty. builtin_deref ( false ) {
696
695
// Values behind references can only be tracked if the target is `Freeze`.
697
- if deref_ty. is_freeze ( tcx. at ( DUMMY_SP ) , param_env) {
696
+ if deref_ty. is_freeze ( tcx, param_env) {
698
697
projection. push ( PlaceElem :: Deref ) ;
699
698
self . register_with_filter_rec (
700
699
tcx,
Original file line number Diff line number Diff line change 37
37
StorageLive(_4); // scope 0 at $DIR/issue_101973.rs:+1:5: +1:17
38
38
StorageLive(_5); // scope 0 at $DIR/issue_101973.rs:+1:10: +1:16
39
39
_5 = _1; // scope 0 at $DIR/issue_101973.rs:+1:10: +1:16
40
- _4 = const 0_u32; // scope 1 at $DIR/issue_101973.rs:6:19: 6:23
41
40
StorageLive(_12); // scope 2 at $DIR/issue_101973.rs:7:12: 7:27
42
41
StorageLive(_13); // scope 2 at $DIR/issue_101973.rs:7:12: 7:20
43
42
StorageLive(_14); // scope 2 at $DIR/issue_101973.rs:7:13: 7:14
73
72
StorageDead(_14); // scope 2 at $DIR/issue_101973.rs:7:19: 7:20
74
73
_12 = BitAnd(move _13, const 255_u32); // scope 2 at $DIR/issue_101973.rs:7:12: 7:27
75
74
StorageDead(_13); // scope 2 at $DIR/issue_101973.rs:7:26: 7:27
76
- _4 = BitOr(_4 , move _12); // scope 2 at $DIR/issue_101973.rs:7:5: 7:27
75
+ _4 = BitOr(const 0_u32 , move _12); // scope 2 at $DIR/issue_101973.rs:7:5: 7:27
77
76
StorageDead(_12); // scope 2 at $DIR/issue_101973.rs:7:26: 7:27
78
77
StorageDead(_5); // scope 0 at $DIR/issue_101973.rs:+1:16: +1:17
79
78
StorageLive(_6); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57
You can’t perform that action at this time.
0 commit comments