Skip to content

Commit 0c3e01d

Browse files
committed
extend polymorphization hack comment.
1 parent 647052f commit 0c3e01d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/ty/layout.rs

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

0 commit comments

Comments
 (0)