1
Fork 0

librustc: Remove "extern mod { ... }" from librustc, librustdoc, and tests. rs=deexterning

This commit is contained in:
Patrick Walton 2013-03-05 14:42:58 -08:00
parent 87e44af2f2
commit 6b5d1afeec
62 changed files with 1594 additions and 1338 deletions

View file

@ -371,15 +371,9 @@ mod test {
assert doc.cratemod().mods()[0].mods()[1].name() == ~"c";
}
#[test]
pub fn extract_foreign_mods() {
let doc = mk_doc(~"extern mod a { }");
assert doc.cratemod().nmods()[0].name() == ~"a";
}
#[test]
pub fn extract_fns_from_foreign_mods() {
let doc = mk_doc(~"extern mod a { fn a(); }");
let doc = mk_doc(~"extern { fn a(); }");
assert doc.cratemod().nmods()[0].fns[0].name() == ~"a";
}