mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-02-13 18:37:30 +00:00
900: Add new trait ast::TypeAscriptionOwner r=vipentti a=vipentti This trait should be implemented for nodes which have an ascribed type, e.g. thing : Type. Such as let, const, static, param, named struct fields. In addition, we update some places where previously we used node + node.type_ref() with `TypeAscriptionOwner` in the trait bounds. Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>