Fix typo in src/librustc/ty/layout.rs

Co-Authored-By: wildarch <daandegraaf9@gmail.com>
This commit is contained in:
Oliver Scherer 2018-12-28 12:23:23 +01:00 committed by Saleem Jaffer
parent b7266c6008
commit e395026aba

View file

@ -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