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

libsyntax: Remove ~self and mut ~self from the language. #15925

Closed
wants to merge 1 commit into from

Conversation

pcwalton
Copy link
Contributor

This eliminates the last vestige of the ~ syntax.

Instead of ~self, write self: Box<TypeOfSelf>; instead of mut ~self, write mut self: Box<TypeOfSelf>, replacing TypeOfSelf with
the self-type parameter as specified in the implementation.

Closes #13885.

[breaking-change]

r? @alexcrichton

This eliminates the last vestige of the `~` syntax.

Instead of `~self`, write `self: Box<TypeOfSelf>`; instead of `mut
~self`, write `mut self: Box<TypeOfSelf>`, replacing `TypeOfSelf` with
the self-type parameter as specified in the implementation.

Closes rust-lang#13885.

[breaking-change]
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 27, 2023
internal: Remove debugging code in path resolution

Closes rust-lang#15924
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.

Remove ~, add Box
2 participants