Attempt at including CodegenCx within Builder with Associated types

This commit is contained in:
Denis Merigoux 2018-09-06 18:31:42 -07:00 committed by Eduard-Mihai Burtescu
parent 1929ac2007
commit c487b825b0
4 changed files with 52 additions and 41 deletions

View file

@ -50,13 +50,13 @@ pub fn type_is_freeze<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, ty: Ty<'tcx>) -> bo
ty.is_freeze(tcx, ty::ParamEnv::reveal_all(), DUMMY_SP)
}
pub struct OperandBundleDef<'a, Value: 'a> {
pub struct OperandBundleDef<'a, Value> {
pub name: &'a str,
pub val: Value
}
impl OperandBundleDef<'ll, &'ll Value> {
pub fn new(name: &'ll str, val: &'ll Value) -> Self {
impl<'a, Value> OperandBundleDef<'a, Value> {
pub fn new(name: &'a str, val: Value) -> Self {
OperandBundleDef {
name,
val