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 various redundant_closure bugs
changelog: Fix various false negatives and false positives for [`redundant_closure`]
Closesrust-lang#3071Closesrust-lang#4002
This lint is full of weird nuances and this is basically a re-write to tighten up the logic.
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this issue
Sep 25, 2023
Relevant upstream changes:
rust-lang#120675: An intrinsic `Symbol` is
now wrapped in a `IntrinsicDef` struct, so the relevant part of the code
needed to be updated.
rust-lang#121464: The second argument of
the `create_wrapper_file` function changed from a vector to a string.
rust-lang#121662: `NullOp::DebugAssertions`
was renamed to `NullOp::UbCheck` and it now has data (currently unused
by Kani)
rust-lang#121728: Introduces `F16` and
`F128`, so needed to add stubs for them
rust-lang#121969: `parse_sess` was renamed
to `psess`, so updated the relevant code.
rust-lang#122059: The
`is_val_statically_known` intrinsic is now used in some `core::fmt`
code, so had to handle it in (codegen'ed to false).
rust-lang#122233: This added a new
`retag_box_to_raw` intrinsic. This is an operation that is primarily
relevant for stacked borrows. For Kani, we just return the pointer.
Resolvesrust-lang#3057
This should fail:
but it does not. Should be a simple fix, add the appropriate line to
check_loans.rs
The text was updated successfully, but these errors were encountered: