update TypeFlags to deal with missing ct substs
This commit is contained in:
@@ -277,7 +277,8 @@ impl Printer<'tcx> for &mut SymbolMangler<'tcx> {
|
||||
|
||||
// Encode impl generic params if the substitutions contain parameters (implying
|
||||
// polymorphization is enabled) and this isn't an inherent impl.
|
||||
if impl_trait_ref.is_some() && substs.iter().any(|a| a.has_param_types_or_consts()) {
|
||||
if impl_trait_ref.is_some() && substs.iter().any(|a| a.has_param_types_or_consts(self.tcx))
|
||||
{
|
||||
self = self.path_generic_args(
|
||||
|this| {
|
||||
this.path_append_ns(
|
||||
|
||||
Reference in New Issue
Block a user