Skip to content

Do not allow #[rustc_legacy_const_generics] on methods #94686

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

ChayimFriedman2
Copy link
Contributor

It caused an ICE since item was None.

Fixes #94629.

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Mar 7, 2022
@rust-highfive
Copy link
Contributor

r? @jackh726

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 7, 2022
@notriddle
Copy link
Contributor

You mean “do not allow,” right?

@ChayimFriedman2
Copy link
Contributor Author

@notriddle Isn't it exactly what I wrote?

@compiler-errors
Copy link
Member

@ChayimFriedman2, I think notriddle means there is a typo in the PR title.

@jackh726 jackh726 changed the title Do now allow #[rustc_legacy_const_generics] on methods Do not allow #[rustc_legacy_const_generics] on methods Mar 7, 2022
@notriddle
Copy link
Contributor

The same typo is also in the commit message.

It caused an ICE since `item` was `None`.
@ChayimFriedman2
Copy link
Contributor Author

Oh yeah, my bad. Fixed it.

@jackh726
Copy link
Member

jackh726 commented Mar 9, 2022

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Mar 9, 2022

📌 Commit 96515f4 has been approved by jackh726

@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 9, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 9, 2022
…h726

Do not allow `#[rustc_legacy_const_generics]` on methods

It caused an ICE since `item` was `None`.

Fixes rust-lang#94629.
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 9, 2022
Rollup of 6 pull requests

Successful merges:

 - rust-lang#94312 (Edit `rustc_trait_selection::infer::lattice` docs)
 - rust-lang#94583 (Add a team for '`@rustbot` ping fuchsia')
 - rust-lang#94686 (Do not allow `#[rustc_legacy_const_generics]` on methods)
 - rust-lang#94699 (BTree: remove dead data needlessly complicating insert)
 - rust-lang#94756 (Use `unreachable!` for an unreachable code path)
 - rust-lang#94759 (Update cargo)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 3ce01f7 into rust-lang:master Mar 9, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 9, 2022
@ChayimFriedman2 ChayimFriedman2 deleted the issue-94629 branch March 9, 2022 09:09
# for free to join this conversation on GitHub. Already have an account? # 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.

ICE: should be a function item
7 participants