diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2011-10-11 17:50:54 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-10-12 16:33:07 -0700 |
| commit | 9f9deff7af4b3f430b0577d48cace3d2b18efc57 (patch) | |
| tree | 3214ad284f13e5e2656f94e07c9a372e40a1136c /src/comp/driver | |
| parent | b1a9d71218bf1f94960496ccb38e92658e89b246 (diff) | |
| download | rust-9f9deff7af4b3f430b0577d48cace3d2b18efc57.tar.gz rust-9f9deff7af4b3f430b0577d48cace3d2b18efc57.zip | |
make a good error msg if you try to use an unsafe fn for a test
Diffstat (limited to 'src/comp/driver')
| -rw-r--r-- | src/comp/driver/rustc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 84409978bda..46f8da829a6 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -110,7 +110,7 @@ fn compile_input(sess: session::session, cfg: ast::crate_cfg, input: str, if sess.get_opts().test { crate = time(time_passes, "building test harness", - bind front::test::modify_for_testing(crate)); + bind front::test::modify_for_testing(sess, crate)); } crate = time(time_passes, "expansion", |
