Unnamed repository; edit this file 'description' to name the repository.
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]>
bors[bot] 2021-08-30
parent 1636f61 · parent b22eb02 · commit cbae596
-rw-r--r--crates/hir_expand/src/db.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs
index e990d5fce6..af98084f4c 100644
--- a/crates/hir_expand/src/db.rs
+++ b/crates/hir_expand/src/db.rs
@@ -366,12 +366,12 @@ fn macro_expand(db: &dyn AstDatabase, id: MacroCallId) -> ExpandResult<Option<Ar
let macro_arg = match db.macro_arg(id) {
Some(it) => it,
- None => return ExpandResult::str_err("Fail to args in to tt::TokenTree".into()),
+ None => return ExpandResult::str_err("Failed to lower macro args to token tree".into()),
};
let macro_rules = match db.macro_def(loc.def) {
Some(it) => it,
- None => return ExpandResult::str_err("Fail to find macro definition".into()),
+ None => return ExpandResult::str_err("Failed to find macro definition".into()),
};
let ExpandResult { value: tt, err } = macro_rules.expand(db, id, &macro_arg.0);
// Set a hard limit for the expanded tt