Track HirId instead of Span in ObligationCauseCode::SizedArgumentType
This gets us more accurate suggestions.
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user