Remove in_band_lifetimes
from rustc_mir_dataflow
See #91867 for more information.
This commit is contained in:
parent
1d01550f7e
commit
fed881aafc
13 changed files with 70 additions and 60 deletions
|
@ -45,7 +45,7 @@ impl MaybeBorrowedLocals {
|
|||
}
|
||||
}
|
||||
|
||||
impl AnalysisDomain<'tcx> for MaybeBorrowedLocals {
|
||||
impl<'tcx> AnalysisDomain<'tcx> for MaybeBorrowedLocals {
|
||||
type Domain = BitSet<Local>;
|
||||
const NAME: &'static str = "maybe_borrowed_locals";
|
||||
|
||||
|
@ -59,7 +59,7 @@ impl AnalysisDomain<'tcx> for MaybeBorrowedLocals {
|
|||
}
|
||||
}
|
||||
|
||||
impl GenKillAnalysis<'tcx> for MaybeBorrowedLocals {
|
||||
impl<'tcx> GenKillAnalysis<'tcx> for MaybeBorrowedLocals {
|
||||
type Idx = Local;
|
||||
|
||||
fn statement_effect(
|
||||
|
@ -95,7 +95,7 @@ struct TransferFunction<'a, T> {
|
|||
ignore_borrow_on_drop: bool,
|
||||
}
|
||||
|
||||
impl<T> Visitor<'tcx> for TransferFunction<'a, T>
|
||||
impl<'tcx, T> Visitor<'tcx> for TransferFunction<'_, T>
|
||||
where
|
||||
T: GenKill<Local>,
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ use rustc_middle::mir::{self, BasicBlock, Local, Location};
|
|||
|
||||
pub struct MaybeInitializedLocals;
|
||||
|
||||
impl crate::AnalysisDomain<'tcx> for MaybeInitializedLocals {
|
||||
impl<'tcx> crate::AnalysisDomain<'tcx> for MaybeInitializedLocals {
|
||||
type Domain = BitSet<Local>;
|
||||
|
||||
const NAME: &'static str = "maybe_init_locals";
|
||||
|
@ -28,7 +28,7 @@ impl crate::AnalysisDomain<'tcx> for MaybeInitializedLocals {
|
|||
}
|
||||
}
|
||||
|
||||
impl crate::GenKillAnalysis<'tcx> for MaybeInitializedLocals {
|
||||
impl<'tcx> crate::GenKillAnalysis<'tcx> for MaybeInitializedLocals {
|
||||
type Idx = Local;
|
||||
|
||||
fn statement_effect(
|
||||
|
@ -73,7 +73,7 @@ struct TransferFunction<'a, T> {
|
|||
trans: &'a mut T,
|
||||
}
|
||||
|
||||
impl<T> Visitor<'tcx> for TransferFunction<'a, T>
|
||||
impl<T> Visitor<'_> for TransferFunction<'_, T>
|
||||
where
|
||||
T: GenKill<Local>,
|
||||
{
|
||||
|
|
|
@ -48,12 +48,12 @@ use crate::{AnalysisDomain, Backward, CallReturnPlaces, GenKill, GenKillAnalysis
|
|||
pub struct MaybeLiveLocals;
|
||||
|
||||
impl MaybeLiveLocals {
|
||||
fn transfer_function<T>(&self, trans: &'a mut T) -> TransferFunction<'a, T> {
|
||||
fn transfer_function<'a, T>(&self, trans: &'a mut T) -> TransferFunction<'a, T> {
|
||||
TransferFunction(trans)
|
||||
}
|
||||
}
|
||||
|
||||
impl AnalysisDomain<'tcx> for MaybeLiveLocals {
|
||||
impl<'tcx> AnalysisDomain<'tcx> for MaybeLiveLocals {
|
||||
type Domain = BitSet<Local>;
|
||||
type Direction = Backward;
|
||||
|
||||
|
@ -69,7 +69,7 @@ impl AnalysisDomain<'tcx> for MaybeLiveLocals {
|
|||
}
|
||||
}
|
||||
|
||||
impl GenKillAnalysis<'tcx> for MaybeLiveLocals {
|
||||
impl<'tcx> GenKillAnalysis<'tcx> for MaybeLiveLocals {
|
||||
type Idx = Local;
|
||||
|
||||
fn statement_effect(
|
||||
|
|
|
@ -704,7 +704,7 @@ impl<'tcx> GenKillAnalysis<'tcx> for EverInitializedPlaces<'_, 'tcx> {
|
|||
///
|
||||
/// If the basic block matches this pattern, this function returns the place corresponding to the
|
||||
/// enum (`_1` in the example above) as well as the `AdtDef` of that enum.
|
||||
fn switch_on_enum_discriminant(
|
||||
fn switch_on_enum_discriminant<'mir, 'tcx>(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
body: &'mir mir::Body<'tcx>,
|
||||
block: &'mir mir::BasicBlockData<'tcx>,
|
||||
|
|
|
@ -17,7 +17,7 @@ impl MaybeStorageLive {
|
|||
}
|
||||
}
|
||||
|
||||
impl crate::AnalysisDomain<'tcx> for MaybeStorageLive {
|
||||
impl<'tcx> crate::AnalysisDomain<'tcx> for MaybeStorageLive {
|
||||
type Domain = BitSet<Local>;
|
||||
|
||||
const NAME: &'static str = "maybe_storage_live";
|
||||
|
@ -39,7 +39,7 @@ impl crate::AnalysisDomain<'tcx> for MaybeStorageLive {
|
|||
}
|
||||
}
|
||||
|
||||
impl crate::GenKillAnalysis<'tcx> for MaybeStorageLive {
|
||||
impl<'tcx> crate::GenKillAnalysis<'tcx> for MaybeStorageLive {
|
||||
type Idx = Local;
|
||||
|
||||
fn statement_effect(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue