You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix "unused mut" warnings created by generated code. (rust-lang#3247)
This change adds "unused_mut" to the list of suppressed lints for
wrappers generated by the contracts macros. This will get rid of
spurious errors caused by mutable parameters to functions.
This fixes the example from
model-checking/kani#3010 .
It can be tested by adding the example from the issues to
tests/expected/test_macros/gcd.rs, creating a file
tests/expected/test_macros/gcd.expected, then running
```bash
cargo build-dev
RUST_BACKTRACE=1 cargo run -p compiletest -- --logfile logfile.txt --suite expected --mode expected --ignored --no-fail-fast --src-base tests/expected/test_macros
```
RESOLVESrust-lang#3010
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
---------
Co-authored-by: Jacob Salzberg <[email protected]>
0 commit comments