4

Suggest let for possible binding with ty by chenyukang · Pull Request #111120 ·...

 1 year ago
source link: https://github.com/rust-lang/rust/pull/111120
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Conversation

rustbot

added A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

labels

May 3, 2023

Collaborator

Member

@Nilstrieb Nilstrieb

left a comment

I don't think this is a great place to put it (the error message is very specialized for statements, but the location is pretty generic), I'd prefer it if you found a more specific place. After fixing your ICE locally, this snippet produces the following output:

struct A {
    : u8 =,
}
error: expected identifier, found `:`
 --> uwu.rs:6:5
  |
5 | struct A {
  |        - while parsing this struct
6 |     : u8 =,
  |     ^ expected identifier
  |
help: you might have meant to introduce a new binding
  |
5 | struct A let {
  |          +++

which, while this snippet is totally nonsensical, is not very good.

Nilstrieb

added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

May 7, 2023

Member

Author

@rustbot ready

rustbot

added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

labels

May 8, 2023

Member

@Nilstrieb Nilstrieb

left a comment

That implementation is a lot nicer! r=me after addressing the comment

Nilstrieb

added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

May 8, 2023

Member

Author

@bors r=Nilstrieb

Contributor

pushpin Commit 4d219d0 has been approved by Nilstrieb

It is now in the queue for this repository.

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

labels

May 9, 2023

bors

merged commit 8c51701 into

rust-lang:master

May 9, 2023

11 checks passed

rustbot

added this to the 1.71.0 milestone

May 9, 2023

rust-timer

added a commit to rust-lang-ci/rust that referenced this pull request

May 9, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Nilstrieb

Nilstrieb requested changes
Labels
A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects

None yet

Milestone

1.71.0

Development

Successfully merging this pull request may close these issues.

None yet

4 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK