Skip to content

Commit

Permalink
Move MoveDataParamEnv to beginning of module
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Mar 26, 2020
1 parent 15346ed commit 9978afb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/librustc_mir/dataflow/mod.rs
Expand Up @@ -26,6 +26,11 @@ pub(crate) mod indexes {
};
}

pub struct MoveDataParamEnv<'tcx> {
pub(crate) move_data: MoveData<'tcx>,
pub(crate) param_env: ty::ParamEnv<'tcx>,
}

pub(crate) fn has_rustc_mir_with(attrs: &[ast::Attribute], name: Symbol) -> Option<MetaItem> {
for attr in attrs {
if attr.check_name(sym::rustc_mir) {
Expand All @@ -41,11 +46,6 @@ pub(crate) fn has_rustc_mir_with(attrs: &[ast::Attribute], name: Symbol) -> Opti
None
}

pub struct MoveDataParamEnv<'tcx> {
pub(crate) move_data: MoveData<'tcx>,
pub(crate) param_env: ty::ParamEnv<'tcx>,
}

/// Parameterization for the precise form of data flow that is used.
///
/// `BottomValue` determines whether the initial entry set for each basic block is empty or full.
Expand Down

0 comments on commit 9978afb

Please sign in to comment.