Hint at using unsafe_op_in_unsafe_fn
in the unused_unsafe
warning
#90776
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=7d4fd2e742e8d92ddc1032a8328f95b2
The current output is:
Ideally the output should look like (very roughly):
The note should only appear when it's an appropriate usage of an
unsafe
block, i.e. the block's contents aren't safe.This would hint at
unsafe_op_in_unsafe_fn
even being a thing right from the output :)The text was updated successfully, but these errors were encountered: