about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/test.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2023-05-04 16:08:33 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2023-07-28 22:21:33 +0200
commitafd009a8d8a8fea07cfee279817c75427b707778 (patch)
tree86ab1a1c08087cbff8615617bc350447b8ed2e65 /compiler/rustc_builtin_macros/src/test.rs
parentb6dd153fbcc06b3bc936aca800af4b8376c229e4 (diff)
downloadrust-afd009a8d8a8fea07cfee279817c75427b707778.tar.gz
rust-afd009a8d8a8fea07cfee279817c75427b707778.zip
Parse generic const items
Diffstat (limited to 'compiler/rustc_builtin_macros/src/test.rs')
-rw-r--r--compiler/rustc_builtin_macros/src/test.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_builtin_macros/src/test.rs b/compiler/rustc_builtin_macros/src/test.rs
index 6bc4f6fc1fc..1580a6f6dd3 100644
--- a/compiler/rustc_builtin_macros/src/test.rs
+++ b/compiler/rustc_builtin_macros/src/test.rs
@@ -255,6 +255,7 @@ pub fn expand_test_or_bench(
             ast::ItemKind::Const(
                 ast::ConstItem {
                     defaultness: ast::Defaultness::Final,
+                    generics: ast::Generics::default(),
                     ty: cx.ty(sp, ast::TyKind::Path(None, test_path("TestDescAndFn"))),
                     // test::TestDescAndFn {
                     expr: Some(