Skip to content

min_const_generics diagnostics improvements - #77825

Merged
bors merged 5 commits into
rust-lang:masterfrom
eopb:min_const_generics_diagnostic
Oct 14, 2020
Merged

min_const_generics diagnostics improvements#77825
bors merged 5 commits into
rust-lang:masterfrom
eopb:min_const_generics_diagnostic

Conversation

@eopb

@eopbeopb commented Oct 11, 2020

Copy link
Copy Markdown
Contributor

As disscussed in zulip/project-const-generics/non-trivial anonymous constant.

This is my first PR on the compiler.

@lcnr is mentoring me on this PR.

Related to #60551.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @eddyb

(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 Oct 11, 2020
@jyn514jyn514 added A-diagnostics Area: Messages for errors, warnings, and lints F-min_const_generics T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 11, 2020
@jyn514

Copy link
Copy Markdown
Member

r? @lcnr

@rust-highfiverust-highfive assigned lcnr and unassigned eddybOct 11, 2020
@lcnr

lcnr commented Oct 12, 2020

Copy link
Copy Markdown
Contributor

Nice, good job 👍

@bors r+ rollup

@bors

bors commented Oct 12, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit d7029cb has been approved by lcnr

@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 Oct 12, 2020
@varkor

Copy link
Copy Markdown
Contributor

Having taken a look at the errors in practice, I think there are a couple of minor tweaks that could make them more readable, so I'm going to leave a bit more feedback. Sorry for the trouble.

@bors r-

@borsbors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 12, 2020

@varkorvarkor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we can discuss this further on Zulip if any of my suggestions are contentious.

Comment threadcompiler/rustc_resolve/src/diagnostics.rs Outdated
Comment threadcompiler/rustc_resolve/src/diagnostics.rs Outdated
Comment threadcompiler/rustc_resolve/src/diagnostics.rs Outdated
Co-authored-by: varkor <github@varkor.com>
Comment threadcompiler/rustc_resolve/src/diagnostics.rs Outdated
Comment threadcompiler/rustc_resolve/src/diagnostics.rs Outdated
eopband others added 3 commits October 12, 2020 15:57
Co-authored-by: varkor <github@varkor.com>
Co-authored-by: varkor <github@varkor.com>
@varkor

Copy link
Copy Markdown
Contributor

I'm happy with the diagnostics now, so if @lcnr is also happy, we're good to go :)

@lcnr

lcnr commented Oct 13, 2020

Copy link
Copy Markdown
Contributor

lgtm

@bors r+

@bors

bors commented Oct 13, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 79351b1 has been approved by lcnr

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 13, 2020
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 13, 2020
…stic, r=lcnr
`min_const_generics` diagnostics improvements
As disscussed in [zulip/project-const-generics/non-trivial anonymous constant](https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics/topic/non-trivial.20anonymous.20constants).
This is my first PR on the compiler.
@lcnr is mentoring me on this PR.
Related to rust-lang#60551.
@JohnTitorJohnTitor mentioned this pull request Oct 13, 2020
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 13, 2020
…stic, r=lcnr
`min_const_generics` diagnostics improvements
As disscussed in [zulip/project-const-generics/non-trivial anonymous constant](https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics/topic/non-trivial.20anonymous.20constants).
This is my first PR on the compiler.
@lcnr is mentoring me on this PR.
Related to rust-lang#60551.
@JohnTitorJohnTitor mentioned this pull request Oct 13, 2020
@JohnTitorJohnTitor mentioned this pull request Oct 13, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 13, 2020
Rollup of 14 pull requests
Successful merges:
- rust-lang#77239 (Enable building Cargo for aarch64-apple-darwin)
- rust-lang#77569 (BTreeMap: type-specific variants of node_as_mut and cast_unchecked)
- rust-lang#77719 (Remove unnecessary rustc_const_stable attributes.)
- rust-lang#77722 (Remove unsafety from sys/unsupported and add deny(unsafe_op_in_unsafe_fn).)
- rust-lang#77725 (Add regression issue template)
- rust-lang#77776 ( Give an error when running `x.py test --stage 0 src/test/ui`)
- rust-lang#77786 (Mention rustdoc in `x.py setup`)
- rust-lang#77825 (`min_const_generics` diagnostics improvements)
- rust-lang#77868 (Include `llvm-dis`, `llc` and `opt` in `llvm-tools-preview` component)
- rust-lang#77884 (Use Option::unwrap_or instead of open-coding it)
- rust-lang#77886 (Replace trivial bool matches with the `matches!` macro)
- rust-lang#77892 (Replace absolute paths with relative ones)
- rust-lang#77895 (Include aarch64-apple-darwin in the dist manifests)
- rust-lang#77909 (bootstrap: set correct path for the build-manifest binary)
Failed merges:
- rust-lang#77902 (Include aarch64-pc-windows-msvc in the dist manifests)
r? `@ghost`
@bors
bors merged commit c44cc7e into rust-lang:masterOct 14, 2020
@rustbotrustbot added this to the 1.49.0 milestone Oct 14, 2020
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 lintsS-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

@eopb@rust-highfive@jyn514@lcnr@bors@varkor@eddyb@rustbot