initial revert
This commit is contained in:
parent
b0ec3e09a9
commit
71bbb603f4
127 changed files with 540 additions and 1050 deletions
|
@ -303,9 +303,7 @@ fn characteristic_def_id_of_mono_item<'tcx>(
|
|||
|
||||
// When polymorphization is enabled, methods which do not depend on their generic
|
||||
// parameters, but the self-type of their impl block do will fail to normalize.
|
||||
if !tcx.sess.opts.debugging_opts.polymorphize
|
||||
|| !instance.definitely_needs_subst(tcx)
|
||||
{
|
||||
if !tcx.sess.opts.debugging_opts.polymorphize || !instance.needs_subst() {
|
||||
// This is a method within an impl, find out what the self-type is:
|
||||
let impl_self_ty = tcx.subst_and_normalize_erasing_regions(
|
||||
instance.substs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue