@@ -164,7 +164,7 @@ impl TypeMap<'ll, 'tcx> {
164
164
type_ : Ty < ' tcx > ) -> UniqueTypeId {
165
165
// Let's see if we already have something in the cache
166
166
if let Some ( unique_type_id) = self . type_to_unique_id . get ( & type_) . cloned ( ) {
167
- return unique_type_id
167
+ return unique_type_id;
168
168
}
169
169
// if not, generate one
170
170
@@ -290,7 +290,7 @@ macro_rules! return_if_metadata_created_in_meantime {
290
290
. borrow( )
291
291
. find_metadata_for_unique_id( $unique_type_id)
292
292
{
293
- return MetadataCreationResult :: new( metadata, true )
293
+ return MetadataCreationResult :: new( metadata, true ) ;
294
294
}
295
295
)
296
296
}
@@ -552,7 +552,7 @@ pub fn type_metadata(
552
552
. borrow ( )
553
553
. find_metadata_for_unique_id ( unique_type_id)
554
554
{
555
- return Err ( metadata)
555
+ return Err ( metadata) ;
556
556
}
557
557
558
558
Ok ( MetadataCreationResult :: new ( pointer_type_metadata ( cx, t, pointee_metadata) ,
@@ -612,7 +612,7 @@ pub fn type_metadata(
612
612
. borrow ( )
613
613
. find_metadata_for_unique_id ( unique_type_id)
614
614
{
615
- return metadata
615
+ return metadata;
616
616
}
617
617
618
618
// This is actually a function pointer, so wrap it in pointer DI
@@ -1477,7 +1477,7 @@ fn prepare_enum_metadata(
1477
1477
} ;
1478
1478
1479
1479
if let ( & layout:: Abi :: Scalar ( _) , Some ( discr) ) = ( & layout. abi , discriminant_type_metadata) {
1480
- return FinalMetadata ( discr)
1480
+ return FinalMetadata ( discr) ;
1481
1481
}
1482
1482
1483
1483
let ( enum_type_size, enum_type_align) = layout. size_and_align ( ) ;
0 commit comments