@@ -203,7 +203,7 @@ impl TypeMap<'ll, 'tcx> {
203
203
let key = self . unique_id_interner . intern ( & unique_type_id) ;
204
204
self . type_to_unique_id . insert ( type_, UniqueTypeId ( key) ) ;
205
205
206
- return UniqueTypeId ( key) ;
206
+ UniqueTypeId ( key)
207
207
}
208
208
209
209
/// Gets the `UniqueTypeId` for an enum variant. Enum variants are not really
@@ -314,7 +314,7 @@ impl RecursiveTypeDescription<'ll, 'tcx> {
314
314
member_holding_stub,
315
315
member_descriptions,
316
316
) ;
317
- return MetadataCreationResult :: new ( metadata_stub, true ) ;
317
+ MetadataCreationResult :: new ( metadata_stub, true )
318
318
}
319
319
}
320
320
}
@@ -364,7 +364,7 @@ fn fixed_vec_metadata(
364
364
)
365
365
} ;
366
366
367
- return MetadataCreationResult :: new ( metadata, false ) ;
367
+ MetadataCreationResult :: new ( metadata, false )
368
368
}
369
369
370
370
fn vec_slice_metadata (
@@ -445,7 +445,7 @@ fn subroutine_type_metadata(
445
445
446
446
return_if_metadata_created_in_meantime ! ( cx, unique_type_id) ;
447
447
448
- return MetadataCreationResult :: new (
448
+ MetadataCreationResult :: new (
449
449
unsafe {
450
450
llvm:: LLVMRustDIBuilderCreateSubroutineType (
451
451
DIB ( cx) ,
@@ -454,7 +454,7 @@ fn subroutine_type_metadata(
454
454
)
455
455
} ,
456
456
false ,
457
- ) ;
457
+ )
458
458
}
459
459
460
460
// FIXME(1563): This is all a bit of a hack because 'trait pointer' is an ill-
@@ -781,7 +781,7 @@ fn file_metadata_raw(
781
781
let key = ( file_name, directory) ;
782
782
783
783
match debug_context ( cx) . created_files . borrow_mut ( ) . entry ( key) {
784
- Entry :: Occupied ( o) => return o. get ( ) ,
784
+ Entry :: Occupied ( o) => o. get ( ) ,
785
785
Entry :: Vacant ( v) => {
786
786
let ( file_name, directory) = v. key ( ) ;
787
787
debug ! ( "file_metadata: file_name: {:?}, directory: {:?}" , file_name, directory) ;
@@ -831,7 +831,7 @@ fn basic_type_metadata(cx: &CodegenCx<'ll, 'tcx>, t: Ty<'tcx>) -> &'ll DIType {
831
831
)
832
832
} ;
833
833
834
- return ty_metadata;
834
+ ty_metadata
835
835
}
836
836
837
837
fn foreign_type_metadata (
@@ -1273,11 +1273,11 @@ fn prepare_union_metadata(
1273
1273
fn use_enum_fallback ( cx : & CodegenCx < ' _ , ' _ > ) -> bool {
1274
1274
// On MSVC we have to use the fallback mode, because LLVM doesn't
1275
1275
// lower variant parts to PDB.
1276
- return cx. sess ( ) . target . target . options . is_like_msvc
1276
+ cx. sess ( ) . target . target . options . is_like_msvc
1277
1277
// LLVM version 7 did not release with an important bug fix;
1278
1278
// but the required patch is in the LLVM 8. Rust LLVM reports
1279
1279
// 8 as well.
1280
- || llvm_util:: get_major_version ( ) < 8 ;
1280
+ || llvm_util:: get_major_version ( ) < 8
1281
1281
}
1282
1282
1283
1283
// FIXME(eddyb) maybe precompute this? Right now it's computed once
@@ -2075,7 +2075,7 @@ fn prepare_enum_metadata(
2075
2075
}
2076
2076
} ;
2077
2077
2078
- return create_and_register_recursive_type_forward_declaration (
2078
+ create_and_register_recursive_type_forward_declaration (
2079
2079
cx,
2080
2080
enum_type,
2081
2081
unique_type_id,
@@ -2088,7 +2088,7 @@ fn prepare_enum_metadata(
2088
2088
containing_scope,
2089
2089
span,
2090
2090
} ) ,
2091
- ) ;
2091
+ )
2092
2092
}
2093
2093
2094
2094
/// Creates debug information for a composite type, that is, anything that
0 commit comments