From: Alex Crichton Date: Wed, 18 Feb 2015 22:31:59 +0000 (-0800) Subject: rollup merge of #22437: dotdash/fix_array_type X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=386d329ac5506f1e82c1e1095b12c30c3f990cc9;p=rust.git rollup merge of #22437: dotdash/fix_array_type In trans_slice_vec we currently use arrayalloca, which gives us a pointer to the element type with enough memory allocated for the requested number of elements. This works, but everywhere else we use the [n x T] type for fixed size arrays and so we have to bitcast the pointer here. Let's directly use the proper type for the allocation and remove some code duplication along the way. --- 386d329ac5506f1e82c1e1095b12c30c3f990cc9