]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/global_allocator.rs
Insert whitespace to avoid ident concatenation in suggestion
[rust.git] / compiler / rustc_builtin_macros / src / global_allocator.rs
index 41531580c1987ca92c0a2e76c10dc993c1c7e16a..f8761653bf5b7d80dde81339468a465eb1f0cfb3 100644 (file)
@@ -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