mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 09:53:26 +00:00
extend polymorphization hack comment.
This commit is contained in:
parent
647052fc04
commit
0c3e01d8f6
@ -2767,6 +2767,8 @@ impl<'tcx> ty::Instance<'tcx> {
|
|||||||
// (i.e. due to being inside a projection that got normalized, see
|
// (i.e. due to being inside a projection that got normalized, see
|
||||||
// `src/test/ui/polymorphization/normalized_sig_types.rs`), and codegen not keeping
|
// `src/test/ui/polymorphization/normalized_sig_types.rs`), and codegen not keeping
|
||||||
// track of a polymorphization `ParamEnv` to allow normalizing later.
|
// 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() {
|
let mut sig = match *ty.kind() {
|
||||||
ty::FnDef(def_id, substs) => tcx
|
ty::FnDef(def_id, substs) => tcx
|
||||||
.bound_fn_sig(def_id)
|
.bound_fn_sig(def_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user