Skip to content

Commit

Permalink
Update GenericArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhassan-aws committed Aug 28, 2024
1 parent 842fce3 commit f7bc4db
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions kani-compiler/src/codegen_aeneas_llbc/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,10 @@ impl<'a, 'tcx> FunctionCtx<'a, 'tcx> {
RigidTy::Str => CharonTy::Adt(
TypeId::Assumed(AssumedTy::Str),
GenericArgs {
regions: Vec::new(),
types: Vec::new(),
const_generics: Vec::new(),
trait_refs: Vec::new(),
regions: Vector::new(),
types: Vector::new(),
const_generics: Vector::new(),
trait_refs: Vector::new(),
},
),
RigidTy::Ref(_region, ty, mutability) => CharonTy::Ref(
Expand All @@ -460,10 +460,10 @@ impl<'a, 'tcx> FunctionCtx<'a, 'tcx> {
RigidTy::Tuple(ty) => {
let types = ty.iter().map(|ty| self.translate_ty(*ty)).collect();
let generic_args = GenericArgs {
regions: Vec::new(),
regions: Vector::new(),
types,
const_generics: Vec::new(),
trait_refs: Vec::new(),
const_generics: Vector::new(),
trait_refs: Vector::new(),
};
CharonTy::Adt(TypeId::Tuple, generic_args)
}
Expand Down Expand Up @@ -559,10 +559,10 @@ impl<'a, 'tcx> FunctionCtx<'a, 'tcx> {
let fn_ptr = FnPtr {
func: fn_ptr,
generics: GenericArgs {
regions: Vec::new(),
types: Vec::new(),
const_generics: Vec::new(),
trait_refs: Vec::new(),
regions: Vector::new(),
types: Vector::new(),
const_generics: Vector::new(),
trait_refs: Vector::new(),
},
};
let func = FnOperand::Regular(fn_ptr);
Expand Down Expand Up @@ -658,10 +658,10 @@ impl<'a, 'tcx> FunctionCtx<'a, 'tcx> {
FunDeclId::from_usize(def.def_id().to_index()),
)),
generics: GenericArgs {
regions: Vec::new(),
types: Vec::new(),
const_generics: Vec::new(),
trait_refs: Vec::new(),
regions: Vector::new(),
types: Vector::new(),
const_generics: Vector::new(),
trait_refs: Vector::new(),
},
};
RawConstantExpr::FnPtr(fn_ptr)
Expand Down

0 comments on commit f7bc4db

Please sign in to comment.