From ccc21fd4da49ed819d95eaea6599538071947cd4 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 22 Nov 2010 11:35:00 -0800 Subject: [PATCH] Fix lexer bug, enable 5 more tests on rustc. --- src/Makefile | 5 +++++ src/comp/front/lexer.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 0b1f95a4d0c..a0c08f0df3b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -518,17 +518,22 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \ TEST_XFAILS_SELF := $(filter-out \ $(addprefix test/run-pass/, \ arith-0.rs \ + arith-1.rs \ arith-2.rs \ bool-not.rs \ char.rs \ dead-code-one-arm-if.rs \ deep.rs \ + div-mod.rs \ fact.rs \ hello.rs \ int.rs \ item-name-overload.rs \ lazy-init.rs \ multiline-comment.rs \ + return-nil.rs \ + unit.rs \ + while-and-do-while.rs \ ), \ $(wildcard test/*/*.rs test/*/*.rc)) diff --git a/src/comp/front/lexer.rs b/src/comp/front/lexer.rs index d2f308e3238..38e9367f5a2 100644 --- a/src/comp/front/lexer.rs +++ b/src/comp/front/lexer.rs @@ -572,7 +572,7 @@ impure fn next_token(reader rdr) -> token.token { } case ('/') { - ret binop(rdr, token.STAR); + ret binop(rdr, token.SLASH); } case ('^') {