Skip to content

Commit 9978afb

Browse files
Move MoveDataParamEnv to beginning of module
1 parent 15346ed commit 9978afb

File tree

1 file changed

+5
-5
lines changed
  • src/librustc_mir/dataflow

1 file changed

+5
-5
lines changed

src/librustc_mir/dataflow/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ pub(crate) mod indexes {
2626
};
2727
}
2828

29+
pub struct MoveDataParamEnv<'tcx> {
30+
pub(crate) move_data: MoveData<'tcx>,
31+
pub(crate) param_env: ty::ParamEnv<'tcx>,
32+
}
33+
2934
pub(crate) fn has_rustc_mir_with(attrs: &[ast::Attribute], name: Symbol) -> Option<MetaItem> {
3035
for attr in attrs {
3136
if attr.check_name(sym::rustc_mir) {
@@ -41,11 +46,6 @@ pub(crate) fn has_rustc_mir_with(attrs: &[ast::Attribute], name: Symbol) -> Opti
4146
None
4247
}
4348

44-
pub struct MoveDataParamEnv<'tcx> {
45-
pub(crate) move_data: MoveData<'tcx>,
46-
pub(crate) param_env: ty::ParamEnv<'tcx>,
47-
}
48-
4949
/// Parameterization for the precise form of data flow that is used.
5050
///
5151
/// `BottomValue` determines whether the initial entry set for each basic block is empty or full.

0 commit comments

Comments
 (0)