]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/util/ppaux.rs
Fix impl Trait Lifetime Handling
[rust.git] / src / librustc / util / ppaux.rs
index acb929981fbf2ce209f0404d13b2034e2cac2c4a..4b0cf018cb52495bcbc9d5d8083e9aacb673b393 100644 (file)
@@ -1015,6 +1015,10 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                 TyForeign(def_id) => parameterized(f, subst::Substs::empty(), def_id, &[]),
                 TyProjection(ref data) => data.print(f, cx),
                 TyAnon(def_id, substs) => {
+                    if cx.is_verbose {
+                        return write!(f, "TyAnon({:?}, {:?})", def_id, substs);
+                    }
+
                     ty::tls::with(|tcx| {
                         // Grab the "TraitA + TraitB" from `impl TraitA + TraitB`,
                         // by looking up the projections associated with the def_id.