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

borrowck: prefer "value" over "_" in diagnostics #70389

Merged
merged 2 commits into from
Mar 26, 2020

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Mar 25, 2020

@Centril Centril added the F-bindings_after_at `#![feature(bindings_after_at)]` label Mar 25, 2020
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 25, 2020
@Centril
Copy link
Contributor Author

Centril commented Mar 25, 2020

Let's try @bors delegate=mark-i-m

@bors
Copy link
Contributor

bors commented Mar 25, 2020

✌️ @mark-i-m can now approve this pull request

Copy link
Member

@mark-i-m mark-i-m left a comment

Choose a reason for hiding this comment

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

@Centril Thanks! I left a bunch of minor comments, but I don't think any of them really need to block this PR. Feel free to r=me if you don't want to address them here.

src/librustc_mir/borrow_check/diagnostics/mod.rs Outdated Show resolved Hide resolved
src/librustc_mir/borrow_check/diagnostics/mod.rs Outdated Show resolved Hide resolved
src/librustc_mir/util/borrowck_errors.rs Outdated Show resolved Hide resolved
src/librustc_mir/util/borrowck_errors.rs Outdated Show resolved Hide resolved
src/librustc_mir/util/borrowck_errors.rs Outdated Show resolved Hide resolved
@Centril
Copy link
Contributor Author

Centril commented Mar 26, 2020

Addressed the comments. :)

r? @mark-i-m @bors r=mark-i-m

@bors
Copy link
Contributor

bors commented Mar 26, 2020

📌 Commit 632c0af has been approved by mark-i-m

@rust-highfive rust-highfive assigned mark-i-m and unassigned pnkfelix Mar 26, 2020
@bors 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-review Status: Awaiting review from the assignee but also interested parties. labels Mar 26, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 26, 2020
Rollup of 6 pull requests

Successful merges:

 - rust-lang#69866 (Rename `def_span` to `guess_head_span`)
 - rust-lang#69878 (Tweak chained operators diagnostic)
 - rust-lang#70375 (avoid catching InterpError)
 - rust-lang#70386 (typeck: minor pattern typing improvements)
 - rust-lang#70389 (borrowck: prefer "value" over "`_`" in diagnostics)
 - rust-lang#70395 (Update cargo.)

Failed merges:

r? @ghost
@bors bors merged commit 7db4825 into rust-lang:master Mar 26, 2020
@Centril Centril deleted the borrowck-no-underscores branch March 26, 2020 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-bindings_after_at `#![feature(bindings_after_at)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NLL diagnostics for ref mut z @ &mut Some(ref a) uses _ as binding name
5 participants