We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d76a9d commit 1ade254Copy full SHA for 1ade254
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