Merge pull request #1993 from JosephTLyons/Add-additional-bullet-point-for-unsafe

Added a bullet point to have list of things unsafe allows for match u…
This commit is contained in:
Steve Klabnik
2019-09-15 11:43:21 -05:00
committed by GitHub
+1
View File
@@ -33,6 +33,7 @@ the ability to:
* Call an unsafe function or method
* Access or modify a mutable static variable
* Implement an unsafe trait
* Access fields of `union`s
It’s important to understand that `unsafe` doesn’t turn off the borrow checker
or disable any other of Rust’s safety checks: if you use a reference in unsafe