diff options
| author | marmeladema <xademax@gmail.com> | 2022-04-24 00:17:33 +0200 |
|---|---|---|
| committer | marmeladema <xademax@gmail.com> | 2022-04-24 09:34:50 +0200 |
| commit | 7b0db3e7c81c36d2ec623849d17d9df4858abca1 (patch) | |
| tree | 6b4452c04270e18addefc4f26c2b02c24ae27803 /compiler/rustc_codegen_llvm | |
| parent | 6b4563bf93f4b103ed22507ed825008b89e4f5d9 (diff) | |
| download | rust-7b0db3e7c81c36d2ec623849d17d9df4858abca1.tar.gz rust-7b0db3e7c81c36d2ec623849d17d9df4858abca1.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm')
0 files changed, 0 insertions, 0 deletions
