]> git.lizzy.rs Git - rust.git/commitdiff
Move `MoveDataParamEnv` to beginning of module
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Sat, 29 Feb 2020 05:47:36 +0000 (21:47 -0800)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Thu, 26 Mar 2020 23:19:21 +0000 (16:19 -0700)
src/librustc_mir/dataflow/mod.rs

index b7189f60984eabc77e0ac73745a1f30dbd5a625e..2c64108d7c20cb69fdaf04ec5330412d6e9a52dc 100644 (file)
@@ -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) {
@@ -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.