]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/lint/context.rs
allow customising ty::TraitRef's printing behavior
[rust.git] / src / librustc / lint / context.rs
index 2f865f1f8b50148770eef8cd94c3ae7963a6c895..05543f1d2ef7339e3e80adf8d5ee9e89eec64360 100644 (file)
@@ -800,8 +800,13 @@ fn path_append_impl(
                 // This shouldn't ever be needed, but just in case:
                 path.push(match trait_ref {
                     Some(trait_ref) => {
-                        Symbol::intern(&format!("<impl {} for {}>", trait_ref,
-                                                    self_ty))
+                        Symbol::intern(
+                            &format!(
+                                "<impl {} for {}>",
+                                trait_ref.print_only_trait_path(),
+                                self_ty
+                            )
+                        )
                     },
                     None => Symbol::intern(&format!("<impl {}>", self_ty)),
                 });