@@ -431,7 +431,9 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
431
431
// fields are actually safe.
432
432
let mut all_phantom = true ;
433
433
for field in & def. struct_variant ( ) . fields {
434
- let field_ty = cx. trans_normalize_associated_types_in ( & field. ty ( cx, substs) ) ;
434
+ let field_ty = cx. trans_normalize_associated_types_in (
435
+ & field. ty ( cx, substs)
436
+ ) ;
435
437
let r = self . check_type_for_ffi ( cache, field_ty) ;
436
438
match r {
437
439
FfiSafe => {
@@ -463,7 +465,9 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
463
465
464
466
let mut all_phantom = true ;
465
467
for field in & def. struct_variant ( ) . fields {
466
- let field_ty = cx. trans_normalize_associated_types_in ( & field. ty ( cx, substs) ) ;
468
+ let field_ty = cx. trans_normalize_associated_types_in (
469
+ & field. ty ( cx, substs)
470
+ ) ;
467
471
let r = self . check_type_for_ffi ( cache, field_ty) ;
468
472
match r {
469
473
FfiSafe => {
@@ -516,7 +520,9 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
516
520
// Check the contained variants.
517
521
for variant in & def. variants {
518
522
for field in & variant. fields {
519
- let arg = cx. trans_normalize_associated_types_in ( & field. ty ( cx, substs) ) ;
523
+ let arg = cx. trans_normalize_associated_types_in (
524
+ & field. ty ( cx, substs)
525
+ ) ;
520
526
let r = self . check_type_for_ffi ( cache, arg) ;
521
527
match r {
522
528
FfiSafe => { }
0 commit comments