Skip to content

Commit e7c11a7

Browse files
committed
Fix ide-diagnostics test fixture
1 parent c0e4026 commit e7c11a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/ide-diagnostics/src/handlers/macro_error.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ struct S;
157157
fn macro_diag_builtin() {
158158
check_diagnostics(
159159
r#"
160+
//- minicore: fmt
160161
#[rustc_builtin_macro]
161162
macro_rules! env {}
162163
@@ -166,9 +167,6 @@ macro_rules! include {}
166167
#[rustc_builtin_macro]
167168
macro_rules! compile_error {}
168169
169-
#[rustc_builtin_macro]
170-
macro_rules! format_args { () => {} }
171-
172170
fn main() {
173171
// Test a handful of built-in (eager) macros:
174172
@@ -189,7 +187,7 @@ fn main() {
189187
// Lazy:
190188
191189
format_args!();
192-
//^^^^^^^^^^^ error: no rule matches input tokens
190+
//^^^^^^^^^^^ error: Syntax Error in Expansion: expected expression
193191
}
194192
"#,
195193
);

0 commit comments

Comments
 (0)