We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c16b969 + 1ade254 commit 08ecb91Copy full SHA for 08ecb91
compiler/rustc_builtin_macros/src/global_allocator.rs
@@ -35,7 +35,7 @@ pub fn expand(
35
(item, true, ecx.with_def_site_ctxt(ty.span))
36
} else {
37
ecx.sess.parse_sess.span_diagnostic.span_err(item.span(), "allocators must be statics");
38
- return vec![orig_item.clone()]
+ return vec![orig_item];
39
};
40
41
// Generate a bunch of new items using the AllocFnFactory
0 commit comments