It's not about types or consts, but the lack of regions
This commit is contained in:
@@ -301,7 +301,7 @@ impl<'tcx> 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_non_region_param()) {
|
||||
self = self.path_generic_args(
|
||||
|this| {
|
||||
this.path_append_ns(
|
||||
|
||||
Reference in New Issue
Block a user