Skip to content

Commit 0894d1e

Browse files
committed
Auto merge of #84193 - ehuss:unsafe_op_in_unsafe_fn-docs, r=RalfJung
Update docs for unsafe_op_in_unsafe_fn stability. The unsafe_op_in_unsafe_fn lint was stabilized in #79208, but the bottom of this documentation wasn't updated. I'm just guessing at the reason here, hopefully it is close to correct. The only discussion I found is #71668 (comment) which didn't really explain the thought process behind the decision.
2 parents 043d916 + e67f443 commit 0894d1e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -2522,9 +2522,10 @@ declare_lint! {
25222522
///
25232523
/// The fix to this is to wrap the unsafe code in an `unsafe` block.
25242524
///
2525-
/// This lint is "allow" by default because it has not yet been
2526-
/// stabilized, and is not yet complete. See [RFC #2585] and [issue
2527-
/// #71668] for more details
2525+
/// This lint is "allow" by default since this will affect a large amount
2526+
/// of existing code, and the exact plan for increasing the severity is
2527+
/// still being considered. See [RFC #2585] and [issue #71668] for more
2528+
/// details.
25282529
///
25292530
/// [`unsafe fn`]: https://doc.rust-lang.org/reference/unsafe-functions.html
25302531
/// [`unsafe` block]: https://doc.rust-lang.org/reference/expressions/block-expr.html#unsafe-blocks

0 commit comments

Comments
 (0)