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
The issue is in borrowck::gather_loans::mod:: specifically in the gather_loans_for_static_initializer function. This should be fixed by implementing a small Visitor that will walk the passed expr and look for cases like the one in the example below:
…, r=nikomatsakis
It was possible to borrow unsafe static items in static initializers.
This patch implements a small `Visitor` that walks static initializer's
expressions and checks borrows aliasability.
Fixes#13005
cc @nikomatsakis r?
…-to-matches-macro, r=jonas-schievink
feature: Assist to turn match into matches! invocation
Resolvesrust-lang#12510
This PR adds an assist, which convert 2-arm match that evaluates to a boolean into the equivalent matches! invocation.
This is currently valid and it shouldn't be.
The issue is in
borrowck::gather_loans::mod::
specifically in thegather_loans_for_static_initializer
function. This should be fixed by implementing a smallVisitor
that will walk the passed expr and look for cases like the one in the example below:cc @nikomatsakis
The text was updated successfully, but these errors were encountered: