viperproject / prusti-dev

A static verifier for Rust, based on the Viper verification infrastructure.
http://prusti.org
Other
1.52k stars 102 forks source link

Fix doc #1492

Closed pixelshot91 closed 4 months ago

Aurel300 commented 4 months ago

Thanks! The changes look good, but why the new anchor? I don't see it used anywhere.

pixelshot91 commented 4 months ago

The anchor is used here: https://viperproject.github.io/prusti-dev/user-guide/tour/pledges.html#writing-a-test-for-our-specification Right now the snippet only shows this:

#[cfg(prusti)]
mod prusti_tests {
    use super::*;
fpoli commented 4 months ago

Can we merge, @Aurel300?

Aurel300 commented 4 months ago

The anchor is used here: [...]

Ah, my bad. Thanks!