diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-03 15:45:27 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-03 16:03:46 +1000 |
| commit | 2aae619edbf3f761894cac42a0074718219434df (patch) | |
| tree | fa7d8c8b375e64290901ebe1e80b4ea1e5ad916f /compiler/rustc_mir_transform/src/validate.rs | |
| parent | 5410900aaa54a20276a71b39b126d2a4c0ce8493 (diff) | |
| download | rust-2aae619edbf3f761894cac42a0074718219434df.tar.gz rust-2aae619edbf3f761894cac42a0074718219434df.zip | |
Move `MirPass` to `rustc_mir_transform`.
Because that's now the only crate that uses it. Moving stuff out of `rustc_middle` is always welcome. I chose to use `impl crate::MirPass`/`impl crate::MirLint` (with explicit `crate::`) everywhere because that's the only mention of `MirPass`/`MirLint` used in all of these files. (Prior to this change, `MirPass` was mostly imported via `use rustc_middle::mir::*` items.)
Diffstat (limited to 'compiler/rustc_mir_transform/src/validate.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/validate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/validate.rs b/compiler/rustc_mir_transform/src/validate.rs index 99e06f59dd0..69e2592e82c 100644 --- a/compiler/rustc_mir_transform/src/validate.rs +++ b/compiler/rustc_mir_transform/src/validate.rs @@ -36,7 +36,7 @@ pub struct Validator { pub mir_phase: MirPhase, } -impl<'tcx> MirPass<'tcx> for Validator { +impl<'tcx> crate::MirPass<'tcx> for Validator { fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { // FIXME(JakobDegen): These bodies never instantiated in codegend anyway, so it's not // terribly important that they pass the validator. However, I think other passes might |
