Skip to content

Commit 7abaee2

Browse files
committed
---
yaml --- r: 42043 b: refs/heads/master c: 923b315 h: refs/heads/master i: 42041: 41bd373 42039: 6eab8eb v: v3
1 parent d4fbc3a commit 7abaee2

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 19e015c44a9f5b911ac7ffa105395d442ece8fda
2+
refs/heads/master: 923b3154c6b69748e951b04d874b7a28eb3cedf9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/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);

trunk/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)