-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impl: prefix unsafe macros with 'unsafe_'
If these could be defined as functions, then we would have considered them to be unsound. Since there is no such thing as an "unsafe macro" in Rust, we adopt a convention that such a macro start with 'unsafe_'. There are no changes in the safety properties of the implementation in this commit. This is only about making the code a bit clearer and more consistent with Rust's safety story. Kudos to @tspiteri for the idea: https://internals.rust-lang.org/t/hidden-unsafe-due-to-unintentionally-abusable-macros-and-include/14107/26
- Loading branch information
1 parent
2819796
commit 5d9d038
Showing
2 changed files
with
52 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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