diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-06-05 16:01:00 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-06-06 18:42:11 -0700 |
| commit | 9c1910a66db95468608c9cc02a5012e3db7f4e09 (patch) | |
| tree | 2143f8b05f1d3f55cc9c1a95800d5fa0ac28719f /src/libsyntax/parse/common.rs | |
| parent | ab8fa495d08f64c5a82bc8ed39f9e2066aec4b6b (diff) | |
| download | rust-9c1910a66db95468608c9cc02a5012e3db7f4e09.tar.gz rust-9c1910a66db95468608c9cc02a5012e3db7f4e09.zip | |
workaround LLVM bug #13042
Diffstat (limited to 'src/libsyntax/parse/common.rs')
| -rw-r--r-- | src/libsyntax/parse/common.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 05e14c4654d..35afb79ce63 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -94,8 +94,11 @@ impl parser_common for parser { fn eat_keyword(word: str) -> bool { self.require_keyword(word); - alt copy self.token { - token::IDENT(sid, false) { + + // FIXME: this gratuitous use of @ is to + // workaround LLVM bug #13042 + alt @self.token { + @token::IDENT(sid, false) { if str::eq(word, self.get_str(sid)) { self.bump(); ret true; |
