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 e731520 commit eaf9df2Copy full SHA for eaf9df2
src/comp/middle/trans.rs
@@ -1247,19 +1247,6 @@ impure fn trans_mod(@trans_ctxt cx, &ast._mod m) {
1247
fn collect_item(&@trans_ctxt cx, @ast.item i) -> @trans_ctxt {
1248
alt (i.node) {
1249
case (ast.item_fn(?name, ?f, ?fid, ?ann)) {
1250
- auto fn_inputs;
1251
- auto fn_output;
1252
- alt (typeck.ann_to_type(ann).struct) {
1253
- case (typeck.ty_fn(?ins, ?out)) {
1254
- fn_inputs = ins;
1255
- fn_output = out;
1256
- }
1257
- case (_) {
1258
- log "trans: fn item doesn't have function type!";
1259
- fail;
1260
1261
1262
-
1263
cx.items.insert(fid, i);
1264
auto llty = node_type(cx, ann);
1265
let str s = cx.names.next("_rust_fn") + "." + name;
0 commit comments