summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2011-10-12 13:31:41 -0700
committerBrian Anderson <banderson@mozilla.com>2011-10-12 16:33:07 -0700
commite8a0e592da3e8f5cadc0c854c61b0934d10bc0a4 (patch)
tree2811bd2cbb435c064a999537d3b24082ce67e906 /src/comp/driver
parentf994871a3daaa52c22b89057c575e0f65ffae013 (diff)
downloadrust-e8a0e592da3e8f5cadc0c854c61b0934d10bc0a4.tar.gz
rust-e8a0e592da3e8f5cadc0c854c61b0934d10bc0a4.zip
reimplement some of the unsafe stuff which got lost
  - blocks inherit unsafety
  - remove the --check-unsafe flag
  - add unsafe annotations where needed to get things to compile
Diffstat (limited to 'src/comp/driver')
-rw-r--r--src/comp/driver/rustc.rs4
-rw-r--r--src/comp/driver/session.rs3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index 46f8da829a6..43d138c9e1a 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -325,7 +325,6 @@ fn build_session_options(match: getopts::match)
 
     let parse_only = opt_present(match, "parse-only");
     let no_trans = opt_present(match, "no-trans");
-    let check_unsafe = opt_present(match, "check-unsafe");
 
     let output_type =
         if parse_only || no_trans {
@@ -397,8 +396,7 @@ fn build_session_options(match: getopts::match)
           parse_only: parse_only,
           no_trans: no_trans,
           do_gc: do_gc,
-          stack_growth: stack_growth,
-          check_unsafe: check_unsafe};
+          stack_growth: stack_growth};
     ret sopts;
 }
 
diff --git a/src/comp/driver/session.rs b/src/comp/driver/session.rs
index 6ba2148e8a4..1f3f9baab8a 100644
--- a/src/comp/driver/session.rs
+++ b/src/comp/driver/session.rs
@@ -41,8 +41,7 @@ type options =
      parse_only: bool,
      no_trans: bool,
      do_gc: bool,
-     stack_growth: bool,
-     check_unsafe: bool};
+     stack_growth: bool};
 
 type crate_metadata = {name: str, data: [u8]};