1
Fork 0

Track HirId instead of Span in ObligationCauseCode::SizedArgumentType

This gets us more accurate suggestions.
This commit is contained in:
Esteban Küber 2023-12-20 19:13:24 +00:00
parent 8551cab7b7
commit 79bef72fd5
8 changed files with 96 additions and 82 deletions

View file

@ -289,7 +289,7 @@ pub enum ObligationCauseCode<'tcx> {
/// Type of each variable must be `Sized`.
VariableType(hir::HirId),
/// Argument type must be `Sized`.
SizedArgumentType(Option<Span>),
SizedArgumentType(Option<hir::HirId>),
/// Return type must be `Sized`.
SizedReturnType,
/// Yield type must be `Sized`.