about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authormarmeladema <xademax@gmail.com>2022-04-24 00:17:33 +0200
committermarmeladema <xademax@gmail.com>2022-04-24 09:34:50 +0200
commit7b0db3e7c81c36d2ec623849d17d9df4858abca1 (patch)
tree6b4452c04270e18addefc4f26c2b02c24ae27803 /compiler/rustc_codegen_llvm/src/lib.rs
parent6b4563bf93f4b103ed22507ed825008b89e4f5d9 (diff)
downloadrust-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/src/lib.rs')
0 files changed, 0 insertions, 0 deletions