mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Make assoc_resolutions always have a Substitution
This commit is contained in:
parent
a3ea20a142
commit
d3cb032f7e
4 changed files with 16 additions and 26 deletions
|
@ -356,11 +356,12 @@ pub fn eval_const(
|
|||
hir_def::AssocItemId::FunctionId(_) => {
|
||||
Err(ConstEvalError::NotSupported("assoc function"))
|
||||
}
|
||||
// FIXME use actual impl for trait assoc const
|
||||
hir_def::AssocItemId::ConstId(c) => ctx.db.const_eval(c),
|
||||
hir_def::AssocItemId::TypeAliasId(_) => {
|
||||
Err(ConstEvalError::NotSupported("assoc type alias"))
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
match pr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue