Skip to content

Commit 1eeff65

Browse files
committed
Bonus Fix: typarams are no longer inhabited
1 parent b9714f2 commit 1eeff65

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
@@ -1020,22 +1020,6 @@ pub fn T_chan(cx: @CrateContext, _t: TypeRef) -> TypeRef {
10201020
pub fn T_taskptr(cx: @CrateContext) -> TypeRef { return T_ptr(cx.task_type); }
10211021

10221022

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

0 commit comments

Comments
 (0)