Unsafe Loop when using mem::transmute & Unpreventable Due to a Macro #134018
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
S-needs-info
Status: The issue lacks details necessary to triage or act on it.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The problem occurs when using a macro, normally the issue could be avoided by using the recommended
#[warn(unused_unsafe)]
procedural macro. However, when adding the attribute, it specifies issue #15701:The proposed fix is either to recognise that
mem::transmute
requires unsafe due to the borrow checker's absence or allow the#[warn(unused_unsafe)]
procedural macro to be allowed to be specified with macros. I would prefer the former over the latter.Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: