Skip to content

Commit 8b9ff40

Browse files
committed
Clean up unused vir def, and switched to implicit lifetime for typ_to_air
1 parent 18ccfba commit 8b9ff40

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Diff for: verify/vir/src/def.rs

-5
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ pub const TYPE_ID_SINT: &str = "SINT";
8181
pub const PREFIX_TYPE_ID: &str = "TYPE%";
8282
pub const HAS_TYPE: &str = "has_type";
8383
pub const VARIANT_FIELD_SEPARATOR: &str = "/";
84-
pub const SUFFIX_OPAQUE_DATATYPE: &str = "&OPAQ";
8584

8685
pub fn suffix_global_id(ident: &Ident) -> Ident {
8786
Arc::new(ident.to_string() + SUFFIX_GLOBAL)
@@ -111,10 +110,6 @@ pub fn prefix_type_id(ident: &Ident) -> Ident {
111110
Arc::new(PREFIX_TYPE_ID.to_string() + ident)
112111
}
113112

114-
pub fn opaque_datatype(ident: &Ident) -> Ident {
115-
Arc::new(ident.as_ref().to_owned() + SUFFIX_OPAQUE_DATATYPE)
116-
}
117-
118113
pub fn prefix_box(ident: &Ident) -> Ident {
119114
Arc::new(PREFIX_BOX.to_string() + ident)
120115
}

Diff for: verify/vir/src/sst_to_air.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub(crate) fn apply_range_fun(name: &str, range: &IntRange, exprs: Vec<Expr>) ->
4141
str_apply(name, &args)
4242
}
4343

44-
pub(crate) fn typ_to_air<'a>(_ctx: &'a Ctx, typ: &Typ) -> air::ast::Typ {
44+
pub(crate) fn typ_to_air(_ctx: &Ctx, typ: &Typ) -> air::ast::Typ {
4545
match &**typ {
4646
TypX::Unit => str_typ(UNIT),
4747
TypX::Int(_) => int_typ(),

0 commit comments

Comments
 (0)