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

Do not ICE for unexpected lifetime with ConstGeneric rib #109222

Merged
merged 1 commit into from
Mar 18, 2023

Conversation

chenyukang
Copy link
Member

Fixes #109143
r? @petrochenkov

Combining this test with the previous test will affect the previous diagnostics, so I added a separate test case.

@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 Mar 16, 2023
@petrochenkov
Copy link
Contributor

Combining this test with the previous test will affect the previous diagnostics

This is fine, specific diagnostics are not important there, the important part is that the test goes past name resolution and doesn't produce an ICE while doing that.

@petrochenkov petrochenkov 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-review Status: Awaiting review from the assignee but also interested parties. labels Mar 16, 2023
@chenyukang
Copy link
Member Author

Combining this test with the previous test will affect the previous diagnostics

This is fine, specific diagnostics are not important there, the important part is that the test goes past name resolution and doesn't produce an ICE while doing that.

introducing a new trait name won't affect other diagnostics.

@petrochenkov petrochenkov added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 17, 2023
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Mar 17, 2023

📌 Commit 827a990 has been approved by petrochenkov

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 Mar 17, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 17, 2023
…trochenkov

Do not ICE for unexpected lifetime with ConstGeneric rib

Fixes rust-lang#109143
r? `@petrochenkov`

Combining this test with the previous test will affect the previous diagnostics, so I added a separate test case.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 17, 2023
…trochenkov

Do not ICE for unexpected lifetime with ConstGeneric rib

Fixes rust-lang#109143
r? ``@petrochenkov``

Combining this test with the previous test will affect the previous diagnostics, so I added a separate test case.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 17, 2023
…trochenkov

Do not ICE for unexpected lifetime with ConstGeneric rib

Fixes rust-lang#109143
r? ```@petrochenkov```

Combining this test with the previous test will affect the previous diagnostics, so I added a separate test case.
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 18, 2023
…iaskrgr

Rollup of 9 pull requests

Successful merges:

 - rust-lang#109102 (Erase escaping late-bound regions when probing for ambiguous associated types)
 - rust-lang#109200 (Fix index out of bounds in `suggest_trait_fn_ty_for_impl_fn_infer`)
 - rust-lang#109211 (E0206 - update description )
 - rust-lang#109222 (Do not ICE for unexpected lifetime with ConstGeneric rib)
 - rust-lang#109235 (fallback to lstat when stat fails on Windows)
 - rust-lang#109248 (Pass the right HIR back from `get_fn_decl`)
 - rust-lang#109251 (Suggest surrounding the macro with `{}` to interpret as a statement)
 - rust-lang#109256 (Check for llvm-tools before install)
 - rust-lang#109257 (resolve: Improve debug impls for `NameBinding`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit dfd2b64 into rust-lang:master Mar 18, 2023
@rustbot rustbot added this to the 1.70.0 milestone Mar 18, 2023
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.

ICE: unexpected rib kind: ConstGeneric in late.rs
4 participants