-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Move some queries from rustc::ty to librustc_ty. #67780
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
Conversation
r? @varkor (rust_highfive has picked a reviewer for you, use r? to override) |
I think it would make sense to move this to a new |
☔ The latest upstream changes (presumably #67700) made this pull request unmergeable. Please resolve the merge conflicts. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
src/librustc_passes/ty.rs
Outdated
//pub fn is_impl_trait_defn(tcx: TyCtxt<'_>, def_id: DefId) -> Option<DefId> { | ||
// if let Some(hir_id) = tcx.hir().as_local_hir_id(def_id) { | ||
// if let Node::Item(item) = tcx.hir().get(hir_id) { | ||
// if let hir::ItemKind::OpaqueTy(ref opaque_ty) = item.kind { | ||
// return opaque_ty.impl_trait_fn; | ||
// } | ||
// } | ||
// } | ||
// None | ||
//} |
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.
?
f86b7d8
to
1be4d25
Compare
☔ The latest upstream changes (presumably #67886) made this pull request unmergeable. Please resolve the merge conflicts. |
Nominating for discussion of |
☔ The latest upstream changes (presumably #68011) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r+ |
📌 Commit 9908a87 has been approved by |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors r- |
fn_like.asyncness() | ||
} | ||
|
||
pub fn provide(providers: &mut ty::query::Providers<'_>) { |
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 guess you need to call this.
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.
Oops, sorry. Added a commit for that.
@bors r+ |
📌 Commit 894dc2d has been approved by |
Move some queries from rustc::ty to librustc_ty. cc rust-lang#65031
Move some queries from rustc::ty to librustc_ty. cc rust-lang#65031
Rollup of 5 pull requests Successful merges: - #67780 (Move some queries from rustc::ty to librustc_ty.) - #68096 (Clean up some diagnostics by making them more consistent) - #68223 (Use 3.6 instead of 3.5 in float fract() documentation) - #68265 (Fix some issue numbers of unstable features) - #68266 (Changed docs for f32 and f64.) Failed merges: - #68204 (Use named fields for `{ast,hir}::ItemKind::Impl`) r? @ghost
cc #65031