Validate and test -Zmir-enable-passes

This commit is contained in:
clubby789
2024-11-11 16:36:00 +00:00
parent 2a9cc8f4d6
commit 94371d5a8c
9 changed files with 75 additions and 5 deletions

View File

@@ -38,6 +38,12 @@ pub(crate) struct UnalignedPackedRef {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(mir_transform_unknown_pass_name)]
pub(crate) struct UnknownPassName<'a> {
pub(crate) name: &'a str,
}
pub(crate) struct AssertLint<P> {
pub span: Span,
pub assert_kind: AssertKind<P>,