Rename HAS_PROJECTIONS to HAS_ALIASES etc.
This commit is contained in:
@@ -432,7 +432,7 @@ pub(super) fn opt_normalize_projection_type<'a, 'b, 'tcx>(
|
||||
|
||||
let projected_term = selcx.infcx.resolve_vars_if_possible(projected_term);
|
||||
|
||||
let mut result = if projected_term.has_projections() {
|
||||
let mut result = if projected_term.has_aliases() {
|
||||
let normalized_ty = normalize_with_depth_to(
|
||||
selcx,
|
||||
param_env,
|
||||
@@ -596,7 +596,7 @@ pub fn normalize_inherent_projection<'a, 'b, 'tcx>(
|
||||
let ty = tcx.type_of(alias_ty.def_id).instantiate(tcx, args);
|
||||
|
||||
let mut ty = selcx.infcx.resolve_vars_if_possible(ty);
|
||||
if ty.has_projections() {
|
||||
if ty.has_aliases() {
|
||||
ty = normalize_with_depth_to(selcx, param_env, cause.clone(), depth + 1, ty, obligations);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user