Skip to content

Commit 262bd0c

Browse files
committed
---
yaml --- r: 3564 b: refs/heads/master c: 6b1da80 h: refs/heads/master v: v3
1 parent d4c6272 commit 262bd0c

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: e0ce092ddcfdad62458596132bdccdb4502dd03b
2+
refs/heads/master: 6b1da80eb445fb4067938e411aa10cfa6d07abf0

trunk/src/comp/metadata/creader.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,9 @@ fn visit_view_item(env e, &@ast::view_item i) {
170170
fn visit_item(env e, &@ast::item i) {
171171
alt (i.node) {
172172
case (ast::item_native_mod(?m)) {
173-
alt (m.abi) {
174-
case (ast::native_abi_rust) {
175-
e.sess.add_used_library(m.native_name);
176-
}
177-
case (ast::native_abi_cdecl) {
178-
e.sess.add_used_library(m.native_name);
179-
}
180-
case (ast::native_abi_llvm) {
181-
}
182-
case (ast::native_abi_rust_intrinsic) {
183-
}
173+
if (m.abi == ast::native_abi_rust ||
174+
m.abi == ast::native_abi_cdecl) {
175+
e.sess.add_used_library(m.native_name);
184176
}
185177
}
186178
case (_) {

0 commit comments

Comments
 (0)