Overhaul of "Behavior not considered unsafe"#1937
Open
kleinesfilmroellchen wants to merge 3 commits intorust-lang:masterfrom
Open
Overhaul of "Behavior not considered unsafe"#1937kleinesfilmroellchen wants to merge 3 commits intorust-lang:masterfrom
kleinesfilmroellchen wants to merge 3 commits intorust-lang:masterfrom
Conversation
Give this section of the reference a new paint job :3 Note: I’m not entirely sure if this section should even exist permanently. It doesn’t really fit in with strictly defining Rust’s behavior as such, since it describes lots of legal behavior that is simply surprising to users. It may fit better in the nomicon or a later part of the book. On the other hand, neither of those would suffer from the improvements made here. - Slightly rename the section to clarify that we refer to generally undesirable behavior. - Adopt language to authoritative spec language (do not use we, do not refer to implementations, use as specific of a language as possible) - Link to standard library - Link to applicable other sections - Use admonitions for existing text where applicable - Insert rule identifiers everywhere - Write a complete section for deadlocks, including a deadlocking code example - Expand the logic bug example with Hash and Eq into a full code example
Author
|
What is the status on this PR? Given that other PRs in this repo are clearly getting attention, I’d like to know why this one isn’t. |
Darksonn
reviewed
Jul 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Give this section of the reference a new paint job :3
Note: I’m not entirely sure if this section should even exist permanently. It doesn’t really fit in with strictly defining Rust’s behavior as such, since it describes lots of legal behavior that is simply surprising to users. It may fit better in the nomicon or a later part of the book. On the other hand, neither of those would suffer from the improvements made here.