Add a Lint for Pointer to Integer Transmutes in Consts
This commit is contained in:
@@ -121,3 +121,10 @@ pub(crate) struct MustNotSuspendReason {
|
||||
pub span: Span,
|
||||
pub reason: String,
|
||||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(mir_transform_undefined_transmute)]
|
||||
#[note]
|
||||
#[note(mir_transform_note2)]
|
||||
#[help]
|
||||
pub(crate) struct UndefinedTransmute;
|
||||
|
||||
Reference in New Issue
Block a user