@@ -238,7 +238,7 @@ impl Uniform {
238
238
239
239
pub trait LayoutExt < ' tcx > {
240
240
fn is_aggregate ( & self ) -> bool ;
241
- fn homogenous_aggregate < ' a > ( & self , ccx : & CrateContext < ' a , ' tcx > ) -> Option < Reg > ;
241
+ fn homogeneous_aggregate < ' a > ( & self , ccx : & CrateContext < ' a , ' tcx > ) -> Option < Reg > ;
242
242
}
243
243
244
244
impl < ' tcx > LayoutExt < ' tcx > for TyLayout < ' tcx > {
@@ -258,7 +258,7 @@ impl<'tcx> LayoutExt<'tcx> for TyLayout<'tcx> {
258
258
}
259
259
}
260
260
261
- fn homogenous_aggregate < ' a > ( & self , ccx : & CrateContext < ' a , ' tcx > ) -> Option < Reg > {
261
+ fn homogeneous_aggregate < ' a > ( & self , ccx : & CrateContext < ' a , ' tcx > ) -> Option < Reg > {
262
262
match * self . layout {
263
263
// The primitives for this algorithm.
264
264
Layout :: Scalar { value, .. } |
@@ -291,7 +291,7 @@ impl<'tcx> LayoutExt<'tcx> for TyLayout<'tcx> {
291
291
292
292
Layout :: Array { count, .. } => {
293
293
if count > 0 {
294
- self . field ( ccx, 0 ) . homogenous_aggregate ( ccx)
294
+ self . field ( ccx, 0 ) . homogeneous_aggregate ( ccx)
295
295
} else {
296
296
None
297
297
}
@@ -307,8 +307,8 @@ impl<'tcx> LayoutExt<'tcx> for TyLayout<'tcx> {
307
307
}
308
308
309
309
let field = self . field ( ccx, i) ;
310
- match ( result, field. homogenous_aggregate ( ccx) ) {
311
- // The field itself must be a homogenous aggregate.
310
+ match ( result, field. homogeneous_aggregate ( ccx) ) {
311
+ // The field itself must be a homogeneous aggregate.
312
312
( _, None ) => return None ,
313
313
// If this is the first field, record the unit.
314
314
( None , Some ( unit) ) => {
@@ -344,8 +344,8 @@ impl<'tcx> LayoutExt<'tcx> for TyLayout<'tcx> {
344
344
345
345
for i in 0 ..self . field_count ( ) {
346
346
let field = self . field ( ccx, i) ;
347
- match ( result, field. homogenous_aggregate ( ccx) ) {
348
- // The field itself must be a homogenous aggregate.
347
+ match ( result, field. homogeneous_aggregate ( ccx) ) {
348
+ // The field itself must be a homogeneous aggregate.
349
349
( _, None ) => return None ,
350
350
// If this is the first field, record the unit.
351
351
( None , Some ( unit) ) => {
@@ -830,7 +830,7 @@ impl<'a, 'tcx> FnType<'tcx> {
830
830
831
831
let size = arg. layout . size ( ccx) ;
832
832
833
- if let Some ( unit) = arg. layout . homogenous_aggregate ( ccx) {
833
+ if let Some ( unit) = arg. layout . homogeneous_aggregate ( ccx) {
834
834
// Replace newtypes with their inner-most type.
835
835
if unit. size == size {
836
836
// Needs a cast as we've unpacked a newtype.
0 commit comments