Skip to content

Add long explanation for E0212 - #79639

Merged
bors merged 3 commits into
rust-lang:masterfrom
sasurau4:feature/add-long-explanation-E0212
Dec 11, 2020
Merged

Add long explanation for E0212#79639
bors merged 3 commits into
rust-lang:masterfrom
sasurau4:feature/add-long-explanation-E0212

Conversation

@sasurau4

Copy link
Copy Markdown
Contributor

Helps with #61137

@rust-highfive

Copy link
Copy Markdown
Contributor

Some changes occurred in diagnostic error codes

cc @GuillaumeGomez

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @estebank

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 2, 2020
@jyn514jyn514 added the A-diagnostics Area: Messages for errors, warnings, and lints label Dec 2, 2020
Comment threadcompiler/rustc_error_codes/src/error_codes/E0212.md Outdated
@jyn514jyn514 added A-lifetimes Area: Lifetimes / regions T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 2, 2020
@sasurau4
sasurau4 requested a review from jyn514December 3, 2020 09:56

@jyn514jyn514 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squashing is good, but you can wait to squash until all the comments have been addressed if you like.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe only have one example? These all look basically the same and I think it's more important to be concise than exhaustive here. I don't feel strongly about that though.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took these example from corresponding test cases. I agree with you that the important point is conciseness rather than exhaustiveness. Also, I want to know what other reviewers think about this.

Comment threadcompiler/rustc_error_codes/src/error_codes/E0212.md Outdated
@sasurau4
sasurau4force-pushed the feature/add-long-explanation-E0212 branch from 532c10f to be34f7fCompareDecember 4, 2020 12:56
sasurau4and others added 3 commits December 4, 2020 22:17
Update compiler/rustc_error_codes/src/error_codes/E0212.md
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
@sasurau4
sasurau4force-pushed the feature/add-long-explanation-E0212 branch from be34f7f to 87c6216CompareDecember 4, 2020 13:17
@sasurau4
sasurau4 requested a review from jyn514December 4, 2020 13:21

@jyn514jyn514 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'd like @estebank to double-check the new error message I suggested makes sense.

@Dylan-DPC-zz

Copy link
Copy Markdown

r? @GuillaumeGomez

@GuillaumeGomez

Copy link
Copy Markdown
Member

Looks good to me. Do you want to squash or not here? In any case, r=me once ready.

@jyn514

Copy link
Copy Markdown
Member

@bors delegate=@sasurau4

@bors

bors commented Dec 9, 2020

Copy link
Copy Markdown
Collaborator

✌️ @@sasurau4 can now approve this pull request

@sasurau4

Copy link
Copy Markdown
ContributorAuthor

@bors r=GuillaumeGomez rollup

@bors

bors commented Dec 10, 2020

Copy link
Copy Markdown
Collaborator

@sasurau4: 🔑 Insufficient privileges: Not in reviewers

@bors

bors commented Dec 10, 2020

Copy link
Copy Markdown
Collaborator

@sasurau4: 🔑 Insufficient privileges: not in try users

@sasurau4

Copy link
Copy Markdown
ContributorAuthor

@bors r+ rollup

@bors

bors commented Dec 10, 2020

Copy link
Copy Markdown
Collaborator

@sasurau4: 🔑 Insufficient privileges: Not in reviewers

@bors

bors commented Dec 10, 2020

Copy link
Copy Markdown
Collaborator

@sasurau4: 🔑 Insufficient privileges: not in try users

@jyn514

Copy link
Copy Markdown
Member

😕

@bors r=GuillaumeGomez rollup

@bors

bors commented Dec 10, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 87c6216 has been approved by GuillaumeGomez

@borsbors 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-review Status: Awaiting review from the assignee but also interested parties. labels Dec 10, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Dec 10, 2020
…on-E0212, r=GuillaumeGomez
Add long explanation for E0212
Helps with rust-lang#61137
@tmandrytmandry mentioned this pull request Dec 11, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 11, 2020
Rollup of 11 pull requests
Successful merges:
- rust-lang#77027 (Improve documentation for `std::{f32,f64}::mul_add`)
- rust-lang#79375 (Make the kernel_copy tests more robust/concurrent.)
- rust-lang#79639 (Add long explanation for E0212)
- rust-lang#79698 (Add tracking issue template for library features.)
- rust-lang#79809 (Dogfood `str_split_once()`)
- rust-lang#79851 (Clarify the 'default is only allowed on...' error)
- rust-lang#79858 (Update const-fn doc in unstable-book)
- rust-lang#79860 (Clarify that String::split_at takes a byte index.)
- rust-lang#79871 (Fix small typo in `wrapping_shl` documentation)
- rust-lang#79896 (Make search results tab and help button focusable with keyboard)
- rust-lang#79917 (Use Symbol for inline asm register class names)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit f3a3fc9 into rust-lang:masterDec 11, 2020
@rustbotrustbot added this to the 1.50.0 milestone Dec 11, 2020
@sasurau4
sasurau4 deleted the feature/add-long-explanation-E0212 branch December 11, 2020 14:15
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-lifetimesArea: Lifetimes / regionsS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@sasurau4@rust-highfive@Dylan-DPC-zz@GuillaumeGomez@jyn514@bors@estebank@rustbot