Skip to content

Commit 424d8d0

Browse files
committed
---
yaml --- r: 3467 b: refs/heads/master c: 88447a4 h: refs/heads/master i: 3465: 03d9122 3463: e92acc7 v: v3
1 parent 878561c commit 424d8d0

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1ba85932b1e11ae9db0e64dad20cd076db17aa1c
2+
refs/heads/master: 88447a47c08a3903fc6dc46863724745a923597a

trunk/src/comp/driver/rustc.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ options:
157157
--time-passes time the individual phases of the compiler
158158
--time-llvm-passes time the individual phases of the LLVM backend
159159
--sysroot <path> override the system root (default: rustc's directory)
160-
--no-typestate don't run the typestate pass (unsafe!)
161-
--check-claims treat 'claim' and 'check' synonymously\n\n");
160+
--no-typestate don't run the typestate pass (unsafe!)\n\n");
162161
}
163162

164163
fn get_os(str triple) -> session::os {
@@ -227,7 +226,6 @@ fn build_session_options(str binary, getopts::match match, str binary_dir) ->
227226
auto time_llvm_passes = opt_present(match, "time-llvm-passes");
228227
auto run_typestate = !opt_present(match, "no-typestate");
229228
auto sysroot_opt = getopts::opt_maybe_str(match, "sysroot");
230-
auto check_claims = opt_present(match, "check-claims");
231229
let uint opt_level =
232230
if (opt_present(match, "O")) {
233231
if (opt_present(match, "OptLevel")) {
@@ -263,7 +261,6 @@ fn build_session_options(str binary, getopts::match match, str binary_dir) ->
263261
stats=stats,
264262
time_passes=time_passes,
265263
time_llvm_passes=time_llvm_passes,
266-
check_claims=check_claims,
267264
output_type=output_type,
268265
library_search_paths=library_search_paths,
269266
sysroot=sysroot);
@@ -299,7 +296,7 @@ fn main(vec[str] args) {
299296
optflag("c"), optopt("o"), optflag("g"), optflag("save-temps"),
300297
optopt("sysroot"), optflag("stats"), optflag("time-passes"),
301298
optflag("time-llvm-passes"), optflag("no-typestate"),
302-
optflag("check-claims"), optflag("noverify")];
299+
optflag("noverify")];
303300
auto binary = vec::shift[str](args);
304301
auto binary_dir = fs::dirname(binary);
305302
auto match =

trunk/src/comp/driver/session.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ type options =
3232
bool stats,
3333
bool time_passes,
3434
bool time_llvm_passes,
35-
bool check_claims,
3635
back::link::output_type output_type,
3736
vec[str] library_search_paths,
3837
str sysroot);

trunk/src/comp/front/parser.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -873,12 +873,7 @@ fn parse_bottom_expr(&parser p) -> @ast::expr {
873873

874874
auto e = parse_expr(p);
875875
auto hi = e.span.hi;
876-
ex = if (p.get_session().get_opts().check_claims) {
877-
ast::expr_check(ast::checked, e)
878-
}
879-
else {
880-
ast::expr_check(ast::unchecked, e)
881-
};
876+
ex = ast::expr_check(ast::unchecked, e);
882877
} else if (eat_word(p, "ret")) {
883878
alt (p.peek()) {
884879
case (token::SEMI) { ex = ast::expr_ret(none); }

0 commit comments

Comments
 (0)