Lifetime variance fixes for rustc
This commit is contained in:
parent
4bb4dc4672
commit
1784634a39
22 changed files with 92 additions and 86 deletions
|
@ -304,8 +304,8 @@ impl Direction for Backward {
|
|||
}
|
||||
}
|
||||
|
||||
struct BackwardSwitchIntEdgeEffectsApplier<'a, D, F> {
|
||||
body: &'a mir::Body<'a>,
|
||||
struct BackwardSwitchIntEdgeEffectsApplier<'a, 'tcx, D, F> {
|
||||
body: &'a mir::Body<'tcx>,
|
||||
pred: BasicBlock,
|
||||
exit_state: &'a mut D,
|
||||
bb: BasicBlock,
|
||||
|
@ -314,7 +314,7 @@ struct BackwardSwitchIntEdgeEffectsApplier<'a, D, F> {
|
|||
effects_applied: bool,
|
||||
}
|
||||
|
||||
impl<D, F> super::SwitchIntEdgeEffects<D> for BackwardSwitchIntEdgeEffectsApplier<'_, D, F>
|
||||
impl<D, F> super::SwitchIntEdgeEffects<D> for BackwardSwitchIntEdgeEffectsApplier<'_, '_, D, F>
|
||||
where
|
||||
D: Clone,
|
||||
F: FnMut(BasicBlock, &D),
|
||||
|
|
|
@ -14,7 +14,7 @@ use super::*;
|
|||
///
|
||||
/// This is the `Body` that will be used by the `MockAnalysis` below. The shape of its CFG is not
|
||||
/// important.
|
||||
fn mock_body() -> mir::Body<'static> {
|
||||
fn mock_body<'tcx>() -> mir::Body<'tcx> {
|
||||
let source_info = mir::SourceInfo::outermost(DUMMY_SP);
|
||||
|
||||
let mut blocks = IndexVec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue