Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 3997893

Browse files
committed
Fix rebase
1 parent 89f9349 commit 3997893

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

compiler/rustc_mir_dataflow/src/value_analysis.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ use rustc_middle::mir::tcx::PlaceTy;
5353
use rustc_middle::mir::visit::{PlaceContext, Visitor};
5454
use rustc_middle::mir::*;
5555
use rustc_middle::ty::{self, Ty, TyCtxt};
56-
use rustc_span::DUMMY_SP;
5756
use rustc_target::abi::VariantIdx;
5857

5958
use crate::lattice::{HasBottom, HasTop};
@@ -694,7 +693,7 @@ impl Map {
694693
if max_derefs > 0 {
695694
if let Some(ty::TypeAndMut { ty: deref_ty, .. }) = ty.builtin_deref(false) {
696695
// 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) {
698697
projection.push(PlaceElem::Deref);
699698
self.register_with_filter_rec(
700699
tcx,

src/test/mir-opt/issue_101973.inner.ConstProp.diff

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
StorageLive(_4); // scope 0 at $DIR/issue_101973.rs:+1:5: +1:17
3838
StorageLive(_5); // scope 0 at $DIR/issue_101973.rs:+1:10: +1:16
3939
_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
4140
StorageLive(_12); // scope 2 at $DIR/issue_101973.rs:7:12: 7:27
4241
StorageLive(_13); // scope 2 at $DIR/issue_101973.rs:7:12: 7:20
4342
StorageLive(_14); // scope 2 at $DIR/issue_101973.rs:7:13: 7:14
@@ -73,7 +72,7 @@
7372
StorageDead(_14); // scope 2 at $DIR/issue_101973.rs:7:19: 7:20
7473
_12 = BitAnd(move _13, const 255_u32); // scope 2 at $DIR/issue_101973.rs:7:12: 7:27
7574
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
7776
StorageDead(_12); // scope 2 at $DIR/issue_101973.rs:7:26: 7:27
7877
StorageDead(_5); // scope 0 at $DIR/issue_101973.rs:+1:16: +1:17
7978
StorageLive(_6); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57

0 commit comments

Comments
 (0)