Skip to content

Use a single enum for the kind of a const context #71989

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 2 commits into from
May 8, 2020

Conversation

ecstatic-morse
Copy link
Contributor

This adds a ConstContext enum to the rustc_hir crate and method that can be called via tcx.hir() to get the ConstContext for a given body owner. This arose from discussion in #71824.

r? @oli-obk

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 7, 2020
@oli-obk
Copy link
Contributor

oli-obk commented May 8, 2020

@bors r+

@bors
Copy link
Collaborator

bors commented May 8, 2020

📌 Commit e356d5c 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 May 8, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request May 8, 2020
Rollup of 6 pull requests

Successful merges:

 - rust-lang#71989 (Use a single enum for the kind of a const context)
 - rust-lang#71993 (Remove old `util/liveness.rs` module)
 - rust-lang#71999 (Add myself to mailmap.)
 - rust-lang#72001 (Adjust cfg(version) to lang team decision)
 - rust-lang#72007 (Fix some tests failing in `--pass check` mode)
 - rust-lang#72008 (Add const-generics test)

Failed merges:

r? @ghost
@bors bors merged commit 1e6c199 into rust-lang:master May 8, 2020
@ecstatic-morse ecstatic-morse deleted the const-context-enum branch October 6, 2020 01:42
# 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants