Skip to content

Commit 086233e

Browse files
committed
Refer to a couple of domains indirectly.
Via the `Analysis::Domain` associated types, instead of the direct type name.
1 parent d490ea1 commit 086233e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

compiler/rustc_mir_dataflow/src/impls/initialized.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl<'a, 'tcx> MaybeInitializedPlaces<'a, 'tcx> {
7070
pub fn is_unwind_dead(
7171
&self,
7272
place: mir::Place<'tcx>,
73-
state: &MaybeReachable<MixedBitSet<MovePathIndex>>,
73+
state: &<Self as Analysis<'tcx>>::Domain,
7474
) -> bool {
7575
if let LookupResult::Exact(path) = self.move_data().rev_lookup.find(place.as_ref()) {
7676
let mut maybe_live = false;

compiler/rustc_mir_dataflow/src/rustc_peek.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use rustc_ast::MetaItem;
22
use rustc_hir::def_id::DefId;
3-
use rustc_index::bit_set::BitSet;
43
use rustc_middle::mir::{self, Body, Local, Location};
54
use rustc_middle::ty::{self, Ty, TyCtxt};
65
use rustc_span::Span;
@@ -254,7 +253,7 @@ impl<'tcx> RustcPeekAt<'tcx> for MaybeLiveLocals {
254253
&self,
255254
tcx: TyCtxt<'tcx>,
256255
place: mir::Place<'tcx>,
257-
state: &BitSet<Local>,
256+
state: &Self::Domain,
258257
call: PeekCall,
259258
) {
260259
info!(?place, "peek_at");

0 commit comments

Comments
 (0)