This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
compiler/rustc_data_structures/src Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub struct MaybeTempDir {
1212
1313impl Drop for MaybeTempDir {
1414 fn drop ( & mut self ) {
15- // Safety : We are in the destructor, and no further access will
15+ // SAFETY : We are in the destructor, and no further access will
1616 // occur.
1717 let dir = unsafe { ManuallyDrop :: take ( & mut self . dir ) } ;
1818 if self . keep {
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ impl Global {
157157 }
158158 }
159159
160- // Safety : Same as `AllocRef::grow`
160+ // SAFETY : Same as `AllocRef::grow`
161161 #[ inline]
162162 unsafe fn grow_impl (
163163 & mut self ,
Original file line number Diff line number Diff line change @@ -2392,7 +2392,7 @@ impl<T> VecDeque<T> {
23922392 }
23932393 }
23942394
2395- // Safety : the following two methods require that the rotation amount
2395+ // SAFETY : the following two methods require that the rotation amount
23962396 // be less than half the length of the deque.
23972397 //
23982398 // `wrap_copy` requires that `min(x, cap() - x) + copy_len <= cap()`,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn main() {
1212 yield ;
1313 assert_eq ! ( b as * const _, & a as * const _) ;
1414 } ;
15- // Safety : We shadow the original generator variable so have no safe API to
15+ // SAFETY : We shadow the original generator variable so have no safe API to
1616 // move it after this point.
1717 let mut generator = unsafe { Pin :: new_unchecked ( & mut generator) } ;
1818 assert_eq ! ( generator. as_mut( ) . resume( ( ) ) , GeneratorState :: Yielded ( ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments