extend polymorphization hack comment.

This commit is contained in:
lcnr 2022-09-19 11:44:29 +02:00
parent 647052fc04
commit 0c3e01d8f6

View File

@ -2767,6 +2767,8 @@ impl<'tcx> ty::Instance<'tcx> {
// (i.e. due to being inside a projection that got normalized, see
// `src/test/ui/polymorphization/normalized_sig_types.rs`), and codegen not keeping
// track of a polymorphization `ParamEnv` to allow normalizing later.
//
// We normalize the `fn_sig` again after substituting at a later point.
let mut sig = match *ty.kind() {
ty::FnDef(def_id, substs) => tcx
.bound_fn_sig(def_id)