Skip to content

Commit

Permalink
Auto merge of rust-lang#84193 - ehuss:unsafe_op_in_unsafe_fn-docs, r=…
Browse files Browse the repository at this point in the history
…RalfJung

Update docs for unsafe_op_in_unsafe_fn stability.

The unsafe_op_in_unsafe_fn lint was stabilized in rust-lang#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 rust-lang#71668 (comment) which didn't really explain the thought process behind the decision.
  • Loading branch information
bors committed Apr 15, 2021
2 parents 043d916 + e67f443 commit 0894d1e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compiler/rustc_lint_defs/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2522,9 +2522,10 @@ declare_lint! {
///
/// The fix to this is to wrap the unsafe code in an `unsafe` block.
///
/// This lint is "allow" by default because it has not yet been
/// stabilized, and is not yet complete. See [RFC #2585] and [issue
/// #71668] for more details
/// This lint is "allow" by default since this will affect a large amount
/// of existing code, and the exact plan for increasing the severity is
/// still being considered. See [RFC #2585] and [issue #71668] for more
/// details.
///
/// [`unsafe fn`]: https://doc.rust-lang.org/reference/unsafe-functions.html
/// [`unsafe` block]: https://doc.rust-lang.org/reference/expressions/block-expr.html#unsafe-blocks
Expand Down

0 comments on commit 0894d1e

Please sign in to comment.