1
Fork 0

Change 'native' and 'crust' to 'extern'.

This comes with a terminology change. All linkage-symbols are 'extern'
now, including rust syms in other crates. Some extern ABIs are
merely "foreign". The term "native" is retired, not clear/useful.

What was "crust" is now "extern" applied to a _definition_. This
is a bit of an overloading, but should be unambiguous: it means
that the definition should be made available to some non-rust ABI.
This commit is contained in:
Graydon Hoare 2012-06-26 16:18:37 -07:00
parent 999b567e2a
commit 697f1e38d6
60 changed files with 377 additions and 353 deletions

View file

@ -149,13 +149,13 @@ fn should_remove_mods_from_containing_mods() {
}
#[test]
fn should_make_a_page_for_every_native_mod() {
fn should_make_a_page_for_every_foreign_mod() {
let doc = test::mk_doc("native mod a { }");
assert doc.pages.nmods()[0].name() == "a";
}
#[test]
fn should_remove_native_mods_from_containing_mods() {
fn should_remove_foreign_mods_from_containing_mods() {
let doc = test::mk_doc("native mod a { }");
assert vec::is_empty(doc.cratemod().nmods());
}