type_: Ty<'tcx>) -> UniqueTypeId {
// Let's see if we already have something in the cache
if let Some(unique_type_id) = self.type_to_unique_id.get(&type_).cloned() {
- return unique_type_id
+ return unique_type_id;
}
// if not, generate one
.borrow()
.find_metadata_for_unique_id($unique_type_id)
{
- return MetadataCreationResult::new(metadata, true)
+ return MetadataCreationResult::new(metadata, true);
}
)
}
.borrow()
.find_metadata_for_unique_id(unique_type_id)
{
- return Err(metadata)
+ return Err(metadata);
}
Ok(MetadataCreationResult::new(pointer_type_metadata(cx, t, pointee_metadata),
.borrow()
.find_metadata_for_unique_id(unique_type_id)
{
- return metadata
+ return metadata;
}
// This is actually a function pointer, so wrap it in pointer DI
};
if let (&layout::Abi::Scalar(_), Some(discr)) = (&layout.abi, discriminant_type_metadata) {
- return FinalMetadata(discr)
+ return FinalMetadata(discr);
}
let (enum_type_size, enum_type_align) = layout.size_and_align();
/// first real statement/expression of the function is codegened.
pub fn start_emitting_source_locations(dbg_context: &FunctionDebugContext<'ll>) {
if let FunctionDebugContext::RegularContext(ref data) = *dbg_context {
- data.source_locations_enabled.set(true)
+ data.source_locations_enabled.set(true);
}
}