Skip to content
Permalink
Browse files

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

Co-Authored-By: wildarch <daandegraaf9@gmail.com>
  • Loading branch information...
2 people authored and saleemjaffer committed Dec 28, 2018
1 parent b7266c6 commit e395026aba4d0739ec06264dabb97a614ec8d0dc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/librustc/ty/layout.rs
@@ -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

0 comments on commit e395026

Please sign in to comment.
You can’t perform that action at this time.