mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Fix recursive macro statement expansion
This commit is contained in:
parent
59fdd7c84c
commit
8ce15b02de
7 changed files with 119 additions and 70 deletions
|
@ -767,6 +767,7 @@ impl<'a> InferenceContext<'a> {
|
|||
None => self.table.new_float_var(),
|
||||
},
|
||||
},
|
||||
Expr::MacroStmts { tail } => self.infer_expr(*tail, expected),
|
||||
};
|
||||
// use a new type variable if we got unknown here
|
||||
let ty = self.insert_type_vars_shallow(ty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue