Skip to content

Commit d7233c2

Browse files
committed
---
yaml --- r: 30366 b: refs/heads/incoming c: fe9f055 h: refs/heads/master v: v3
1 parent 5eb0f76 commit d7233c2

File tree

18 files changed

+183
-175
lines changed

18 files changed

+183
-175
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: d5b3e44b472dd94e9f0fb9b6d5f4f992df18a6a5
9+
refs/heads/incoming: fe9f0556d28e99417cef022c7486fe01440906f0
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/rustc/metadata/tydecode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ fn parse_ty(st: @pstate, conv: conv_did) -> ty::t {
274274
parse_ty_rust_fn(st, conv)
275275
}
276276
'X' => {
277-
return ty::mk_var(st.tcx, ty::tv_vid(parse_int(st) as uint));
277+
return ty::mk_var(st.tcx, ty::ty_vid(parse_int(st) as uint));
278278
}
279279
'Y' => return ty::mk_type(st.tcx),
280280
'C' => {

branches/incoming/src/rustc/metadata/tyencode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@ fn enc_sty(w: io::Writer, cx: @ctxt, st: ty::sty) {
274274
ty::ty_fn(f) => {
275275
enc_ty_fn(w, cx, f);
276276
}
277-
ty::ty_var(id) => {
277+
ty::ty_infer(ty::TyVar(id)) => {
278278
w.write_char('X');
279279
w.write_uint(id.to_uint());
280280
}
281-
ty::ty_var_integral(id) => {
281+
ty::ty_infer(ty::IntVar(id)) => {
282282
w.write_char('X');
283283
w.write_char('I');
284284
w.write_uint(id.to_uint());

branches/incoming/src/rustc/middle/trans/reflect.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,7 @@ impl reflector {
272272

273273
// Miscallaneous extra types
274274
ty::ty_trait(_, _, _) => self.leaf(~"trait"),
275-
ty::ty_var(_) => self.leaf(~"var"),
276-
ty::ty_var_integral(_) => self.leaf(~"var_integral"),
275+
ty::ty_infer(_) => self.leaf(~"infer"),
277276
ty::ty_param(p) => self.visit(~"param", ~[self.c_uint(p.idx)]),
278277
ty::ty_self => self.leaf(~"self"),
279278
ty::ty_type => self.leaf(~"type"),

branches/incoming/src/rustc/middle/trans/shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ fn shape_of(ccx: @crate_ctxt, t: ty::t) -> ~[u8] {
363363
~[shape_bare_fn],
364364
ty::ty_opaque_closure_ptr(_) =>
365365
~[shape_opaque_closure_ptr],
366-
ty::ty_var(_) | ty::ty_var_integral(_) | ty::ty_self =>
366+
ty::ty_infer(_) | ty::ty_self =>
367367
ccx.sess.bug(~"shape_of: unexpected type struct found")
368368
}
369369
}

branches/incoming/src/rustc/middle/trans/type_of.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,8 @@ fn type_of(cx: @crate_ctxt, t: ty::t) -> TypeRef {
171171
common::T_named_struct(llvm_type_name(cx, a_class, did, substs.tps))
172172
}
173173
ty::ty_self => cx.tcx.sess.unimpl(~"type_of: ty_self"),
174-
ty::ty_var(_) => cx.tcx.sess.bug(~"type_of with ty_var"),
174+
ty::ty_infer(*) => cx.tcx.sess.bug(~"type_of with ty_infer"),
175175
ty::ty_param(*) => cx.tcx.sess.bug(~"type_of with ty_param"),
176-
ty::ty_var_integral(_) => {
177-
cx.tcx.sess.bug(~"type_of shouldn't see a ty_var_integral");
178-
}
179176
};
180177

181178
cx.lltypes.insert(t, llty);

0 commit comments

Comments
 (0)