aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_expand/src/db.rs')
-rw-r--r--crates/hir_expand/src/db.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs
index a9099eb22..3deac1711 100644
--- a/crates/hir_expand/src/db.rs
+++ b/crates/hir_expand/src/db.rs
@@ -242,7 +242,7 @@ fn macro_expand_with_arg(
242 Some(it) => it, 242 Some(it) => it,
243 None => return MacroResult::error("Fail to find macro definition".into()), 243 None => return MacroResult::error("Fail to find macro definition".into()),
244 }; 244 };
245 let ExpandResult(tt, err) = macro_rules.0.expand(db, lazy_id, &macro_arg.0); 245 let ExpandResult { value: tt, err } = macro_rules.0.expand(db, lazy_id, &macro_arg.0);
246 // Set a hard limit for the expanded tt 246 // Set a hard limit for the expanded tt
247 let count = tt.count(); 247 let count = tt.count();
248 if count > 262144 { 248 if count > 262144 {