mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Implement const block inference
This commit is contained in:
parent
0a780c0ab3
commit
a142beaf01
5 changed files with 25 additions and 6 deletions
|
@ -155,7 +155,7 @@ impl<'a> InferenceContext<'a> {
|
|||
}
|
||||
None => self.infer_block(statements, *tail, expected),
|
||||
},
|
||||
Expr::Unsafe { body } => self.infer_expr(*body, expected),
|
||||
Expr::Unsafe { body } | Expr::Const { body } => self.infer_expr(*body, expected),
|
||||
Expr::TryBlock { body } => {
|
||||
let _inner = self.infer_expr(*body, expected);
|
||||
// FIXME should be std::result::Result<{inner}, _>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue