Rollup merge of #113319 - lcnr:type-param-def-def-id, r=compiler-errors
`TypeParameterDefinition` always require a `DefId` the `None` case never actually reaches diagnostics so it feels better for diagnostics to be able to rely on the `DefId` being there, cc #113310
This commit is contained in:
commit
5c7a7d9ed4
5 changed files with 8 additions and 8 deletions
|
@ -1110,7 +1110,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
TypeVariableOrigin {
|
||||
kind: TypeVariableOriginKind::TypeParameterDefinition(
|
||||
param.name,
|
||||
Some(param.def_id),
|
||||
param.def_id,
|
||||
),
|
||||
span,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue