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/check_alignment.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/check_alignment.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/check_alignment.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_mir_transform/src/check_alignment.rs b/compiler/rustc_mir_transform/src/check_alignment.rs index ad362f22ce1..2e072aa262a 100644 --- a/compiler/rustc_mir_transform/src/check_alignment.rs +++ b/compiler/rustc_mir_transform/src/check_alignment.rs @@ -9,7 +9,7 @@ use tracing::{debug, trace}; pub struct CheckAlignment; -impl<'tcx> MirPass<'tcx> for CheckAlignment { +impl<'tcx> crate::MirPass<'tcx> for CheckAlignment { fn is_enabled(&self, sess: &Session) -> bool { // FIXME(#112480) MSVC and rustc disagree on minimum stack alignment on x86 Windows if sess.target.llvm_target == "i686-pc-windows-msvc" { | 
