aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-11-26 15:04:23 +0000
committerJonas Schievink <[email protected]>2020-11-26 15:04:23 +0000
commitc784c8ec766edf4c7ab558f71d3f87e6c7c870b9 (patch)
tree58b0150a27a6b35000d745807461100786952e93 /crates/hir_expand
parent0bcd8147ec08db2a94dd2a3068a527ba6c47a4cd (diff)
Use named fields in `ExpandResult`
Diffstat (limited to 'crates/hir_expand')
-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 {