diff options
| author | bors <bors@rust-lang.org> | 2022-07-08 23:17:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-08 23:17:34 +0000 |
| commit | 47575bb066f2723f8386a08b4ced872f94c7e249 (patch) | |
| tree | 200bf8a0b05aee0e6b64597b5f306d9351def514 /compiler/rustc_codegen_llvm/src | |
| parent | 06754d8852bea286a3a76d373ccd17e66afb5a8b (diff) | |
| parent | 385c79379c1267b04cd614f01269f0add0eb2095 (diff) | |
| download | rust-47575bb066f2723f8386a08b4ced872f94c7e249.tar.gz rust-47575bb066f2723f8386a08b4ced872f94c7e249.zip | |
Auto merge of #98816 - estebank:implicit-sized, r=oli-obk
Track implicit `Sized` obligations in type params When we evaluate `ty::GenericPredicates` we introduce the implicit `Sized` predicate of type params, but we do so with only the `Predicate` its `Span` as context, we don't have an `Obligation` or `ObligationCauseCode` we could influence. To try and carry this information through, we add a new field to `ty::GenericPredicates` that tracks both which predicates come from a type param and whether that param has any bounds already (to use in suggestions). We also suggest adding a `?Sized` bound if appropriate on E0599. Address part of #98539.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
