about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/concat_bytes.rs
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-12-13 02:06:24 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-12-13 02:06:24 +0900
commitee40a67cd9283a9e8b0de87926581456252c6c9f (patch)
tree61de3c03f9e0643c40ddc028094bf1aeccd58792 /compiler/rustc_builtin_macros/src/concat_bytes.rs
parentf34356eaceeb5540f4e2e20abc1d824daf395806 (diff)
downloadrust-ee40a67cd9283a9e8b0de87926581456252c6c9f.tar.gz
rust-ee40a67cd9283a9e8b0de87926581456252c6c9f.zip
remove unnecessary uses of `clone`
Diffstat (limited to 'compiler/rustc_builtin_macros/src/concat_bytes.rs')
-rw-r--r--compiler/rustc_builtin_macros/src/concat_bytes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/concat_bytes.rs b/compiler/rustc_builtin_macros/src/concat_bytes.rs
index 70ce5a6c419..392bd93ff84 100644
--- a/compiler/rustc_builtin_macros/src/concat_bytes.rs
+++ b/compiler/rustc_builtin_macros/src/concat_bytes.rs
@@ -196,7 +196,7 @@ pub fn expand_concat_bytes(
         }
     }
     if !missing_literals.is_empty() {
-        let mut err = cx.struct_span_err(missing_literals.clone(), "expected a byte literal");
+        let mut err = cx.struct_span_err(missing_literals, "expected a byte literal");
         err.note("only byte literals (like `b\"foo\"`, `b's'`, and `[3, 4, 5]`) can be passed to `concat_bytes!()`");
         err.emit();
         return base::MacEager::expr(DummyResult::raw_expr(sp, true));