We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 647052f commit 0c3e01dCopy full SHA for 0c3e01d
compiler/rustc_middle/src/ty/layout.rs
@@ -2767,6 +2767,8 @@ impl<'tcx> ty::Instance<'tcx> {
2767
// (i.e. due to being inside a projection that got normalized, see
2768
// `src/test/ui/polymorphization/normalized_sig_types.rs`), and codegen not keeping
2769
// track of a polymorphization `ParamEnv` to allow normalizing later.
2770
+ //
2771
+ // We normalize the `fn_sig` again after substituting at a later point.
2772
let mut sig = match *ty.kind() {
2773
ty::FnDef(def_id, substs) => tcx
2774
.bound_fn_sig(def_id)
0 commit comments