Skip to content

Commit 83960a8

Browse files
committed
---
yaml --- r: 42709 b: refs/heads/try c: 923b315 h: refs/heads/master i: 42707: 71d263d v: v3
1 parent 6d7366f commit 83960a8

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 19e015c44a9f5b911ac7ffa105395d442ece8fda
5+
refs/heads/try: 923b3154c6b69748e951b04d874b7a28eb3cedf9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/librustc/metadata/tydecode.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,6 @@ fn parse_ty(st: @pstate, conv: conv_did) -> ty::t {
323323
'f' => {
324324
parse_ty_rust_fn(st, conv)
325325
}
326-
'X' => {
327-
return ty::mk_var(st.tcx, ty::TyVid(parse_int(st) as uint));
328-
}
329326
'Y' => return ty::mk_type(st.tcx),
330327
'C' => {
331328
let proto = parse_proto(st);

branches/try/src/librustc/metadata/tyencode.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -298,19 +298,8 @@ fn enc_sty(w: io::Writer, cx: @ctxt, +st: ty::sty) {
298298
ty::ty_fn(ref f) => {
299299
enc_ty_fn(w, cx, (*f));
300300
}
301-
ty::ty_infer(ty::TyVar(id)) => {
302-
w.write_char('X');
303-
w.write_uint(id.to_uint());
304-
}
305-
ty::ty_infer(ty::IntVar(id)) => {
306-
w.write_char('X');
307-
w.write_char('I');
308-
w.write_uint(id.to_uint());
309-
}
310-
ty::ty_infer(ty::FloatVar(id)) => {
311-
w.write_char('X');
312-
w.write_char('F');
313-
w.write_uint(id.to_uint());
301+
ty::ty_infer(_) => {
302+
cx.diag.handler().bug(~"Cannot encode inference variable types");
314303
}
315304
ty::ty_param({idx: id, def_id: did}) => {
316305
w.write_char('p');

0 commit comments

Comments
 (0)