about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/common.rs
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-06-17 04:53:54 +0100
committerGitHub <noreply@github.com>2024-06-17 04:53:54 +0100
commit23b936f98185b39ce2cf00eaf85be574196df4c8 (patch)
tree2a2104e107d65a79f2ce8ac396042dd3aa6e9b3b /compiler/rustc_codegen_llvm/src/common.rs
parent6b65c30f8e0f6c18aa5f32cbad869b1d036c7851 (diff)
parent5f3357c3c68e555c655c71bb8672db7908622c5b (diff)
downloadrust-23b936f98185b39ce2cf00eaf85be574196df4c8.tar.gz
rust-23b936f98185b39ce2cf00eaf85be574196df4c8.zip
Rollup merge of #125258 - compiler-errors:static-if-no-lt, r=nnethercote
Resolve elided lifetimes in assoc const to static if no other lifetimes are in scope

Implements the change to elided lifetime resolution in *associated consts* subject to FCP here: https://github.com/rust-lang/rust/issues/125190#issue-2301532282

Specifically, walk the enclosing lifetime ribs in an associated const, and if we find no other lifetimes, then resolve to `'static`.

Also make it work for traits, but don't lint -- just give a hard error in that case.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
0 files changed, 0 insertions, 0 deletions