Fix typo in src/librustc/ty/layout.rs
Co-Authored-By: wildarch <daandegraaf9@gmail.com>
This commit is contained in:
parent
b7266c6008
commit
e395026aba
1 changed files with 1 additions and 1 deletions
|
|
@ -1888,7 +1888,7 @@ impl<'a, 'tcx, C> TyLayoutMethods<'tcx, C> for Ty<'tcx>
|
|||
_ => {
|
||||
let mut data_variant = match this.variants {
|
||||
Variants::NicheFilling { dataful_variant, .. } => {
|
||||
// Only the niche itthis is always initialized,
|
||||
// Only the niche in this is always initialized,
|
||||
// so only check for a pointer at its offset.
|
||||
//
|
||||
// If the niche is a pointer, it's either valid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue