mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +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
|
||||
// `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)
|
||||
|
Loading…
Reference in New Issue
Block a user