Skip to content

Commit fb52956

Browse files
committed
auto merge of #10677 : jld/rust/type-enum-discrim-rm, r=alexcrichton
2 parents 18687a9 + 7920772 commit fb52956

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc/middle/trans/type_.rs

-4
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,6 @@ impl Type {
278278
Type::opaque_box(cx).ptr_to()
279279
}
280280

281-
pub fn enum_discrim(cx: &CrateContext) -> Type {
282-
cx.int_type
283-
}
284-
285281
pub fn opaque_trait(ctx: &CrateContext, store: ty::TraitStore) -> Type {
286282
let tydesc_ptr = ctx.tydesc_type.ptr_to();
287283
let box_ty = match store {

0 commit comments

Comments
 (0)