]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/typeck/check/method.rs
std: Remove format_strbuf!()
[rust.git] / src / librustc / middle / typeck / check / method.rs
index 6b3d026e0e515bd79fb6cc35b8a8a53dc4488711..ec2fa0dab5512865918595aa6a9b630a73cbae3b 100644 (file)
@@ -1510,12 +1510,12 @@ fn bug(&self, s: &str) -> ! {
 
 impl Repr for Candidate {
     fn repr(&self, tcx: &ty::ctxt) -> String {
-        format_strbuf!("Candidate(rcvr_ty={}, rcvr_substs={}, method_ty={}, \
-                        origin={:?})",
-                       self.rcvr_match_condition.repr(tcx),
-                       self.rcvr_substs.repr(tcx),
-                       self.method_ty.repr(tcx),
-                       self.origin)
+        format!("Candidate(rcvr_ty={}, rcvr_substs={}, method_ty={}, \
+                 origin={:?})",
+                self.rcvr_match_condition.repr(tcx),
+                self.rcvr_substs.repr(tcx),
+                self.method_ty.repr(tcx),
+                self.origin)
     }
 }
 
@@ -1523,10 +1523,10 @@ impl Repr for RcvrMatchCondition {
     fn repr(&self, tcx: &ty::ctxt) -> String {
         match *self {
             RcvrMatchesIfObject(d) => {
-                format_strbuf!("RcvrMatchesIfObject({})", d.repr(tcx))
+                format!("RcvrMatchesIfObject({})", d.repr(tcx))
             }
             RcvrMatchesIfSubtype(t) => {
-                format_strbuf!("RcvrMatchesIfSubtype({})", t.repr(tcx))
+                format!("RcvrMatchesIfSubtype({})", t.repr(tcx))
             }
         }
     }