diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-07-18 11:01:54 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-07-18 11:48:58 -0700 |
| commit | e0ea67a2a60c694a6c3424d99e4692c2725b8506 (patch) | |
| tree | 7f18e57c1d8fbceadeae31f2f30afdfce004f32d /src/libsyntax/parse/parser.rs | |
| parent | eb0a34c39865d456a776fc8e81ba780dd383f315 (diff) | |
| download | rust-e0ea67a2a60c694a6c3424d99e4692c2725b8506.tar.gz rust-e0ea67a2a60c694a6c3424d99e4692c2725b8506.zip | |
prevent regions from escaping in ifaces; remove &r.T syntax
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index c7687bf2b98..8336d6b39ab 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -383,8 +383,7 @@ class parser { let name = alt copy self.token { token::IDENT(sid, _) => { - if self.look_ahead(1u) == token::DOT || // backwards compat - self.look_ahead(1u) == token::BINOP(token::SLASH) { + if self.look_ahead(1u) == token::BINOP(token::SLASH) { self.bump(); self.bump(); some(self.get_str(sid)) } else { |
