We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbe7a4e commit b537c45Copy full SHA for b537c45
1 file changed
compiler/rustc_builtin_macros/src/global_allocator.rs
@@ -39,11 +39,8 @@ pub(crate) fn expand(
39
};
40
41
// 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
- });
+ if let Some(attr) = item.attrs.iter().find(|x| x.has_name(sym::thread_local)) {
+ ecx.dcx().emit_err(errors::AllocCannotThreadLocal { span: item.span, attr: attr.span });
47
return vec![orig_item];
48
}
49
0 commit comments