Skip to content

unsafety chapter: fill in 5 guidelines #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PLeVasseur opened this issue Mar 12, 2025 · 5 comments
Open

unsafety chapter: fill in 5 guidelines #8

PLeVasseur opened this issue Mar 12, 2025 · 5 comments
Assignees
Labels
coding-guideline An issue related to a suggestion for a coding guideline enhancement New feature or request

Comments

@PLeVasseur
Copy link
Collaborator

PLeVasseur commented Mar 12, 2025

Work according to the goals outlined in #6

Fill in five guidelines

DRI: @adfernandes

Contributing:

@PLeVasseur
Copy link
Collaborator Author

@adfernandes -- could you post a comment here so that I can assign this to you?

@adfernandes
Copy link

Fabulous - thank you, @PLeVasseur!

@PLeVasseur PLeVasseur transferred this issue from rustfoundation/safety-critical-rust-consortium Mar 19, 2025
@PLeVasseur PLeVasseur added documentation Improvements or additions to documentation enhancement New feature or request and removed documentation Improvements or additions to documentation labels Mar 19, 2025
@adfernandes
Copy link

Note to self (and any followers):

Steve Klabnik, very recently on 2025-03-17, wrote a wonderful blog post titled Does unsafe undermine Rust's guarantees?

To quote Steve 🤣:

(The straightforward answer is “no”, by the way.)

To quote The Rustonomicon:

The unsafe keyword has two uses: to declare the existence of contracts the compiler can't check, and to declare that a programmer has checked that these contracts have been upheld.

@PLeVasseur
Copy link
Collaborator Author

Read the article as well. Thanks for sharing it here!

@PLeVasseur PLeVasseur added the coding-guideline An issue related to a suggestion for a coding guideline label Apr 3, 2025
@jmqd
Copy link

jmqd commented Apr 4, 2025

Hey folks, I was thinking I could write a guideline about the pointer aliasing rules. Before I started work, I wanted to make sure we didn't already have out-of-tree working going on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coding-guideline An issue related to a suggestion for a coding guideline enhancement New feature or request
Development

No branches or pull requests

3 participants