Rollup merge of #123464 - fmease:rn-has-proj-to-has-aliases, r=compiler-errors

Cleanup: Rename `HAS_PROJECTIONS` to `HAS_ALIASES` etc.

The name of the bitflag `HAS_PROJECTIONS` and of its corresponding method `has_projections` is quite historical dating back to a time when projections were the only kind of alias type.

I think it's time to update it to clear up any potential confusion for newcomers and to reduce unnecessary friction during contributor onboarding.

r? types
This commit is contained in:
Jacob Pratt 2024-04-04 21:16:58 -04:00 committed by GitHub
commit 58eb6e5803
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 21 additions and 17 deletions

View file

@ -1060,7 +1060,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
// so we will try to normalize the obligation and evaluate again.
// we will replace it with new solver in the future.
if EvaluationResult::EvaluatedToErr == result
&& fresh_trait_pred.has_projections()
&& fresh_trait_pred.has_aliases()
&& fresh_trait_pred.is_global()
{
let mut nested_obligations = Vec::new();