Skip to content

Commit

Permalink
suppress warning for unused variable for print_u64 when building wi…
Browse files Browse the repository at this point in the history
…th cargo with cfg(not(feature = "std"))

addresses #1133
  • Loading branch information
utaal committed May 22, 2024
1 parent d169dbb commit 4132e1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/vstd/pervasive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ pub fn unreached<A>() -> A
panic!("unreached_external")
}

#[allow(unused_variables)] // when built with cfg(not(feature = "std"))
#[verifier::external_body] /* vattr */
pub fn print_u64(i: u64) {
println!("{}", i);
Expand Down

0 comments on commit 4132e1f

Please sign in to comment.