Skip to content

Commit a8237a4

Browse files
committed
Bonus Fix: typarams are no longer inhabited
1 parent 8105da8 commit a8237a4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/librustc/middle/trans/common.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,22 +1016,6 @@ pub fn T_chan(cx: @CrateContext, _t: TypeRef) -> TypeRef {
10161016
pub fn T_taskptr(cx: @CrateContext) -> TypeRef { return T_ptr(cx.task_type); }
10171017

10181018

1019-
// This type must never be used directly; it must always be cast away.
1020-
pub fn T_typaram(tn: @TypeNames) -> TypeRef {
1021-
let s = @"typaram";
1022-
match name_has_type(tn, s) {
1023-
Some(t) => return t,
1024-
_ => ()
1025-
}
1026-
let t = T_i8();
1027-
associate_type(tn, s, t);
1028-
return t;
1029-
}
1030-
1031-
pub fn T_typaram_ptr(tn: @TypeNames) -> TypeRef {
1032-
return T_ptr(T_typaram(tn));
1033-
}
1034-
10351019
pub fn T_opaque_cbox_ptr(cx: @CrateContext) -> TypeRef {
10361020
// closures look like boxes (even when they are ~fn or &fn)
10371021
// see trans_closure.rs

0 commit comments

Comments
 (0)