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

remove error code from E0789, add UI test/docs #107148

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

Ezrashaw
Copy link
Contributor

E0789 shouldn't have an error code, it's explicitly internal-only and is tiny in scope. (I wonder if we can tighten the standard for this in the RFC?) I also added a UI test and error docs (done like E0208, they are "no longer emitted").

r? @GuillaumeGomez (shouldn't need a compiler review, it's pretty minor)

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc 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 Jan 21, 2023
@rustbot
Copy link
Collaborator

rustbot commented Jan 21, 2023

Some changes occurred in diagnostic error codes

cc @GuillaumeGomez

// paired with a `stable` attribute
```

*Note that while `#[rustc_allowed_through_unstable_modules]` still exists and*
Copy link
Member

Choose a reason for hiding this comment

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

Please remote the stars. I don't think having this effect brings much on this paragraph.

*is used within the compiler, it no longer is marked as `E0789` and instead*
*has no error code.*

Typically when a item is marked with a `stable` attribute, the modules that
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Typically when a item is marked with a `stable` attribute, the modules that
Typically when an item is marked with a `stable` attribute, the modules that

@GuillaumeGomez
Copy link
Member

Even if the change in the compiler is super small, still need someone from the compiler team to take a look. ;)

cc @compiler-errors

@compiler-errors
Copy link
Member

Compiler change looks good to me

@Ezrashaw Ezrashaw force-pushed the uncode-e0789 branch 2 times, most recently from 3bf2cdb to dc8325d Compare January 22, 2023 00:13
@Ezrashaw
Copy link
Contributor Author

@GuillaumeGomez I've changed my mind on this a bit, now I think that it should keep it's error code. If we remove it then it's just wasted error code real estate. I've applied your suggestions.


The internal `rustc_allowed_through_unstable_modules` attribute must be used
on an item with a `stable` attribute.

Copy link
Member

Choose a reason for hiding this comment

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

Still missing the style formatting "Erroneous code example". ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. Won't it be nice when tidy can finally lint this properly!

Copy link
Member

Choose a reason for hiding this comment

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

I'm definitely looking forward to it!

@GuillaumeGomez
Copy link
Member

Thanks!

@bors r=compiler-errors,GuillaumeGomezrollup

@bors
Copy link
Contributor

bors commented Jan 23, 2023

📌 Commit 00ff718 has been approved by compiler-errors,GuillaumeGomezrollup

It is now in the queue for this repository.

@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 Jan 23, 2023
@GuillaumeGomez
Copy link
Member

Oh nice failure.

@bors r=compiler-errors,GuillaumeGomez rollup

@bors
Copy link
Contributor

bors commented Jan 23, 2023

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented Jan 23, 2023

📌 Commit 00ff718 has been approved by compiler-errors,GuillaumeGomez

It is now in the queue for this repository.

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 23, 2023
Rollup of 7 pull requests

Successful merges:

 - rust-lang#106796 (BPF: Disable atomic CAS)
 - rust-lang#106886 (Make stage2 rustdoc and proc-macro-srv disableable in x.py install)
 - rust-lang#107101 (Filter param-env predicates for errors before calling `to_opt_poly_trait_pred`)
 - rust-lang#107109 (ThinBox: Add intra-doc-links for Metadata)
 - rust-lang#107148 (remove error code from `E0789`, add UI test/docs)
 - rust-lang#107151 (Instantiate dominators algorithm only once)
 - rust-lang#107153 (Consistently use dominates instead of is_dominated_by)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 809d4aa into rust-lang:master Jan 23, 2023
@rustbot rustbot added this to the 1.69.0 milestone Jan 23, 2023
@Ezrashaw Ezrashaw deleted the uncode-e0789 branch March 9, 2023 08:36
@Ezrashaw Ezrashaw restored the uncode-e0789 branch May 3, 2024 08:11
@Ezrashaw Ezrashaw deleted the uncode-e0789 branch May 13, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc 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
Development

Successfully merging this pull request may close these issues.

5 participants