about summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-10-13 12:25:57 -0700
committerBrian Anderson <banderson@mozilla.com>2011-10-13 12:25:57 -0700
commit89466ffd745547ee8b9c75a12a998dd16ef3bf2a (patch)
treeee3f37eab9f72f080d7f31c66a337b0331bfe1c0 /src/comp/driver
parent60cfa91897b90d37ef85068f93c01b2b99c30e10 (diff)
downloadrust-89466ffd745547ee8b9c75a12a998dd16ef3bf2a.tar.gz
rust-89466ffd745547ee8b9c75a12a998dd16ef3bf2a.zip
Rename rustc::middle::unsafeck to fn_usage
I'm going to add further checks unrelated to unsafe.

Issue #1038
Diffstat (limited to 'src/comp/driver')
-rw-r--r--src/comp/driver/rustc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index 43d138c9e1a..2e2bf37da77 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -5,7 +5,7 @@ import metadata::{creader, cstore};
 import syntax::parse::{parser, token};
 import syntax::{ast, codemap};
 import front::attr;
-import middle::{trans, resolve, freevars, kind, ty, typeck, unsafeck};
+import middle::{trans, resolve, freevars, kind, ty, typeck, fn_usage};
 import middle::tstate::ck;
 import syntax::print::{pp, pprust};
 import util::{ppaux, common, filesearch};
@@ -129,8 +129,8 @@ fn compile_input(sess: session::session, cfg: ast::crate_cfg, input: str,
              bind freevars::annotate_freevars(def_map, crate));
     let ty_cx = ty::mk_ctxt(sess, def_map, ext_map, ast_map, freevars);
     time(time_passes, "typechecking", bind typeck::check_crate(ty_cx, crate));
-    time(time_passes, "unsafechecking",
-         bind unsafeck::unsafeck_crate(ty_cx, crate));
+    time(time_passes, "function usage",
+         bind fn_usage::check_crate_fn_usage(ty_cx, crate));
     time(time_passes, "alt checking",
          bind middle::check_alt::check_crate(ty_cx, crate));
     if sess.get_opts().run_typestate {