Skip to content

const_evaluatable_checked: fix occurs check - #79635

Merged
bors merged 2 commits into
rust-lang:masterfrom
lcnr:const-eval-idk
Dec 20, 2020
Merged

bors merged 2 commits into
rust-lang:masterfrom
lcnr:const-eval-idk

Conversation

@lcnr

@lcnr lcnr commented Dec 2, 2020 •

Copy link
Copy Markdown
Contributor

fixes #79615

this is kind of a hack because we use TypeRelation for both the Generalizer and the ConstInferUnifier but i am not sure if there is a useful way to disentangle this without unnecessarily duplicating some code.

The error in the added test is kind of unavoidable until we erase the unused substs of ConstKind::Unevaluated. We talked a bit about this in the cg lazy norm meeting (https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics/topic/lazy_normalization_consts)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 2, 2020
@lcnr lcnr added F-generic_const_exprs `#![feature(generic_const_exprs)]` F-const_generics `#![feature(const_generics)]` labels Dec 2, 2020
@crlf0710 crlf0710 added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 18, 2020
@oli-obk

oli-obk commented Dec 19, 2020

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Dec 19, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 806c728 has been approved by oli-obk

@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 Dec 19, 2020
@bors

bors commented Dec 20, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 806c728 with merge 0c11b93...

@bors

bors commented Dec 20, 2020

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing 0c11b93 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 20, 2020
@bors
bors merged commit 0c11b93 into rust-lang:master Dec 20, 2020
@rustbot rustbot added this to the 1.50.0 milestone Dec 20, 2020
@lcnr
lcnr deleted the const-eval-idk branch December 20, 2020 08:42
@lcnr lcnr added the A-const-generics Area: const generics (parameters and arguments) label Aug 26, 2021
@lcnr lcnr mentioned this pull request Dec 11, 2021
3 of 16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-const-generics Area: const generics (parameters and arguments) F-const_generics `#![feature(const_generics)]` F-generic_const_exprs `#![feature(generic_const_exprs)]` merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

6 participants