Skip to content

Commit e90e8aa

Browse files
committed
codegen_llvm/misc: remove explicit returns
1 parent 8efd9dd commit e90e8aa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/librustc_codegen_llvm/debuginfo/metadata.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ fn composite_type_metadata(
15511551
composite_type_metadata,
15521552
member_descriptions);
15531553

1554-
return composite_type_metadata;
1554+
composite_type_metadata
15551555
}
15561556

15571557
fn set_members_of_composite_type(cx: &CodegenCx<'ll, '_>,
@@ -1639,7 +1639,7 @@ fn create_struct_stub(
16391639
unique_type_id.as_ptr())
16401640
};
16411641

1642-
return metadata_stub;
1642+
metadata_stub
16431643
}
16441644

16451645
fn create_union_stub(
@@ -1675,7 +1675,7 @@ fn create_union_stub(
16751675
unique_type_id.as_ptr())
16761676
};
16771677

1678-
return metadata_stub;
1678+
metadata_stub
16791679
}
16801680

16811681
/// Creates debug information for the given global variable.

src/librustc_codegen_llvm/debuginfo/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ pub fn create_function_debug_context(
371371
}
372372
}
373373

374-
return create_DIArray(DIB(cx), &signature[..]);
374+
create_DIArray(DIB(cx), &signature[..])
375375
}
376376

377377
fn get_template_parameters(
@@ -428,7 +428,7 @@ pub fn create_function_debug_context(
428428
vec![]
429429
};
430430

431-
return create_DIArray(DIB(cx), &template_params[..]);
431+
create_DIArray(DIB(cx), &template_params[..])
432432
}
433433

434434
fn get_parameter_names(cx: &CodegenCx,

0 commit comments

Comments
 (0)