librustc: Remove "extern mod { ... }" from librustc, librustdoc, and tests. rs=deexterning
This commit is contained in:
parent
87e44af2f2
commit
6b5d1afeec
62 changed files with 1594 additions and 1338 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue