Skip to content

Commit b537c45

Browse files
committed
Apply suggestions from fmt output
1 parent dbe7a4e commit b537c45

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

compiler/rustc_builtin_macros/src/global_allocator.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ pub(crate) fn expand(
3939
};
4040

4141
// Forbid `#[thread_local]` attributes on the item
42-
if let Some(attr) = item.attrs.iter().find(|x| { x.has_name(sym::thread_local) }) {
43-
ecx.dcx().emit_err(errors::AllocCannotThreadLocal {
44-
span: item.span,
45-
attr: attr.span
46-
});
42+
if let Some(attr) = item.attrs.iter().find(|x| x.has_name(sym::thread_local)) {
43+
ecx.dcx().emit_err(errors::AllocCannotThreadLocal { span: item.span, attr: attr.span });
4744
return vec![orig_item];
4845
}
4946

0 commit comments

Comments
 (0)