From e8a0e592da3e8f5cadc0c854c61b0934d10bc0a4 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 12 Oct 2011 13:31:41 -0700 Subject: 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 --- src/comp/driver/rustc.rs | 4 +--- src/comp/driver/session.rs | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src/comp/driver') 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]}; -- cgit 1.4.1-3-g733a5