Match unmatched backticks in comments in compiler/
This commit is contained in:
parent
ff2c609d66
commit
6df5ae4fb0
24 changed files with 28 additions and 25 deletions
|
@ -235,7 +235,7 @@ impl<D: Decoder> Decodable<D> for DefIndex {
|
|||
pub struct DefId {
|
||||
// cfg-ing the order of fields so that the `DefIndex` which is high entropy always ends up in
|
||||
// the lower bits no matter the endianness. This allows the compiler to turn that `Hash` impl
|
||||
// into a direct call to 'u64::hash(_)`.
|
||||
// into a direct call to `u64::hash(_)`.
|
||||
#[cfg(not(all(target_pointer_width = "64", target_endian = "big")))]
|
||||
pub index: DefIndex,
|
||||
pub krate: CrateNum,
|
||||
|
|
|
@ -1954,7 +1954,7 @@ impl Interner {
|
|||
let name = Symbol::new(inner.strings.len() as u32);
|
||||
|
||||
// SAFETY: we convert from `&str` to `&[u8]`, clone it into the arena,
|
||||
// and immediately convert the clone back to `&[u8], all because there
|
||||
// and immediately convert the clone back to `&[u8]`, all because there
|
||||
// is no `inner.arena.alloc_str()` method. This is clearly safe.
|
||||
let string: &str =
|
||||
unsafe { str::from_utf8_unchecked(inner.arena.alloc_slice(string.as_bytes())) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue