File tree 4 files changed +4
-4
lines changed
compiler/rustc_data_structures/src
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub struct MaybeTempDir {
12
12
13
13
impl Drop for MaybeTempDir {
14
14
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
16
16
// occur.
17
17
let dir = unsafe { ManuallyDrop :: take ( & mut self . dir ) } ;
18
18
if self . keep {
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ impl Global {
157
157
}
158
158
}
159
159
160
- // Safety : Same as `AllocRef::grow`
160
+ // SAFETY : Same as `AllocRef::grow`
161
161
#[ inline]
162
162
unsafe fn grow_impl (
163
163
& mut self ,
Original file line number Diff line number Diff line change @@ -2392,7 +2392,7 @@ impl<T> VecDeque<T> {
2392
2392
}
2393
2393
}
2394
2394
2395
- // Safety : the following two methods require that the rotation amount
2395
+ // SAFETY : the following two methods require that the rotation amount
2396
2396
// be less than half the length of the deque.
2397
2397
//
2398
2398
// `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() {
12
12
yield ;
13
13
assert_eq ! ( b as * const _, & a as * const _) ;
14
14
} ;
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
16
16
// move it after this point.
17
17
let mut generator = unsafe { Pin :: new_unchecked ( & mut generator) } ;
18
18
assert_eq ! ( generator. as_mut( ) . resume( ( ) ) , GeneratorState :: Yielded ( ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments