Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hax-lib): use super::* in refinement expansion #762

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions hax-lib-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,9 @@ pub fn refinement_type(mut attr: pm::TokenStream, item: pm::TokenStream) -> pm::
quote! {
#[allow(non_snake_case)]
mod #module_ident {
#[allow(unused_imports)]
use super::*;

#refinement_item

#newtype_as_ref_attr
Expand All @@ -828,7 +831,9 @@ pub fn refinement_type(mut attr: pm::TokenStream, item: pm::TokenStream) -> pm::

#[::hax_lib::exclude]
impl #generics ::hax_lib::Refinement for #ident <#generics_args> {

type InnerType = #inner_ty;

fn new(x: Self::InnerType) -> Self {
#debug_assert
Self(x)
Expand Down
Loading