mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
feat: resolve const for trait impls(close #13694)
This commit is contained in:
parent
a2beeb8dbb
commit
7012b50db5
6 changed files with 245 additions and 18 deletions
|
@ -351,6 +351,7 @@ pub fn eval_const(
|
|||
.infer
|
||||
.assoc_resolutions_for_expr(expr_id)
|
||||
.ok_or(ConstEvalError::SemanticError("unresolved assoc item"))?
|
||||
.0
|
||||
{
|
||||
hir_def::AssocItemId::FunctionId(_) => {
|
||||
Err(ConstEvalError::NotSupported("assoc function"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue