rust/tests/ui/traits/next-solver/normalize
Nicholas Nethercote ce2aa97cd6 Move has_self field to hir::AssocKind::Fn.
`hir::AssocItem` currently has a boolean `fn_has_self_parameter` field,
which is misplaced, because it's only relevant for associated fns, not
for associated consts or types. This commit moves it (and renames it) to
the `AssocKind::Fn` variant, where it belongs.

This requires introducing a new C-style enum, `AssocTag`, which is like
`AssocKind` but without the fields. This is because `AssocKind` values
are passed to various functions like `find_by_ident_and_kind` to
indicate what kind of associated item should be searched for, and having
to specify `has_self` isn't relevant there.

New methods:
- Predicates `AssocItem::is_fn` and `AssocItem::is_method`.
- `AssocItem::as_tag` which converts `AssocItem::kind` to `AssocTag`.

Removed `find_by_name_and_kinds`, which is unused.

`AssocItem::descr` can now distinguish between methods and associated
functions, which slightly improves some error messages.
2025-04-14 16:13:04 +10:00
..
ambig-goal-infer-in-type-oulives.rs
indirectly-constrained-term.rs
normalize-allow-too-many-vars.rs normalizes-to disable infer var check 2024-10-21 16:25:42 +02:00
normalize-async-closure-in-trait.rs
normalize-param-env-1.rs
normalize-param-env-2.rs
normalize-param-env-2.stderr Move has_self field to hir::AssocKind::Fn. 2025-04-14 16:13:04 +10:00
normalize-param-env-3.rs
normalize-param-env-4.next.stderr
normalize-param-env-4.rs
normalize-path-for-method.rs
normalize-rcvr-for-inherent.rs
normalize-region-obligations.rs
normalize-self-type-constrains-trait-args.current.stderr actually test next solver 2024-11-13 18:44:13 +01:00
normalize-self-type-constrains-trait-args.next.stderr actually test next solver 2024-11-13 18:44:13 +01:00
normalize-self-type-constrains-trait-args.rs actually test next solver 2024-11-13 18:44:13 +01:00
normalize-type-outlives-in-param-env.rs
normalize-type-outlives.rs
normalize-unsize-rhs.rs remove feature(trait_upcasting) from tests and bless them 2025-02-06 23:44:23 +01:00
normalized-const-built-in-op.rs
param-env-trait-candidate-1.rs
param-env-trait-candidate-2.rs
two-projection-param-candidates-are-ambiguous.rs
two-projection-param-candidates-are-ambiguous.stderr