-
Notifications
You must be signed in to change notification settings - Fork 1.6k
RFC: Safety Tags #3842
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
zjp-CN
wants to merge
51
commits into
rust-lang:master
Choose a base branch
from
Artisan-Lab:safety-tags
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+808
−0
Open
RFC: Safety Tags #3842
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
5d92060
RFC: safety-tags
zjp-CN 7ccafe1
safety-tags: styling
zjp-CN c0495e3
safety-tags: add previous zulipchat link on Safety Property System
zjp-CN 2004fd4
safety-tags: add tag discharge of unsafe encapsulation
zjp-CN 0090419
safety-tags: typo
zjp-CN 4b6bdb2
safety-tags: styling
zjp-CN 567b998
safety-tags: fix link
zjp-CN e9ec420
safety-tags: clarify semver rules
zjp-CN 3da20c9
safety-tags: #[ref] needs clippy reporting
zjp-CN 719342e
safety-tags: #![clippy::safety] => #![clippy::safety::use]
zjp-CN 421ea8d
safety-tags: fix tag in loop snippet
zjp-CN a0294a8
safety-tags: clippy::safety::use => clippy::safety::r#use
zjp-CN 39dec42
Update text/0000-safety-tags.md
zjp-CN e2e5a11
safety-tags: Should Tags Take Arguments?
zjp-CN 80cf23d
safety-tags: rephrase motivations
zjp-CN 392d5fc
safety-tags: replace clippy namespace with safety namesapce
zjp-CN 88c3525
safety-tags: alternative named argument syntax
zjp-CN 731a5ba
safety-tag: Rationale for the Proposed Implementation
zjp-CN 39b17e2
safety-tags: teams support for this RFC
zjp-CN 2130878
safety-tags: Why Not Structured Safety Comments?
zjp-CN b077573
safety-tags: Encapsulate Declaration with define_safety_tag!
zjp-CN d906447
safety-tags: minor clarification
zjp-CN 078d22c
safety-tags: summarize safety attributes with 💡
zjp-CN 6f9577d
safety-tags: explain how safety::checked is validated on unsafe opera…
zjp-CN 7e0daff
safety-tags: minor adjustment
zjp-CN cb7dbd7
safety-tags: semantic granularity with future entity-reference
zjp-CN ad2d8d7
safety-tags: minor fixes
zjp-CN 35aa734
safety-tags: clarify #[ref] support from clippy and RA
zjp-CN 82a9c2c
remove safety::import; named arguments in safety::{requires,checked}
zjp-CN 75f85f3
add "Tagging More Unsafe Operations"
zjp-CN 2711e17
minor fixes
zjp-CN 33826b1
force description in tag definitions; fix `:` by `=`
zjp-CN 3aa44b4
add @deprecated disgnostics; major change to add or remove tags
zjp-CN 27a7b0d
minor fix
zjp-CN 5dffa30
remove `@deprecated`; swap the order on Versioned invariants and Sema…
zjp-CN 6d0d064
minor fix
zjp-CN c73221b
clarify semver on definition change
zjp-CN 21e5431
Auto Generate Safety Docs from Tags; multiple attrs on the same node
zjp-CN 2fb3d0c
minor fixes and clarification on semver
zjp-CN bfb6304
minor fixes: discharge of undefined tags warns by default
zjp-CN 0405d98
minor fix
zjp-CN 12c7f89
review: request Lang team to reserve `safety` namespace
zjp-CN b95cb59
syntax: only accepy `()` delemiter around tags
zjp-CN e3d43ae
`checked` is lenient in diagnostics by default; upgrade in cargo check
zjp-CN 93e48b9
tag styles: visually group tags; naming convention
zjp-CN d4d0679
rephrase team approvals
zjp-CN 4c8a256
entity-reference attribute candidates due to `ref` being a keyword
zjp-CN 23f8942
tag: `snake_case` naming convention and render to `Snake case`
zjp-CN 66eda21
future: `#[safety::batch_checked]` Shares Tag Discharging
zjp-CN 4aaba41
chore: typos
zjp-CN 3ac2da3
alternativs: compared to Clippy lint `danger_not_accepted`
zjp-CN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.