Nightly 2021-03-24 claims that the feature unsafe_block_in_unsafe_fn
was stabilized in 1.51, but stable 1.51 claims that the lint unsafe_op_in_unsafe_fn
is still unstable
#83735
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
F-unsafe-block-in-unsafe-fn
RFC #2585
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code on nightly Rust:
This produced a warning claiming that
unsafe_block_in_unsafe_fn
was stabilized in 1.51:I removed the feature gate and tried compiling the code on Rust 1.51.0:
However, this led to an error claiming that
unsafe_op_in_unsafe_fn
is unstable:Meta
rustc --version --verbose
:rustc +nightly --version --verbose
:@rustbot modify labels: +A-diagnostics +D-incorrect +F-unsafe-block-in-unsafe-fn
The text was updated successfully, but these errors were encountered: