message: Move alignment failure error reporting to machine
diff: @@ -22,7 +22,7 @@ use rustc_middle::{
  };
  use rustc_span::def_id::{CrateNum, DefId};
  use rustc_span::Symbol;
  -use rustc_target::abi::Size;
  +use rustc_target::abi::{Size, Align};
  use rustc_target::spec::abi::Abi;
  use rustc_const_eval::const_eval::CheckAlignment;
  @@ -766,6 +766,15 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
  ecx.machine.check_alignment == AlignmentCheck::Int
  }
  + fn alignment_check_failed(
  + _ecx: &InterpCx<'mir, 'tcx, Self>,
  + has: Align,
  + required: Align,
  + _check: CheckAlignment,
  + ) -> InterpResult<'tcx, ()> {
  + throw_ub!(AlignmentCheckFailed { has, required })
  + }
  +
  #[inline(always)]
  fn enforce_validity(ecx: &MiriInterpCx<'mir, 'tcx>) -> bool {
  ecx.machine.validate
  