]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_builtin_macros/test.rs
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / librustc_builtin_macros / test.rs
index bc194a3eec4c34684cb085d89307c97662ffae9f..39009ca27f102d46cc050ae5b162f77e8679e6a7 100644 (file)
@@ -86,7 +86,7 @@ pub fn expand_test_or_bench(
             .raise();
     };
 
-    if let ast::ItemKind::Mac(_) = item.kind {
+    if let ast::ItemKind::MacCall(_) = item.kind {
         cx.parse_sess.span_diagnostic.span_warn(
             item.span,
             "`#[test]` attribute should not be used on macros. Use `#[cfg(test)]` instead.",