Skip to content

Commit c3fcd9d

Browse files
committed
---
yaml --- r: 21658 b: refs/heads/snap-stage3 c: fe9f055 h: refs/heads/master v: v3
1 parent 79af78d commit c3fcd9d

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: d5b3e44b472dd94e9f0fb9b6d5f4f992df18a6a5
4+
refs/heads/snap-stage3: fe9f0556d28e99417cef022c7486fe01440906f0
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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/snap-stage3/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/snap-stage3/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/snap-stage3/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/snap-stage3/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)