Skip to content

Commit

Permalink
Add check overflow attribute to flux-rs (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrindisbacher authored Nov 22, 2024
1 parent 3c86cbd commit 93e22bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/flux-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ pub fn opaque(attr: TokenStream, tokens: TokenStream) -> TokenStream {
attr_impl::opaque(attr, tokens)
}

#[proc_macro_attribute]
pub fn check_overflow(attr: TokenStream, tokens: TokenStream) -> TokenStream {
attr_impl::check_overflow(attr, tokens)
}

#[proc_macro_attribute]
pub fn trusted(attr: TokenStream, tokens: TokenStream) -> TokenStream {
attr_impl::trusted(attr, tokens)
Expand Down Expand Up @@ -123,6 +128,7 @@ mod attr_sysroot {
constant,
invariant,
opaque,
check_overflow,
trusted,
trusted_impl,
generics,
Expand Down Expand Up @@ -166,6 +172,7 @@ mod attr_dummy {
invariant,
constant,
opaque,
check_overflow,
trusted,
trusted_impl,
generics,
Expand Down

0 comments on commit 93e22bb

Please sign in to comment.