]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/typeck/check/method.rs
core: rename strbuf::StrBuf to string::String
[rust.git] / src / librustc / middle / typeck / check / method.rs
index d512de670bc80a79f1364a95719bbf1e76dcf96d..6b3d026e0e515bd79fb6cc35b8a8a53dc4488711 100644 (file)
@@ -1495,11 +1495,11 @@ fn tcx(&self) -> &'a ty::ctxt {
         self.fcx.tcx()
     }
 
-    fn ty_to_str(&self, t: ty::t) -> StrBuf {
+    fn ty_to_str(&self, t: ty::t) -> String {
         self.fcx.infcx().ty_to_str(t)
     }
 
-    fn did_to_str(&self, did: DefId) -> StrBuf {
+    fn did_to_str(&self, did: DefId) -> String {
         ty::item_path_str(self.tcx(), did)
     }
 
@@ -1509,7 +1509,7 @@ fn bug(&self, s: &str) -> ! {
 }
 
 impl Repr for Candidate {
-    fn repr(&self, tcx: &ty::ctxt) -> StrBuf {
+    fn repr(&self, tcx: &ty::ctxt) -> String {
         format_strbuf!("Candidate(rcvr_ty={}, rcvr_substs={}, method_ty={}, \
                         origin={:?})",
                        self.rcvr_match_condition.repr(tcx),
@@ -1520,7 +1520,7 @@ fn repr(&self, tcx: &ty::ctxt) -> StrBuf {
 }
 
 impl Repr for RcvrMatchCondition {
-    fn repr(&self, tcx: &ty::ctxt) -> StrBuf {
+    fn repr(&self, tcx: &ty::ctxt) -> String {
         match *self {
             RcvrMatchesIfObject(d) => {
                 format_strbuf!("RcvrMatchesIfObject({})", d.repr(tcx))