]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_expand/src/proc_macro.rs
Rollup merge of #104394 - oli-obk:suggest_method_call, r=lcnr
[rust.git] / compiler / rustc_expand / src / proc_macro.rs
index b34ab15efe89e13eb3812e1fc611a60f1fea0797..e9a69192068941167386c97429d4ec96bbd217b1 100644 (file)
@@ -112,6 +112,7 @@ fn expand(
         span: Span,
         _meta_item: &ast::MetaItem,
         item: Annotatable,
+        _is_derive_const: bool,
     ) -> ExpandResult<Vec<Annotatable>, Annotatable> {
         // We need special handling for statement items
         // (e.g. `fn foo() { #[derive(Debug)] struct Bar; }`)
@@ -173,7 +174,7 @@ fn expand(
 
         // fail if there have been errors emitted
         if ecx.sess.parse_sess.span_diagnostic.err_count() > error_count_before {
-            ecx.struct_span_err(span, "proc-macro derive produced unparsable tokens").emit();
+            ecx.struct_span_err(span, "proc-macro derive produced unparseable tokens").emit();
         }
 
         ExpandResult::Ready(items)