Skip to content
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

Ownership analysis doesn't mark params if return is move #145

Open
TheDan64 opened this issue Aug 23, 2019 · 0 comments
Open

Ownership analysis doesn't mark params if return is move #145

TheDan64 opened this issue Aug 23, 2019 · 0 comments
Labels
bug Something isn't working refactorer This issue relates to the refactoring tool

Comments

@TheDan64
Copy link
Contributor

fn test(a: *mut u32, b: *mut u32) -> *mut u32 {
    *b = 1;

    a
}

In this example the return type should be marked move, and neither param is getting marked at all (even though b isn't involved in the move at all). Works fine if you change return of a to 0 as *mut u32, in which case the return is no longer a move.

@TheDan64 TheDan64 added bug Something isn't working refactorer This issue relates to the refactoring tool labels Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactorer This issue relates to the refactoring tool
Projects
None yet
Development

No branches or pull requests

1 participant