Suggestion for fuzzy_provenance_casts
on a macro uses its expansion
#95919
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-strict-provenance
Area: Strict provenance for raw pointers
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (playground):
The current output is:
Note that the block passed to
with_addr
is the body ofmemoffset::offset_of!
:Ideally, the suggestion should just use
offset_of!
:@rustbot modify labels: +A-strict-provenance +D-papercut
The text was updated successfully, but these errors were encountered: