File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1512,9 +1512,8 @@ impl<'tcx> TyCtxt<'tcx> {
15121512 field_shuffle_seed ^= user_seed;
15131513 }
15141514
1515- if let Some ( reprs) =
1516- find_attr ! ( self . get_all_attrs( did) , AttributeKind :: Repr { reprs, .. } => reprs)
1517- {
1515+ let attributes = self . get_all_attrs ( did) ;
1516+ if let Some ( reprs) = find_attr ! ( attributes, AttributeKind :: Repr { reprs, .. } => reprs) {
15181517 for ( r, _) in reprs {
15191518 flags. insert ( match * r {
15201519 attr:: ReprRust => ReprFlags :: empty ( ) ,
@@ -1574,10 +1573,7 @@ impl<'tcx> TyCtxt<'tcx> {
15741573 }
15751574
15761575 // See `TyAndLayout::pass_indirectly_in_non_rustic_abis` for details.
1577- if find_attr ! (
1578- self . get_all_attrs( did) ,
1579- AttributeKind :: RustcPassIndirectlyInNonRusticAbis ( ..)
1580- ) {
1576+ if find_attr ! ( attributes, AttributeKind :: RustcPassIndirectlyInNonRusticAbis ( ..) ) {
15811577 flags. insert ( ReprFlags :: PASS_INDIRECTLY_IN_NON_RUSTIC_ABIS ) ;
15821578 }
15831579
You can’t perform that action at this time.
0 commit comments