Attempt at including CodegenCx within Builder with Associated types
This commit is contained in:
parent
1929ac2007
commit
c487b825b0
4 changed files with 52 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue