diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-04-24 18:00:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-24 18:00:27 +0200 |
| commit | aef9eb50cdeef69245eb2ffc402fec4011d28ac0 (patch) | |
| tree | 5e545e5f2f3d0dccf7e4bd3d53cbea131700b7f1 /library/std/src | |
| parent | 7daa1c92ec551488601f28fc788440003aee40f3 (diff) | |
| parent | 8d561d25e3307568255fc7c78ebb500294495561 (diff) | |
| download | rust-aef9eb50cdeef69245eb2ffc402fec4011d28ac0.tar.gz rust-aef9eb50cdeef69245eb2ffc402fec4011d28ac0.zip | |
Rollup merge of #96352 - marmeladema:fix-nll-lifetime-bound-suggestions, r=jackh726
Improve span for `consider adding an explicit lifetime bound` suggestions under NLL Because NLL borrowck is run after typeck, `in_progress_typeck_results` was always `None` which was preventing the retrieval of the span to which the suggestion is suppose to add the lifetime bound. We now manually pass the `LocalDefId` owner to `construct_generic_bound_failure` so that under NLL, we give the owner id of the current body. This helps with #96332
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions
