rust/compiler/rustc_hir_analysis/src
bors 0dddad0dc5 Auto merge of #111161 - compiler-errors:rtn-super, r=cjgillot
Support return-type bounds on associated methods from supertraits

Support `T: Trait<method(): Bound>` when `method` comes from a supertrait, aligning it with the behavior of associated type bounds (both equality and trait bounds).

The only wrinkle is that I have to extend `super_predicates_that_define_assoc_type` to look for *all* items, not just `AssocKind::Ty`. This will also be needed to support `feature(associated_const_equality)` as well, which is subtly broken when it comes to supertraits, though this PR does not fix those yet. There's a slight chance there's a perf regression here, in which case I guess I could split it out into a separate query.
2023-05-07 11:18:22 +00:00
..
astconv Auto merge of #111161 - compiler-errors:rtn-super, r=cjgillot 2023-05-07 11:18:22 +00:00
check Use fulfillment to check Drop impl compatibility 2023-05-04 18:05:58 +00:00
coherence Auto merge of #110806 - WaffleLapkin:unmkI, r=lcnr 2023-05-04 05:54:09 +00:00
collect Rename things to reflect that they're not item specific 2023-05-03 20:13:32 +00:00
impl_wf_check Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
outlives Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
structured_errors Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
variance Rollup merge of #110556 - kylematsuda:earlybinder-explicit-item-bounds, r=compiler-errors 2023-04-25 21:06:32 +02:00
autoderef.rs Replace tcx.mk_trait_ref with ty::TraitRef::new 2023-04-25 16:12:44 +00:00
bounds.rs Auto merge of #110806 - WaffleLapkin:unmkI, r=lcnr 2023-05-04 05:54:09 +00:00
check_unused.rs Remove last instances of HashSet in query result types. 2023-03-01 10:20:45 +01:00
collect.rs Rename things to reflect that they're not item specific 2023-05-03 20:13:32 +00:00
constrained_generic_params.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
errors.rs Auto merge of #111161 - compiler-errors:rtn-super, r=cjgillot 2023-05-07 11:18:22 +00:00
hir_wf_check.rs Auto merge of #109119 - lcnr:trait-system-cleanup, r=compiler-errors 2023-03-22 05:33:18 +00:00
impl_wf_check.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
lib.rs Implement negative bounds 2023-05-02 22:36:24 +00:00
structured_errors.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00