rust/compiler/rustc_middle/src
Manish Goregaokar e4d8f0e349
Rollup merge of #87348 - SkiFire13:fix-87261, r=oli-obk
Fix span when suggesting to add an associated type bound

Fixes #87261

Note that this fix is not perfect, it ~~will still give incorrect~~ won't give suggestions in some situations:
- If the associated type is defined on a supertrait of those contained in the opaque type, it will fallback to the previous behaviour, e.g. if `AssocTy` is defined on the trait `Foo`, `Bar` has `Foo` as supertrait and the opaque type is a `impl Bar + Baz`.
- If the the associated type is defined on a generic trait and the opaque type includes two versions of that generic trait, e.g. the opaque type is `impl Foo<A> + Foo<B>`
2021-07-24 09:51:56 -07:00
..
dep_graph Update DepNode's size 2021-07-10 21:46:31 +08:00
hir Support HIR wf checking for function signatures 2021-07-20 10:58:14 -05:00
ich rename assert_matches module 2021-07-16 09:18:14 -07:00
infer Miscellaneous inlining improvements 2021-06-02 08:49:58 +02:00
middle Rollup merge of #87092 - ricobbe:fix-raw-dylib-multiple-definitions, r=petrochenkov 2021-07-18 14:21:56 +09:00
mir miri: better ptr-out-of-bounds errors 2021-07-18 10:38:00 +02:00
query Support HIR wf checking for function signatures 2021-07-20 10:58:14 -05:00
traits Support HIR wf checking for function signatures 2021-07-20 10:58:14 -05:00
ty Rollup merge of #87348 - SkiFire13:fix-87261, r=oli-obk 2021-07-24 09:51:56 -07:00
util
arena.rs Make THIR building a stealable query 2021-05-22 14:36:22 +02:00
lib.rs use NonZeroU64 for AllocId to restore old type sizes 2021-07-14 18:17:49 +02:00
lint.rs Rename force-warns to force-warn 2021-07-21 15:41:10 +02:00
macros.rs
tests.rs
thir.rs Add documentation for various THIR structs 2021-06-22 17:58:30 +02:00