-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is an InlineAsm output a potential use that needs to activate a borrow? #46891
Comments
Probably it should activate. It'd be nice to make a test of course but I don't think I'm up to that from my phone. On Dec 20, 2017 15:00, scottmcm <notifications@github.com> wrote:I added the following FIXME recently: https://github.com/rust-lang/rust/blob/fb245e0/src/librustc_mir/dataflow/impls/borrows.rs#L543-L546
I'll gladly make a PR to change this or remove the fixme, but I don't know enough to decide what should happen.
cc @nikomatsakis maybe?
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
|
Given the more limited definition of two-phase borrows, I think it's impossible for such a use to activate a borrow? |
Re-triaging for #56754. NLL-sound. But since inline ASM is unstable, I'm tentatively tagging as P-medium; there's bigger fish for NLL to fry, IMO. |
It also applies only to a version of two-phase borrows that no-longer exists. The current two-phase borrow implementation activates on any use other than a rust/src/librustc_mir/borrow_check/borrow_set.rs Lines 233 to 296 in ddab10a
|
Discussing in NLL meeting. Closing as out of date. |
I added the following FIXME recently: https://github.com/rust-lang/rust/blob/fb245e0/src/librustc_mir/dataflow/impls/borrows.rs#L543-L546
I'll gladly make a PR to change this or remove the fixme, but I don't know enough to decide what should happen.
cc @nikomatsakis maybe?
The text was updated successfully, but these errors were encountered: