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

generic_const_exprs: suggest to add the feature, not use it #118486

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

RalfJung
Copy link
Member

Usually our missing feature messages look something like

  = help: add `#![feature(inline_const)]` to the crate attributes to enable

However generic_const_exprs used a different verb. That's inconsistent and it also means playground won't add that nice hyperlink to add the feature automatically. So let's use the same verb as everywhere else.

@rustbot
Copy link
Collaborator

rustbot commented Nov 30, 2023

r? @TaKO8Ki

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added 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 Nov 30, 2023
@compiler-errors
Copy link
Member

r? compiler-errors @bors r+ rollup

@bors
Copy link
Contributor

bors commented Nov 30, 2023

📌 Commit 1dbfe17 has been approved by compiler-errors

It is now in the queue for this repository.

@rustbot rustbot assigned compiler-errors and unassigned TaKO8Ki Nov 30, 2023
@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 Nov 30, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 1, 2023
Rollup of 3 pull requests

Successful merges:

 - rust-lang#118483 (rustdoc: `div.where` instead of fmt-newline class)
 - rust-lang#118486 (generic_const_exprs: suggest to add the feature, not use it)
 - rust-lang#118489 (Wesley is on vacation)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 8b6e9ca into rust-lang:master Dec 1, 2023
11 checks passed
@rustbot rustbot added this to the 1.76.0 milestone Dec 1, 2023
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 1, 2023
Rollup merge of rust-lang#118486 - RalfJung:add-feature, r=compiler-errors

generic_const_exprs: suggest to add the feature, not use it

Usually our missing feature messages look something like
```
  = help: add `#![feature(inline_const)]` to the crate attributes to enable
```
However `generic_const_exprs` used a different verb. That's inconsistent and it also means playground won't add that nice hyperlink to add the feature automatically. So let's use the same verb as everywhere else.
@RalfJung RalfJung deleted the add-feature branch December 1, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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