Skip to content

Commit 853d81e

Browse files
committed
---
yaml --- r: 156028 b: refs/heads/try2 c: 26e547a h: refs/heads/master v: v3
1 parent 8373d46 commit 853d81e

File tree

11 files changed

+28
-28
lines changed

11 files changed

+28
-28
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 38aca17c474321e4c260e36f173275a90d753397
8+
refs/heads/try2: 26e547af5d2d98c9e85770ac53217ad0f8b24999
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/crates.mk

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
TARGET_CRATES := libc std green native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
url log regex graphviz core rbml rlibc alloc debug rustrt \
54+
url log regex graphviz core rbml rlibc alloc rustrt \
5555
unicode
5656
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros \
5757
rustc_llvm rustc_back
@@ -63,20 +63,19 @@ DEPS_libc := core
6363
DEPS_rlibc := core
6464
DEPS_unicode := core
6565
DEPS_alloc := core libc native:jemalloc
66-
DEPS_debug := std
6766
DEPS_rustrt := alloc core libc collections native:rustrt_native
6867
DEPS_std := core libc rand alloc collections rustrt sync unicode \
6968
native:rust_builtin native:backtrace
7069
DEPS_graphviz := std
7170
DEPS_green := std native:context_switch
7271
DEPS_native := std
73-
DEPS_syntax := std term serialize log fmt_macros debug arena libc
72+
DEPS_syntax := std term serialize log fmt_macros arena libc
7473
DEPS_rustc := syntax flate arena serialize getopts rbml \
75-
time log graphviz debug rustc_llvm rustc_back
74+
time log graphviz rustc_llvm rustc_back
7675
DEPS_rustc_llvm := native:rustllvm libc std
7776
DEPS_rustc_back := std syntax rustc_llvm flate log libc
7877
DEPS_rustdoc := rustc native:hoedown serialize getopts \
79-
test time debug
78+
test time
8079
DEPS_flate := std native:miniz
8180
DEPS_arena := std
8281
DEPS_graphviz := std

branches/try2/src/libsyntax/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl PartialEq for Ident {
8181
// one example and its non-hygienic counterpart would be:
8282
// syntax::parse::token::mtwt_token_eq
8383
// syntax::ext::tt::macro_parser::token_name_eq
84-
fail!("not allowed to compare these idents: {:?}, {:?}. \
84+
fail!("not allowed to compare these idents: {}, {}. \
8585
Probably related to issue \\#6993", self, other);
8686
}
8787
}

branches/try2/src/libsyntax/ast_map/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ pub fn path_to_string<PI: Iterator<PathElem>>(mut path: PI) -> String {
9696
}).to_string()
9797
}
9898

99+
#[deriving(Show)]
99100
pub enum Node<'ast> {
100101
NodeItem(&'ast Item),
101102
NodeForeignItem(&'ast ForeignItem),
@@ -387,7 +388,7 @@ impl<'ast> Map<'ast> {
387388
PathName(ident.name)
388389
}
389390
MethMac(_) => {
390-
fail!("no path elem for {:?}", node)
391+
fail!("no path elem for {}", node)
391392
}
392393
}
393394
}
@@ -401,13 +402,13 @@ impl<'ast> Map<'ast> {
401402
MethDecl(ident, _, _, _, _, _, _, _) => {
402403
PathName(ident.name)
403404
}
404-
MethMac(_) => fail!("no path elem for {:?}", node),
405+
MethMac(_) => fail!("no path elem for {}", node),
405406
}
406407
}
407408
TypeTraitItem(ref m) => PathName(m.ident.name),
408409
},
409410
NodeVariant(v) => PathName(v.node.name.name),
410-
_ => fail!("no path elem for {:?}", node)
411+
_ => fail!("no path elem for {}", node)
411412
}
412413
}
413414

