about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-24 18:00:27 +0200
committerGitHub <noreply@github.com>2022-04-24 18:00:27 +0200
commitaef9eb50cdeef69245eb2ffc402fec4011d28ac0 (patch)
tree5e545e5f2f3d0dccf7e4bd3d53cbea131700b7f1 /library/std/src
parent7daa1c92ec551488601f28fc788440003aee40f3 (diff)
parent8d561d25e3307568255fc7c78ebb500294495561 (diff)
downloadrust-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