Skip to content

Commit 9c1910a

Browse files
committed
workaround LLVM bug #13042
1 parent ab8fa49 commit 9c1910a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libsyntax/parse/common.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ impl parser_common for parser {
9494

9595
fn eat_keyword(word: str) -> bool {
9696
self.require_keyword(word);
97-
alt copy self.token {
98-
token::IDENT(sid, false) {
97+
98+
// FIXME: this gratuitous use of @ is to
99+
// workaround LLVM bug #13042
100+
alt @self.token {
101+
@token::IDENT(sid, false) {
99102
if str::eq(word, self.get_str(sid)) {
100103
self.bump();
101104
ret true;

0 commit comments

Comments
 (0)