Skip to content

Commit 3bf4871

Browse files
committed
---
yaml --- r: 30011 b: refs/heads/incoming c: 0f0a977 h: refs/heads/master i: 30009: f074c4d 30007: 9ab3e1f v: v3
1 parent e5f0485 commit 3bf4871

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 5d5cfcc005f0658b257225b7809db3f18b03be77
9+
refs/heads/incoming: 0f0a9775bae31169153d36dfa586e899c90921d5
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/rustc/middle/typeck/check.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,27 +2323,24 @@ fn ty_param_bounds_and_ty_for_def(fcx: @fn_ctxt, sp: span, defn: ast::def) ->
23232323
ast::def_upvar(_, inner, _, _) => {
23242324
return ty_param_bounds_and_ty_for_def(fcx, sp, *inner);
23252325
}
2326-
ast::def_ty_param(did, n) => {
2327-
return no_params(ty::mk_param(fcx.ccx.tcx, n, did));
2328-
}
2329-
ast::def_ty(_) | ast::def_prim_ty(_) => {
2330-
fcx.ccx.tcx.sess.span_fatal(sp, ~"expected value but found type");
2326+
ast::def_ty(_) | ast::def_prim_ty(_) | ast::def_ty_param(*)=> {
2327+
fcx.ccx.tcx.sess.span_bug(sp, ~"expected value but found type");
23312328
}
23322329
ast::def_mod(*) | ast::def_foreign_mod(*) => {
2333-
fcx.ccx.tcx.sess.span_fatal(sp, ~"expected value but found module");
2330+
fcx.ccx.tcx.sess.span_bug(sp, ~"expected value but found module");
23342331
}
23352332
ast::def_use(*) => {
2336-
fcx.ccx.tcx.sess.span_fatal(sp, ~"expected value but found use");
2333+
fcx.ccx.tcx.sess.span_bug(sp, ~"expected value but found use");
23372334
}
23382335
ast::def_region(*) => {
2339-
fcx.ccx.tcx.sess.span_fatal(sp, ~"expected value but found region");
2336+
fcx.ccx.tcx.sess.span_bug(sp, ~"expected value but found region");
23402337
}
23412338
ast::def_typaram_binder(*) => {
2342-
fcx.ccx.tcx.sess.span_fatal(sp, ~"expected value but found type \
2339+
fcx.ccx.tcx.sess.span_bug(sp, ~"expected value but found type \
23432340
parameter");
23442341
}
23452342
ast::def_label(*) => {
2346-
fcx.ccx.tcx.sess.span_fatal(sp, ~"expected value but found label");
2343+
fcx.ccx.tcx.sess.span_bug(sp, ~"expected value but found label");
23472344
}
23482345
}
23492346
}

0 commit comments

Comments
 (0)