-
Notifications
You must be signed in to change notification settings - Fork 540
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
Update docs related to const-eval/Miri #676
Conversation
ping @JohnTitor any updates? |
Sorry for the delay, all! I really busy with some other work, and I've finally got time to update here recently. |
src/const-eval.md
Outdated
used) and a `GlobalId`. The `GlobalId` is made up of an | ||
`Instance` referring to a constant or static or of an | ||
`Instance` of a function and an index into the function's `Promoted` table. | ||
The `const_eval_*` queries use a [`ParamEnv`](./param_env.html) of environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you mean const_eval_poly
and friends? These are not queries, they are just wrappers around the const_eval
query.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, and I didn't know that. I updated this wording because someone was confused that const_eval
doesn't exist on the docs anymore. Addressed via 852baf5.
Co-authored-by: Ralf Jung <post@ralfj.de>
Co-authored-by: Ralf Jung <post@ralfj.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all correct to me. :)
(Still not very exhaustive, but... baby steps.)
Thanks @RalfJung for detailed reviews! I'm going to merge this. |
The main point of this PR is to update
tcx.const_eval
since it was separated into sometcx.const_eval_*
queries.The
const-eval
chapter is relatively short. But about themiri
chapter, I'm totally not sure how we evaluate consts in Miri now instead oftcx.const_eval
.I just replaced
tcx.const_eval
withtcx.const_eval_*
but I guess we could specify the query that we actually use in some places.r? @oli-obk @RalfJung