Don't re-export MirPass
This commit is contained in:
parent
6db0a0e9a4
commit
188d670125
4 changed files with 3 additions and 8 deletions
|
@ -1,5 +1,3 @@
|
|||
pub mod check_consts;
|
||||
pub mod promote_consts;
|
||||
pub mod validate;
|
||||
|
||||
pub use rustc_middle::mir::MirPass;
|
||||
|
|
|
@ -27,7 +27,6 @@ use std::cell::Cell;
|
|||
use std::{cmp, iter, mem};
|
||||
|
||||
use crate::transform::check_consts::{qualifs, ConstCx};
|
||||
use crate::transform::MirPass;
|
||||
|
||||
/// A `MirPass` for promotion.
|
||||
///
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
//! Validates the MIR to ensure that invariants are upheld.
|
||||
|
||||
use super::MirPass;
|
||||
use rustc_index::bit_set::BitSet;
|
||||
use rustc_infer::infer::TyCtxtInferExt;
|
||||
use rustc_middle::mir::interpret::Scalar;
|
||||
use rustc_middle::mir::traversal;
|
||||
use rustc_middle::mir::visit::{PlaceContext, Visitor};
|
||||
use rustc_middle::mir::{
|
||||
AggregateKind, BasicBlock, Body, BorrowKind, Local, Location, MirPhase, Operand, PlaceElem,
|
||||
PlaceRef, ProjectionElem, Rvalue, SourceScope, Statement, StatementKind, Terminator,
|
||||
AggregateKind, BasicBlock, Body, BorrowKind, Local, Location, MirPass, MirPhase, Operand,
|
||||
PlaceElem, PlaceRef, ProjectionElem, Rvalue, SourceScope, Statement, StatementKind, Terminator,
|
||||
TerminatorKind, START_BLOCK,
|
||||
};
|
||||
use rustc_middle::ty::fold::BottomUpFolder;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue