Skip to content

Commit cbae596

Browse files
bors[bot]digama0
andauthored
Merge #10081
10081: Fix error message r=lnicola a=digama0 I'm not entirely sure if the message is still correct, it seems to have survived a number of refactors, but it is mangled english anyway. Co-authored-by: Mario Carneiro <[email protected]>
2 parents 1636f61 + b22eb02 commit cbae596

File tree

1 file changed

+2
-2
lines changed
  • crates/hir_expand/src

1 file changed

+2
-2
lines changed

crates/hir_expand/src/db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,12 @@ fn macro_expand(db: &dyn AstDatabase, id: MacroCallId) -> ExpandResult<Option<Ar
366366

367367
let macro_arg = match db.macro_arg(id) {
368368
Some(it) => it,
369-
None => return ExpandResult::str_err("Fail to args in to tt::TokenTree".into()),
369+
None => return ExpandResult::str_err("Failed to lower macro args to token tree".into()),
370370
};
371371

372372
let macro_rules = match db.macro_def(loc.def) {
373373
Some(it) => it,
374-
None => return ExpandResult::str_err("Fail to find macro definition".into()),
374+
None => return ExpandResult::str_err("Failed to find macro definition".into()),
375375
};
376376
let ExpandResult { value: tt, err } = macro_rules.expand(db, id, &macro_arg.0);
377377
// Set a hard limit for the expanded tt

0 commit comments

Comments
 (0)