Skip to content

Commit 24b74b2

Browse files
committed
end return statements and void expressions with a semicolon
1 parent fa81576 commit 24b74b2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/librustc_codegen_llvm/debuginfo/metadata.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl TypeMap<'ll, 'tcx> {
164164
type_: Ty<'tcx>) -> UniqueTypeId {
165165
// Let's see if we already have something in the cache
166166
if let Some(unique_type_id) = self.type_to_unique_id.get(&type_).cloned() {
167-
return unique_type_id
167+
return unique_type_id;
168168
}
169169
// if not, generate one
170170

@@ -290,7 +290,7 @@ macro_rules! return_if_metadata_created_in_meantime {
290290
.borrow()
291291
.find_metadata_for_unique_id($unique_type_id)
292292
{
293-
return MetadataCreationResult::new(metadata, true)
293+
return MetadataCreationResult::new(metadata, true);
294294
}
295295
)
296296
}
@@ -552,7 +552,7 @@ pub fn type_metadata(
552552
.borrow()
553553
.find_metadata_for_unique_id(unique_type_id)
554554
{
555-
return Err(metadata)
555+
return Err(metadata);
556556
}
557557

558558
Ok(MetadataCreationResult::new(pointer_type_metadata(cx, t, pointee_metadata),
@@ -612,7 +612,7 @@ pub fn type_metadata(
612612
.borrow()
613613
.find_metadata_for_unique_id(unique_type_id)
614614
{
615-
return metadata
615+
return metadata;
616616
}
617617

618618
// This is actually a function pointer, so wrap it in pointer DI
@@ -1477,7 +1477,7 @@ fn prepare_enum_metadata(
14771477
};
14781478

14791479
if let (&layout::Abi::Scalar(_), Some(discr)) = (&layout.abi, discriminant_type_metadata) {
1480-
return FinalMetadata(discr)
1480+
return FinalMetadata(discr);
14811481
}
14821482

14831483
let (enum_type_size, enum_type_align) = layout.size_and_align();

src/librustc_codegen_llvm/debuginfo/source_loc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub fn set_source_location(
5757
/// first real statement/expression of the function is codegened.
5858
pub fn start_emitting_source_locations(dbg_context: &FunctionDebugContext<'ll>) {
5959
if let FunctionDebugContext::RegularContext(ref data) = *dbg_context {
60-
data.source_locations_enabled.set(true)
60+
data.source_locations_enabled.set(true);
6161
}
6262
}
6363

0 commit comments

Comments
 (0)