mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
internal: Give ConstBlockId and InTypeConstId named Location types
This commit is contained in:
parent
6b3659d38f
commit
abe249559d
12 changed files with 90 additions and 70 deletions
|
@ -173,8 +173,8 @@ impl<'a> InferenceContext<'a> {
|
|||
}
|
||||
Expr::Const(id) => {
|
||||
self.with_breakable_ctx(BreakableKind::Border, None, None, |this| {
|
||||
let (_, expr) = this.db.lookup_intern_anonymous_const(*id);
|
||||
this.infer_expr(expr, expected)
|
||||
let loc = this.db.lookup_intern_anonymous_const(*id);
|
||||
this.infer_expr(loc.root, expected)
|
||||
})
|
||||
.1
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue