diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-06-26 16:18:37 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-06-26 16:18:37 -0700 |
| commit | 697f1e38d646bb6c7bab054c8c8c5b469c566ef6 (patch) | |
| tree | 614999c97dd8e6f648f8a3fd41a8de3304baffa9 /src/rustc/metadata/decoder.rs | |
| parent | 999b567e2af0a454bc862bc2e5b1bc16dae78f44 (diff) | |
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.
Diffstat (limited to 'src/rustc/metadata/decoder.rs')
| -rw-r--r-- | src/rustc/metadata/decoder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/metadata/decoder.rs b/src/rustc/metadata/decoder.rs index a7f44ad2d46..856ea024453 100644 --- a/src/rustc/metadata/decoder.rs +++ b/src/rustc/metadata/decoder.rs @@ -271,7 +271,7 @@ fn lookup_def(cnum: ast::crate_num, data: @[u8]/~, did_: ast::def_id) -> 'y' { ast::def_ty(did) } 't' { ast::def_ty(did) } 'm' { ast::def_mod(did) } - 'n' { ast::def_native_mod(did) } + 'n' { ast::def_foreign_mod(did) } 'v' { let mut tid = option::get(item_parent_item(item)); tid = {crate: cnum, node: tid.node}; |
