Rollup merge of #76504 - Flying-Toast:master, r=lcnr

Capitalize safety comments
This commit is contained in:
Tyler Mandry 2020-09-09 15:06:00 -07:00 committed by GitHub
commit c18fa460a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 42 additions and 42 deletions

View file

@ -157,7 +157,7 @@ impl Global {
}
}
// Safety: Same as `AllocRef::grow`
// SAFETY: Same as `AllocRef::grow`
#[inline]
unsafe fn grow_impl(
&mut self,

View file

@ -2388,7 +2388,7 @@ impl<T> VecDeque<T> {
}
}
// Safety: the following two methods require that the rotation amount
// SAFETY: the following two methods require that the rotation amount
// be less than half the length of the deque.
//
// `wrap_copy` requires that `min(x, cap() - x) + copy_len <= cap()`,