Skip to content

librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except #13958

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

Merged
merged 1 commit into from
May 7, 2014

Conversation

pcwalton
Copy link
Contributor

@pcwalton pcwalton commented May 6, 2014

for ~str/~[].

Note that ~self still remains, since I forgot to add support for
Box<self> before the snapshot.

r? @brson or @alexcrichton or whoever

@alexcrichton
Copy link
Member

The mechanical changes seem fine to me, two questions I have:

  • fn foo(Box<self>) vs fn foo(self: Box<Self>)
  • Should Box be in the prelude?

@pcwalton
Copy link
Contributor Author

pcwalton commented May 6, 2014

Waiting a long time for discussion on something that is already agreed on is going to do nothing other than cause this PR to bitrot.

This does not add support for Box<self>; it only adds support for stuff that was already agreed on.

@alexcrichton
Copy link
Member

I'm not saying we should wait a long time, just till tomorrow to discuss whether Box should be in the prelude or not.

@pcwalton
Copy link
Contributor Author

pcwalton commented May 6, 2014

I guess that's fine.

@alexcrichton
Copy link
Member

Ah, almost forgot, this commit message should be worded in accordance with our new breaking changes policy.

for `~str`/`~[]`.

Note that `~self` still remains, since I forgot to add support for
`Box<self>` before the snapshot.

How to update your code:

* Instead of `~EXPR`, you should write `box EXPR`.

* Instead of `~TYPE`, you should write `Box<Type>`.

* Instead of `~PATTERN`, you should write `box PATTERN`.

[breaking-change]
bors added a commit that referenced this pull request May 7, 2014
for `~str`/`~[]`.

Note that `~self` still remains, since I forgot to add support for
`Box<self>` before the snapshot.

r? @brson or @alexcrichton or whoever
@bors bors closed this May 7, 2014
@bors bors merged commit 090040b into rust-lang:master May 7, 2014
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Jan 28, 2025
`define_clippy_lints` does not exist, `declare_clippy_lint` exists.

changelog: none
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.

3 participants