Improve the librustc on-demand/query API ergonomics. by eddyb · Pull Request #41504 · rust-lang/rust (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation5 Commits3 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Queries are now performed through these two forms:
tcx.type_of(def_id)
(the most common usage)tcx.at(span).type_of(def_id)
(to provide a more specific location in the cycle stack)
Several queries were renamed to work better as method names, i.e. by suffixing with _of
.
📌 Commit decf759 has been approved by nikomatsakis
frewsxcv added a commit to frewsxcv/rust that referenced this pull request
Improve the librustc on-demand/query API ergonomics.
Queries are now performed through these two forms:
tcx.type_of(def_id)
(the most common usage)tcx.at(span).type_of(def_id)
(to provide a more specific location in the cycle stack)
Several queries were renamed to work better as method names, i.e. by suffixing with _of
.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request
Improve the librustc on-demand/query API ergonomics.
Queries are now performed through these two forms:
tcx.type_of(def_id)
(the most common usage)tcx.at(span).type_of(def_id)
(to provide a more specific location in the cycle stack)
Several queries were renamed to work better as method names, i.e. by suffixing with _of
.
@bors p=1 Let's merge this before it breaks!
bors added a commit that referenced this pull request
Improve the librustc on-demand/query API ergonomics.
Queries are now performed through these two forms:
tcx.type_of(def_id)
(the most common usage)tcx.at(span).type_of(def_id)
(to provide a more specific location in the cycle stack)
Several queries were renamed to work better as method names, i.e. by suffixing with _of
.
This was referenced
Apr 26, 2017
eddyb deleted the query-api branch