]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_symbol_mangling/src/v0.rs
Rollup merge of #102670 - lyming2007:issue-101866-fix, r=compiler-errors
[rust.git] / compiler / rustc_symbol_mangling / src / v0.rs
index 18e7e74741af855bc118b4fbb5304868a9c4adbe..ecfe6861e84cb5a6f4d57745765321954af513f5 100644 (file)
@@ -301,7 +301,7 @@ fn print_impl_path(
 
         // 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(