Skip to content

Commit 59c2fde

Browse files
committed
---
yaml --- r: 82594 b: refs/heads/auto c: 876fce2 h: refs/heads/master v: v3
1 parent 1f09557 commit 59c2fde

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 32f97cc891a6a2857338b4fcc7bb022e609eac1c
16+
refs/heads/auto: 876fce2751c9d58fd803672809a8ad2cf2814504
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libsyntax/parse/lexer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,6 @@ fn consume_whitespace(rdr: @mut StringReader) {
868868
mod test {
869869
use super::*;
870870

871-
use ast;
872871
use codemap::{BytePos, CodeMap, Span};
873872
use diagnostic;
874873
use parse::token;

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,10 @@ mod test {
324324
use abi;
325325
use parse::parser::Parser;
326326
use parse::token::{str_to_ident};
327-
use util::parser_testing::{string_to_tts_and_sess, string_to_parser};
327+
use util::parser_testing::{string_to_tts, string_to_parser};
328328
use util::parser_testing::{string_to_expr, string_to_item};
329329
use util::parser_testing::string_to_stmt;
330330

331-
// map a string to tts, return the tt without its parsesess
332-
fn string_to_tts_only(source_str : @str) -> ~[ast::token_tree] {
333-
let (tts,_ps) = string_to_tts_and_sess(source_str);
334-
tts
335-
}
336-
337-
338331
#[cfg(test)] fn to_json_str<E : Encodable<extra::json::Encoder>>(val: @E) -> ~str {
339332
do io::with_str_writer |writer| {
340333
let mut encoder = extra::json::Encoder(writer);
@@ -396,7 +389,7 @@ mod test {
396389
}
397390

398391
#[test] fn string_to_tts_1 () {
399-
let (tts,_ps) = string_to_tts_and_sess(@"fn a (b : int) { b; }");
392+
let tts = string_to_tts(@"fn a (b : int) { b; }");
400393
assert_eq!(to_json_str(@tts),
401394
~"[\
402395
{\

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,6 +2035,11 @@ impl Parser {
20352035

20362036
// parse a single token tree from the input.
20372037
pub fn parse_token_tree(&self) -> token_tree {
2038+
// FIXME #6994: currently, this is too eager. It
2039+
// parses token trees but also identifies tt_seq's
2040+
// and tt_nonterminals; it's too early to know yet
2041+
// whether something will be a nonterminal or a seq
2042+
// yet.
20382043
maybe_whole!(deref self, nt_tt);
20392044

20402045
// this is the fall-through for the 'match' below.

0 commit comments

Comments
 (0)