Deduplicate more sized errors on call exprs
Change the implicit `Sized` `Obligation` `Span` for call expressions to include the whole expression. This aids the existing deduplication machinery to reduce the number of errors caused by a single unsized expression.
This commit is contained in:
parent
0b7730105f
commit
a9841936fe
87 changed files with 289 additions and 342 deletions
|
@ -2,7 +2,7 @@ error[E0284]: type annotations needed
|
|||
--> $DIR/parent_generics_of_encoding_impl_trait.rs:9:5
|
||||
|
|
||||
LL | generics_of_parent_impl_trait::foo([()]);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `foo`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `foo`
|
||||
|
|
||||
note: required by a bound in `foo`
|
||||
--> $DIR/auxiliary/generics_of_parent_impl_trait.rs:6:48
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue