rust/compiler/rustc_infer/src/traits
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
..
error_reporting Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
engine.rs Replace tcx.mk_trait_ref with ty::TraitRef::new 2023-04-25 16:12:44 +00:00
mod.rs Break up long function in trait selection error reporting 2023-04-21 09:04:02 -07:00
project.rs Remove unused TypeFoldable/TypeVisitable impls. 2023-04-26 15:19:50 +10:00
structural_impls.rs Report overflows gracefully with new solver 2023-04-10 16:36:30 +00:00
util.rs Auto merge of #111161 - compiler-errors:rtn-super, r=cjgillot 2023-05-07 11:18:22 +00:00