Skip to content

Commit 68f5a43

Browse files
committed
---
yaml --- r: 214188 b: refs/heads/auto c: af7daa0 h: refs/heads/master v: v3
1 parent 9cf0ffc commit 68f5a43

File tree

4 files changed

+4
-29
lines changed

4 files changed

+4
-29
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: b510ea1487286123c00f425b368a8328637ac947
11+
refs/heads/auto: af7daa0daff91f8a58708f2d98f94d49acc28c6a
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/librustc/util/ppaux.rs

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub trait Repr {
4545
}
4646

4747
/// Produces a string suitable for showing to the user.
48-
pub trait UserString: Repr {
48+
pub trait UserString {
4949
fn user_string(&self) -> String;
5050
}
5151

@@ -296,14 +296,6 @@ impl<'a, T: ?Sized +UserString> UserString for &'a T {
296296
}
297297
}
298298

299-
impl<T:UserString> UserString for Vec<T> {
300-
fn user_string(&self) -> String {
301-
let strs: Vec<String> =
302-
self.iter().map(|t| t.user_string()).collect();
303-
strs.connect(", ")
304-
}
305-
}
306-
307299
impl Repr for def::Def {
308300
fn repr(&self) -> String {
309301
format!("{:?}", *self)
@@ -475,17 +467,6 @@ impl<'tcx> Repr for ty::TraitDef<'tcx> {
475467
}
476468
}
477469

478-
impl Repr for ast::TraitItem {
479-
fn repr(&self) -> String {
480-
let kind = match self.node {
481-
ast::ConstTraitItem(..) => "ConstTraitItem",
482-
ast::MethodTraitItem(..) => "MethodTraitItem",
483-
ast::TypeTraitItem(..) => "TypeTraitItem",
484-
};
485-
format!("{}({}, id={})", kind, self.ident, self.id)
486-
}
487-
}
488-
489470
impl Repr for ast::Expr {
490471
fn repr(&self) -> String {
491472
format!("expr({}: {})", self.id, pprust::expr_to_string(self))
@@ -794,12 +775,6 @@ impl UserString for ast::Name {
794775
}
795776
}
796777

797-
impl Repr for ast::Ident {
798-
fn repr(&self) -> String {
799-
token::get_ident(*self).to_string()
800-
}
801-
}
802-
803778
impl Repr for ast::ExplicitSelf_ {
804779
fn repr(&self) -> String {
805780
format!("{:?}", *self)

branches/auto/src/librustc_trans/trans/meth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub fn trans_impl(ccx: &CrateContext,
6262
let _icx = push_ctxt("meth::trans_impl");
6363
let tcx = ccx.tcx();
6464

65-
debug!("trans_impl(name={}, id={})", name.repr(), id);
65+
debug!("trans_impl(name={}, id={})", name, id);
6666

6767
let mut v = TransItemVisitor { ccx: ccx };
6868

branches/auto/src/librustc_typeck/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ fn convert_method<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
635635
let fty = ty::mk_bare_fn(ccx.tcx, Some(def_id),
636636
ccx.tcx.mk_bare_fn(ty_method.fty.clone()));
637637
debug!("method {} (id {}) has type {}",
638-
ident.repr(), id, fty.repr());
638+
ident, id, fty.repr());
639639
ccx.tcx.tcache.borrow_mut().insert(def_id,TypeScheme {
640640
generics: ty_method.generics.clone(),
641641
ty: fty

0 commit comments

Comments
 (0)