Move `rustc_ty` -> `rustc_ty_utils`

This commit is contained in:
LeSeulArtichaut 2020-11-19 21:32:37 +01:00
parent fe982319aa
commit f59d03038c
11 changed files with 7 additions and 7 deletions

View File

@ -3802,7 +3802,7 @@ dependencies = [
"rustc_target",
"rustc_trait_selection",
"rustc_traits",
"rustc_ty",
"rustc_ty_utils",
"rustc_typeck",
"smallvec 1.4.2",
"tempfile",
@ -4240,7 +4240,7 @@ dependencies = [
]
[[package]]
name = "rustc_ty"
name = "rustc_ty_utils"
version = "0.0.0"
dependencies = [
"rustc_data_structures",

View File

@ -131,7 +131,7 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
}
pub(super) fn asyncness(&self, local_def_id: LocalDefId) -> Option<hir::IsAsync> {
// similar to the asyncness fn in rustc_ty::ty
// similar to the asyncness fn in rustc_ty_utils::ty
let hir_id = self.tcx().hir().local_def_id_to_hir_id(local_def_id);
let node = self.tcx().hir().get(hir_id);
let fn_like = rustc_middle::hir::map::blocks::FnLikeNode::from_node(node)?;

View File

@ -41,7 +41,7 @@ rustc_plugin_impl = { path = "../rustc_plugin_impl" }
rustc_privacy = { path = "../rustc_privacy" }
rustc_resolve = { path = "../rustc_resolve" }
rustc_trait_selection = { path = "../rustc_trait_selection" }
rustc_ty = { path = "../rustc_ty" }
rustc_ty_utils = { path = "../rustc_ty_utils" }
tempfile = "3.0.5"
[target.'cfg(windows)'.dependencies]

View File

@ -699,7 +699,7 @@ pub static DEFAULT_QUERY_PROVIDERS: SyncLazy<Providers> = SyncLazy::new(|| {
rustc_passes::provide(providers);
rustc_resolve::provide(providers);
rustc_traits::provide(providers);
rustc_ty::provide(providers);
rustc_ty_utils::provide(providers);
rustc_metadata::provide(providers);
rustc_lint::provide(providers);
rustc_symbol_mangling::provide(providers);

View File

@ -997,7 +997,7 @@ fn assemble_candidates_from_impls<'cx, 'tcx>(
// type.
//
// NOTE: This should be kept in sync with the similar code in
// `rustc_ty::instance::resolve_associated_item()`.
// `rustc_ty_utils::instance::resolve_associated_item()`.
let node_item =
assoc_ty_def(selcx, impl_data.impl_def_id, obligation.predicate.item_def_id)
.map_err(|ErrorReported| ())?;

View File

@ -1,6 +1,6 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_ty"
name = "rustc_ty_utils"
version = "0.0.0"
edition = "2018"