]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused "--check-unsafe" flag
authorHaitao Li <lihaitao@gmail.com>
Fri, 11 Nov 2011 15:55:47 +0000 (23:55 +0800)
committerHaitao Li <lihaitao@gmail.com>
Fri, 11 Nov 2011 16:01:37 +0000 (00:01 +0800)
Fixes issue #1138

src/comp/driver/rustc.rs

index f86e2f44682e0971a0c6e75243ab08083a896ceb..5db2dd02101e1c70ed5ef0dca520668f2a3843e9 100644 (file)
@@ -270,7 +270,6 @@ fn usage(argv0: str) {
     --test             build test harness
     --gc               garbage collect shared data (experimental/temporary)
     --stack-growth     perform stack checks (experimental)
-    --check-unsafe     disallow unsafe actions in non-unsafe functions
 
 ");
 }
@@ -448,7 +447,7 @@ fn opts() -> [getopts::opt] {
          optflag("no-typestate"), optflag("noverify"),
          optmulti("cfg"), optflag("test"),
          optflag("lib"), optflag("static"), optflag("gc"),
-         optflag("stack-growth"), optflag("check-unsafe")];
+         optflag("stack-growth")];
 }
 
 fn build_output_filenames(ifile: str, ofile: option::t<str>,