Closed
Description
This is a tracking issue for the RFC 3484: Unsafe Extern Blocks
RFC: rust-lang/rfcs#3484
Issues:
F-unsafe_extern_blocks
The feature gate for the issue is #![feature(unsafe_extern_blocks)]
.
About tracking issues
Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Accept the RFC.
- Implement in nightly with feature flag and with Rust 2024 behavior (with feature flag).
- Implement migration lints.
- Fire
unsafe_code
lint forunsafe extern
blocks - rustfmt support
- Stabilize in all editions.
- N/A: Add documentation to the dev guide.
- See the instructions.
- Add documentation to the reference.
- Add documentation to the edition guide.
- Add formatting for new syntax to the style guide.
- Ensure ready for Rust 2024 stabilization.
Related
- Unsafe extern blocks #124482
- Add new safety enum for inner extern items #124455
- Rename Unsafe to Safety #125077
- Add "better" edition handling on lint-docs tool #125522
unsafe
blocks do not fireunsafe_code
lint #126738safe
keyword is allowed in all function contexts #126749safe
keyword is not feature-gated #126755- Properly gate
safe
keyword in pre-expansion #126757 - Do not allow safe/unsafe on static and fn items #126758
- Bad replacement for unsafe extern block suggestion #126756
- Fix bad replacement for unsafe extern block suggestion #126973
- Fire unsafe_code lint on unsafe extern blocks #127535
- format safety keywords on static items rustfmt#6204
Metadata
Metadata
Assignees
Labels
Area: The 2024 editionBlocker: Approved by a merged RFC but not yet implemented.Category: An issue tracking the progress of sth. like the implementation of an RFC`#![feature(unsafe_extern_blocks)]`Status: This issue is ready for inclusion in the edition.Relevant to the language team, which will review and decide on the PR/issue.