]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/concat_bytes.rs
Insert whitespace to avoid ident concatenation in suggestion
[rust.git] / compiler / rustc_builtin_macros / src / concat_bytes.rs
index 4c424ea430bdf1f0b01872db872944d88b8aea36..4f1a7d709ff8c276900c255977d478fa9a3bec81 100644 (file)
@@ -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));