Track HirId
instead of Span
in ObligationCauseCode::SizedArgumentType
This gets us more accurate suggestions.
This commit is contained in:
parent
8551cab7b7
commit
79bef72fd5
8 changed files with 96 additions and 82 deletions
|
@ -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`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue