We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0ce092 commit 6b1da80Copy full SHA for 6b1da80
src/comp/metadata/creader.rs
@@ -170,17 +170,9 @@ fn visit_view_item(env e, &@ast::view_item i) {
170
fn visit_item(env e, &@ast::item i) {
171
alt (i.node) {
172
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
179
180
- case (ast::native_abi_llvm) {
181
182
- case (ast::native_abi_rust_intrinsic) {
183
+ if (m.abi == ast::native_abi_rust ||
+ m.abi == ast::native_abi_cdecl) {
+ e.sess.add_used_library(m.native_name);
184
}
185
186
case (_) {
0 commit comments