Skip to content

Commit c187f71

Browse files
committed
Fix subst error for consts in astconv
1 parent 0439efb commit c187f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_typeck/astconv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
553553
tcx.intern_substs(&substs)
554554
}
555555

556-
/// Given the type/region arguments provided to some path (along with
556+
/// Given the type/lifetime/const arguments provided to some path (along with
557557
/// an implicit `Self`, if this is a trait reference) returns the complete
558558
/// set of substitutions. This may involve applying defaulted type parameters.
559559
///
@@ -678,7 +678,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
678678
GenericParamDefKind::Const => {
679679
// FIXME(const_generics:defaults)
680680
// We've already errored above about the mismatch.
681-
tcx.types.err.into()
681+
tcx.consts.err.into()
682682
}
683683
}
684684
},

0 commit comments

Comments
 (0)