Simplify.
This commit is contained in:
parent
e0ce092ddc
commit
6b1da80eb4
1 changed files with 3 additions and 11 deletions
|
|
@ -170,17 +170,9 @@ fn visit_view_item(env e, &@ast::view_item i) {
|
|||
fn visit_item(env e, &@ast::item i) {
|
||||
alt (i.node) {
|
||||
case (ast::item_native_mod(?m)) {
|
||||
alt (m.abi) {
|
||||
case (ast::native_abi_rust) {
|
||||
e.sess.add_used_library(m.native_name);
|
||||
}
|
||||
case (ast::native_abi_cdecl) {
|
||||
e.sess.add_used_library(m.native_name);
|
||||
}
|
||||
case (ast::native_abi_llvm) {
|
||||
}
|
||||
case (ast::native_abi_rust_intrinsic) {
|
||||
}
|
||||
if (m.abi == ast::native_abi_rust ||
|
||||
m.abi == ast::native_abi_cdecl) {
|
||||
e.sess.add_used_library(m.native_name);
|
||||
}
|
||||
}
|
||||
case (_) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue