diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-02-28 21:47:36 -0800 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-03-26 16:19:21 -0700 |
| commit | 9978afb5d6e851d8cc37e657daf68b3902af93b5 (patch) | |
| tree | 3af2aca35be7fd7fd4a6d7a0b49ff3e6e508621e | |
| parent | 15346ed53ca1b248b8063dc29928d2e0876e825d (diff) | |
| download | rust-9978afb5d6e851d8cc37e657daf68b3902af93b5.tar.gz rust-9978afb5d6e851d8cc37e657daf68b3902af93b5.zip | |
Move `MoveDataParamEnv` to beginning of module
| -rw-r--r-- | src/librustc_mir/dataflow/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc_mir/dataflow/mod.rs b/src/librustc_mir/dataflow/mod.rs index b7189f60984..2c64108d7c2 100644 --- a/src/librustc_mir/dataflow/mod.rs +++ b/src/librustc_mir/dataflow/mod.rs @@ -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. |
