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
|
@ -292,6 +292,8 @@ pub enum ObligationCauseCode<'tcx> {
|
|||
SizedArgumentType(Option<hir::HirId>),
|
||||
/// Return type must be `Sized`.
|
||||
SizedReturnType,
|
||||
/// Return type of a call expression must be `Sized`.
|
||||
SizedCallReturnType,
|
||||
/// Yield type must be `Sized`.
|
||||
SizedYieldType,
|
||||
/// Inline asm operand type must be `Sized`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue