Skip to content

Commit

Permalink
Try to remove host warnings and fix ensures
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed Jun 11, 2024
1 parent bfefeff commit bced939
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions library/contracts/safety/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ proc-macro2 = "1.0"
proc-macro-error = "1.0.4"
quote = "1.0.20"
syn = { version = "2.0.18", features = ["full"] }


[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani_host)'] }
2 changes: 1 addition & 1 deletion library/contracts/safety/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ pub fn requires(attr: TokenStream, item: TokenStream) -> TokenStream {
#[proc_macro_error]
#[proc_macro_attribute]
pub fn ensures(attr: TokenStream, item: TokenStream) -> TokenStream {
tool::requires(attr, item)
tool::ensures(attr, item)
}

0 comments on commit bced939

Please sign in to comment.