branches/try2/src/libsyntax/ast_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ pub fn empty_generics() -> Generics {
308308
// ______________________________________________________________________
309309
// Enumerating the IDs which appear in an AST
310310

311-
#[deriving(Encodable, Decodable)]
311+
#[deriving(Encodable, Decodable, Show)]
312312
pub struct IdRange {
313313
pub min: NodeId,
314314
pub max: NodeId,

branches/try2/src/libsyntax/ext/expand.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,11 +1700,11 @@ foo_module!()
17001700
}).enumerate() {
17011701
if mtwt::resolve(v.segments.get(0).identifier) != resolved_binding {
17021702
println!("uh oh, xx binding didn't match xx varref:");
1703-
println!("this is xx varref \\# {:?}",idx);
1704-
println!("binding: {:?}",cxbind);
1705-
println!("resolves to: {:?}",resolved_binding);
1706-
println!("varref: {:?}",v.segments.get(0).identifier);
1707-
println!("resolves to: {:?}",
1703+
println!("this is xx varref \\# {}", idx);
1704+
println!("binding: {}", cxbind);
1705+
println!("resolves to: {}", resolved_binding);
1706+
println!("varref: {}", v.segments.get(0).identifier);
1707+
println!("resolves to: {}",
17081708
mtwt::resolve(v.segments.get(0).identifier));
17091709
mtwt::with_sctable(|x| mtwt::display_sctable(x));
17101710
}

branches/try2/src/libsyntax/ext/mtwt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub struct SCTable {
3838
rename_memo: RefCell<HashMap<(SyntaxContext,Ident,Name),SyntaxContext>>,
3939
}
4040

41-
#[deriving(PartialEq, Encodable, Decodable, Hash)]
41+
#[deriving(PartialEq, Encodable, Decodable, Hash, Show)]
4242
pub enum SyntaxContext_ {
4343
EmptyCtxt,
4444
Mark (Mrk,SyntaxContext),
@@ -129,7 +129,7 @@ fn new_sctable_internal() -> SCTable {
129129
pub fn display_sctable(table: &SCTable) {
130130
error!("SC table:");
131131
for (idx,val) in table.table.borrow().iter().enumerate() {
132-
error!("{:4u} : {:?}",idx,val);
132+
error!("{:4u} : {}",idx,val);
133133
}
134134
}
135135

branches/try2/src/libsyntax/fold.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ mod test {
13891389
let a_val = $a;
13901390
let b_val = $b;
13911391
if !(pred_val(a_val.as_slice(),b_val.as_slice())) {
1392-
fail!("expected args satisfying {}, got {:?} and {:?}",
1392+
fail!("expected args satisfying {}, got {} and {}",
13931393
$predname, a_val, b_val);
13941394
}
13951395
}

branches/try2/src/libsyntax/parse/attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl<'a> ParserAttr for Parser<'a> {
6363
/// If permit_inner is true, then a leading `!` indicates an inner
6464
/// attribute
6565
fn parse_attribute(&mut self, permit_inner: bool) -> ast::Attribute {
66-
debug!("parse_attributes: permit_inner={:?} self.token={:?}",
66+
debug!("parse_attributes: permit_inner={} self.token={}",
6767
permit_inner, self.token);
6868
let (span, value, mut style) = match self.token {
6969
token::POUND => {

branches/try2/src/libsyntax/parse/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -823,19 +823,19 @@ mod test {
823823
}
824824
},
825825
_ => {
826-
error!("failing value 3: {:?}",first_set);
826+
error!("failing value 3: {}",first_set);
827827
assert_eq!("wrong 3","correct")
828828
}
829829
}
830830
},
831831
_ => {
832-
error!("failing value 2: {:?}",delim_elts);
832+
error!("failing value 2: {}",delim_elts);
833833
assert_eq!("wrong","correct");
834834
}
835835
}
836836
},
837837
_ => {
838-
error!("failing value: {:?}",tts);
838+
error!("failing value: {}",tts);
839839
assert_eq!("wrong 1","correct");
840840
}
841841
}

branches/try2/src/libsyntax/parse/parser.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ impl<'a> Parser<'a> {
492492
/// followed by some token from the set edible + inedible. Recover
493493
/// from anticipated input errors, discarding erroneous characters.
494494
pub fn commit_expr(&mut self, e: &Expr, edible: &[token::Token], inedible: &[token::Token]) {
495-
debug!("commit_expr {:?}", e);
495+
debug!("commit_expr {}", e);
496496
match e.node {
497497
ExprPath(..) => {
498498
// might be unit-struct construction; check for recoverableinput error.
@@ -1535,7 +1535,7 @@ impl<'a> Parser<'a> {
15351535
// TYPE TO BE INFERRED
15361536
TyInfer
15371537
} else {
1538-
let msg = format!("expected type, found token {:?}", self.token);
1538+
let msg = format!("expected type, found token {}", self.token);
15391539
self.fatal(msg.as_slice());
15401540
};
15411541

@@ -1591,7 +1591,7 @@ impl<'a> Parser<'a> {
15911591
/// identifier names.
15921592
pub fn parse_arg_general(&mut self, require_name: bool) -> Arg {
15931593
let pat = if require_name || self.is_named_argument() {
1594-
debug!("parse_arg_general parse_pat (require_name:{:?})",
1594+
debug!("parse_arg_general parse_pat (require_name:{})",
15951595
require_name);
15961596
let pat = self.parse_pat();
15971597

@@ -1882,7 +1882,7 @@ impl<'a> Parser<'a> {
18821882
token::BINOP(token::SHR) => { return res; }
18831883
_ => {
18841884
let msg = format!("expected `,` or `>` after lifetime \
1885-
name, got: {:?}",
1885+
name, got: {}",
18861886
self.token);
18871887
self.fatal(msg.as_slice());
18881888
}
@@ -4711,7 +4711,7 @@ impl<'a> Parser<'a> {
47114711
attrs = attrs_remaining.clone().append(attrs.as_slice());
47124712
first = false;
47134713
}
4714-
debug!("parse_mod_items: parse_item_or_view_item(attrs={:?})",
4714+
debug!("parse_mod_items: parse_item_or_view_item(attrs={})",
47154715
attrs);
47164716
match self.parse_item_or_view_item(attrs,
47174717
true /* macros allowed */) {

0 commit comments

Comments
 (0)