more testing fallout from core->std/std->extra move

This commit is contained in:
Ted Horst 2013-05-23 15:06:29 -05:00
parent 6e2b082adc
commit 34cfd2183b
7 changed files with 147 additions and 145 deletions

View file

@ -57,8 +57,8 @@ while cur < len(lines):
if not ignore:
if not re.search(r"\bfn main\b", block):
block = "fn main() {\n" + block + "\n}\n"
if not re.search(r"\bextern mod std\b", block):
block = "extern mod std;\n" + block
if not re.search(r"\bextern mod extra\b", block):
block = "extern mod extra;\n" + block
block = """#[ forbid(ctypes) ];
#[ forbid(deprecated_pattern) ];
#[ forbid(implicit_copies) ];

View file

@ -431,6 +431,7 @@ pub fn main() {
#[cfg(test)]
mod tests {
use super::*;
use core::io;
fn repl() -> Repl {
Repl {

View file

@ -13,6 +13,7 @@
use context::Ctx;
use core::hashmap::HashMap;
use core::path::Path;
use core::prelude::*;
use std::tempfile::mkdtemp;
use util::{PkgId, default_version};
use path_util::{target_executable_in_workspace, target_library_in_workspace,