File tree 1 file changed +4
-0
lines changed
compiler/rustc_hir_analysis/src/hir_ty_lowering
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -444,6 +444,8 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
444
444
445
445
if let Err ( incorrect) = self . incorrect_args {
446
446
if incorrect. invalid_args . contains ( & ( param. index as usize ) ) {
447
+ // FIXME: use `param.to_error` once `provided_kind` is supplied a list of
448
+ // all previous generic args.
447
449
return match param. kind {
448
450
GenericParamDefKind :: Lifetime => {
449
451
ty:: Region :: new_error ( tcx, incorrect. reported ) . into ( )
@@ -531,6 +533,8 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
531
533
532
534
if let Err ( incorrect) = self . incorrect_args {
533
535
if incorrect. invalid_args . contains ( & ( param. index as usize ) ) {
536
+ // FIXME: use `param.to_error` once `inferred_kind` is supplied a list of
537
+ // all previous generic args.
534
538
return match param. kind {
535
539
GenericParamDefKind :: Lifetime => {
536
540
ty:: Region :: new_error ( tcx, incorrect. reported ) . into ( )
You can’t perform that action at this time.
0 commit comments