diff options
| author | bors <bors@rust-lang.org> | 2014-10-16 17:52:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-16 17:52:25 +0000 |
| commit | 8b979739713f54eb9315ed5f88b8f06d43d0bbb5 (patch) | |
| tree | aa374aaa783ed319e49592dcd40cf7b6416d53b8 /src/libsyntax/parse | |
| parent | b6e0d3a5bf4c88650a22f605f822e02c6b163580 (diff) | |
| parent | 78992485047f7600a0d34c5f573b30be262b2e4b (diff) | |
| download | rust-8b979739713f54eb9315ed5f88b8f06d43d0bbb5.tar.gz rust-8b979739713f54eb9315ed5f88b8f06d43d0bbb5.zip | |
auto merge of #18064 : luqmana/rust/remove-reflection, r=nick29581
Out goes reflection! This means your code will break if you used the `:?` format specifier, anything else from libdebug, or the `visit_tydesc` intrinsic directly. Closes #18046. [breaking-change]
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/attr.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index 74b93e75e64..17dd546ad59 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -63,7 +63,7 @@ impl<'a> ParserAttr for Parser<'a> { /// If permit_inner is true, then a leading `!` indicates an inner /// attribute fn parse_attribute(&mut self, permit_inner: bool) -> ast::Attribute { - debug!("parse_attributes: permit_inner={:?} self.token={:?}", + debug!("parse_attributes: permit_inner={} self.token={}", permit_inner, self.token); let (span, value, mut style) = match self.token { token::POUND => { diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 66ecdbfca02..c4a8775a012 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -823,19 +823,19 @@ mod test { } }, _ => { - error!("failing value 3: {:?}",first_set); + error!("failing value 3: {}",first_set); assert_eq!("wrong 3","correct") } } }, _ => { - error!("failing value 2: {:?}",delim_elts); + error!("failing value 2: {}",delim_elts); assert_eq!("wrong","correct"); } } }, _ => { - error!("failing value: {:?}",tts); + error!("failing value: {}",tts); assert_eq!("wrong 1","correct"); } } diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d5253cff6cb..7e77283cca7 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -492,7 +492,7 @@ impl<'a> Parser<'a> { /// followed by some token from the set edible + inedible. Recover /// from anticipated input errors, discarding erroneous characters. pub fn commit_expr(&mut self, e: &Expr, edible: &[token::Token], inedible: &[token::Token]) { - debug!("commit_expr {:?}", e); + debug!("commit_expr {}", e); match e.node { ExprPath(..) => { // might be unit-struct construction; check for recoverableinput error. @@ -1535,7 +1535,7 @@ impl<'a> Parser<'a> { // TYPE TO BE INFERRED TyInfer } else { - let msg = format!("expected type, found token {:?}", self.token); + let msg = format!("expected type, found token {}", self.token); self.fatal(msg.as_slice()); }; @@ -1591,7 +1591,7 @@ impl<'a> Parser<'a> { /// identifier names. pub fn parse_arg_general(&mut self, require_name: bool) -> Arg { let pat = if require_name || self.is_named_argument() { - debug!("parse_arg_general parse_pat (require_name:{:?})", + debug!("parse_arg_general parse_pat (require_name:{})", require_name); let pat = self.parse_pat(); @@ -1882,7 +1882,7 @@ impl<'a> Parser<'a> { token::BINOP(token::SHR) => { return res; } _ => { let msg = format!("expected `,` or `>` after lifetime \ - name, got: {:?}", + name, got: {}", self.token); self.fatal(msg.as_slice()); } @@ -4711,7 +4711,7 @@ impl<'a> Parser<'a> { attrs = attrs_remaining.clone().append(attrs.as_slice()); first = false; } - debug!("parse_mod_items: parse_item_or_view_item(attrs={:?})", + debug!("parse_mod_items: parse_item_or_view_item(attrs={})", attrs); match self.parse_item_or_view_item(attrs, true /* macros allowed */) { |
