rust/compiler/rustc_borrowck
Matthias Krüger aef9eb50cd
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
2022-04-24 18:00:27 +02:00
..
src Rollup merge of #96352 - marmeladema:fix-nll-lifetime-bound-suggestions, r=jackh726 2022-04-24 18:00:27 +02:00
Cargo.toml Update itertools 2022-03-04 11:54:28 -06:00