@@ -142,10 +142,8 @@ fn compile_input(sess: session::session, cfg: ast::crate_cfg, input: str,
142
142
bind fn_usage:: check_crate_fn_usage ( ty_cx, crate ) ) ;
143
143
time ( time_passes, "alt checking" ,
144
144
bind middle:: check_alt:: check_crate ( ty_cx, crate ) ) ;
145
- if sess. get_opts ( ) . run_typestate {
146
- time ( time_passes, "typestate checking" ,
147
- bind middle:: tstate:: ck:: check_crate ( ty_cx, crate ) ) ;
148
- }
145
+ time ( time_passes, "typestate checking" ,
146
+ bind middle:: tstate:: ck:: check_crate ( ty_cx, crate ) ) ;
149
147
let mut_map =
150
148
time ( time_passes, "mutability checking" ,
151
149
bind middle:: mut:: check_crate ( ty_cx, crate ) ) ;
@@ -273,7 +271,6 @@ options:
273
271
--time-llvm-passes time the individual phases of the LLVM backend
274
272
--sysroot <path> override the system root
275
273
--target <triple> target to compile for (default: host triple)
276
- --no-typestate don't run the typestate pass (unsafe!)
277
274
--test build test harness
278
275
--gc garbage collect shared data (experimental/temporary)
279
276
--stack-growth perform stack checks (experimental)
@@ -363,7 +360,6 @@ fn build_session_options(match: getopts::match)
363
360
let stats = opt_present( match , "stats" ) ;
364
361
let time_passes = opt_present( match , "time-passes" ) ;
365
362
let time_llvm_passes = opt_present( match , "time-llvm-passes" ) ;
366
- let run_typestate = !opt_present( match , "no-typestate" ) ;
367
363
let sysroot_opt = getopts:: opt_maybe_str( match , "sysroot" ) ;
368
364
let target_opt = getopts:: opt_maybe_str( match , "target" ) ;
369
365
let no_asm_comments = getopts:: opt_present( match , "no-asm-comments" ) ;
@@ -407,7 +403,6 @@ fn build_session_options(match: getopts::match)
407
403
optimize: opt_level ,
408
404
debuginfo : debuginfo ,
409
405
verify : verify ,
410
- run_typestate : run_typestate ,
411
406
save_temps : save_temps ,
412
407
stats : stats ,
413
408
time_passes : time_passes ,
@@ -458,7 +453,7 @@ fn opts() -> [getopts::opt] {
458
453
optflag ( "c" ) , optopt ( "o" ) , optflag ( "g" ) , optflag ( "save-temps" ) ,
459
454
optopt ( "sysroot" ) , optopt ( "target" ) , optflag ( "stats" ) ,
460
455
optflag ( "time-passes" ) , optflag ( "time-llvm-passes" ) ,
461
- optflag ( "no-typestate" ) , optflag ( " noverify") ,
456
+ optflag ( "noverify" ) ,
462
457
optmulti ( "cfg" ) , optflag ( "test" ) ,
463
458
optflag ( "lib" ) , optflag ( "static" ) , optflag ( "gc" ) ,
464
459
optflag ( "stack-growth" ) , optflag ( "check-unsafe" ) ,
0 commit comments