File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
compiler/rustc_codegen_llvm/src/debuginfo Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ impl TypeMap<'ll, 'tcx> {
208
208
fn register_unique_id_with_type_name (
209
209
& mut self ,
210
210
unique_type_id : UniqueTypeId ,
211
- type_name : String
211
+ type_name : String ,
212
212
) {
213
213
if self . unique_id_to_type_name . insert ( unique_type_id, type_name) . is_some ( ) {
214
214
bug ! (
@@ -395,23 +395,16 @@ macro_rules! return_if_metadata_created_in_meantime {
395
395
} ;
396
396
}
397
397
398
- fn check_type_name_cache (
399
- cx : & CodegenCx < ' ll , ' tcx > ,
400
- ty : Ty < ' tcx > ,
401
- qualified : bool ,
402
- ) -> String {
398
+ fn check_type_name_cache ( cx : & CodegenCx < ' ll , ' tcx > , ty : Ty < ' tcx > , qualified : bool ) -> String {
403
399
let mut type_map = debug_context ( cx) . type_map . borrow_mut ( ) ;
404
400
let unique_type_id = type_map. get_unique_type_id_of_type ( cx, ty) ;
405
401
match type_map. find_type_name_for_unique_id ( unique_type_id) {
406
- Some ( type_name) => { type_name } ,
402
+ Some ( type_name) => type_name,
407
403
None => {
408
404
let type_name = compute_debuginfo_type_name ( cx. tcx , ty, qualified) ;
409
- type_map. register_unique_id_with_type_name (
410
- unique_type_id,
411
- type_name. clone ( ) ,
412
- ) ;
405
+ type_map. register_unique_id_with_type_name ( unique_type_id, type_name. clone ( ) ) ;
413
406
type_name
414
- } ,
407
+ }
415
408
}
416
409
}
417
410
You can’t perform that action at this time.
0 commit comments