make a good error msg if you try to use an unsafe fn for a test
This commit is contained in:
parent
b1a9d71218
commit
9f9deff7af
2 changed files with 21 additions and 8 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue