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

librustc: Check function argument patterns for legality of by-move #15153

Closed

Conversation

pcwalton
Copy link
Contributor

bindings.

This will break code that incorrectly did things like:

fn f(a @ box b: Box<String>) {}

Fix such code to not rely on undefined behavior.

Closes #12534.

[breaking-change]

r? @alexcrichton

bindings.

This will break code that incorrectly did things like:

    fn f(a @ box b: Box<String>) {}

Fix such code to not rely on undefined behavior.

Closes rust-lang#12534.

[breaking-change]
@alexcrichton
Copy link
Member

That is a nice change.

bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Values should be moved in deconstructed arguments
2 participants