about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-06 14:34:55 +0200
committerGitHub <noreply@github.com>2022-06-06 14:34:55 +0200
commita736acc80459734a7c5490f25c70600eff802961 (patch)
tree9d085359293763adfa1aeb4003bdac88ef1a3eb1 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parente70c60d34b9783a2fd3171d88d248c2e0ec8ecdd (diff)
parentf71ad2f9920817b24a0253566f528bda845d9374 (diff)
downloadrust-a736acc80459734a7c5490f25c70600eff802961.tar.gz
rust-a736acc80459734a7c5490f25c70600eff802961.zip
Rollup merge of #97312 - cjgillot:no-path-in-scope, r=compiler-errors
Compute lifetimes in scope at diagnostic time

The set of available lifetimes is currently computed during lifetime resolution on HIR.  It is only used for one diagnostic.

In this PR, HIR lifetime resolution just reports whether elided lifetimes are well-defined at the place of use.  The diagnostic code is responsible for building a list of lifetime names if elision is not allowed.

This will allow to remove lifetime resolution on HIR eventually.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions