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:
@@ -1110,7 +1110,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
||||
TypeVariableOrigin {
|
||||
kind: TypeVariableOriginKind::TypeParameterDefinition(
|
||||
param.name,
|
||||
Some(param.def_id),
|
||||
param.def_id,
|
||||
),
|
||||
span,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user