Skip to content

Commit

Permalink
Rollup merge of #105854 - matthiaskrgr:rmclone, r=compiler-errors
Browse files Browse the repository at this point in the history
remove redundant clone
  • Loading branch information
matthiaskrgr authored Dec 18, 2022
2 parents c16b969 + 1ade254 commit 08ecb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_builtin_macros/src/global_allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn expand(
(item, true, ecx.with_def_site_ctxt(ty.span))
} else {
ecx.sess.parse_sess.span_diagnostic.span_err(item.span(), "allocators must be statics");
return vec![orig_item.clone()]
return vec![orig_item];
};

// Generate a bunch of new items using the AllocFnFactory
Expand Down

0 comments on commit 08ecb91

Please sign in to comment.