internal: add implicit Sized bounds to type parameters.

This commit is contained in:
Dawer 2021-06-06 23:41:15 +05:00
parent 8a8431133e
commit 3981373b93
7 changed files with 99 additions and 21 deletions

View file

@ -93,7 +93,7 @@ impl HirDisplay for Function {
} else {
match &*data.ret_type {
TypeRef::ImplTrait(bounds) => match bounds[0].as_ref() {
TypeBound::Path(path) => {
TypeBound::Path(path, _) => {
path.segments().iter().last().unwrap().args_and_bindings.unwrap().bindings
[0]
.type_ref