File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e0ce092ddcfdad62458596132bdccdb4502dd03b
2
+ refs/heads/master: 6b1da80eb445fb4067938e411aa10cfa6d07abf0
Original file line number Diff line number Diff line change @@ -170,17 +170,9 @@ fn visit_view_item(env e, &@ast::view_item i) {
170
170
fn visit_item( env e, & @ast:: item i) {
171
171
alt ( i. node) {
172
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
- 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) ;
184
176
}
185
177
}
186
178
case ( _) {
You can’t perform that action at this time.
0 commit comments