about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-14 02:49:21 +0000
committerbors <bors@rust-lang.org>2022-03-14 02:49:21 +0000
commit3f58828fdc3d1eb114c47bf1331a9bb638eab246 (patch)
treed3edf6858e89f8feadd843c88f32c47c42b4d8ed /compiler/rustc_codegen_llvm/src
parent737ef08ea066cbdc9f4b93373b1a1a108e6691ab (diff)
parentc8c691ff88713d6c4012ec5978d51cbe11300a94 (diff)
downloadrust-3f58828fdc3d1eb114c47bf1331a9bb638eab246.tar.gz
rust-3f58828fdc3d1eb114c47bf1331a9bb638eab246.zip
Auto merge of #94773 - cjgillot:lifetime-fresh-did, r=oli-obk
Identify anonymous lifetimes by their DefId in HIR.

`ParamName::Fresh` currently identifies anonymous lifetimes by an `usize` index computed from the number of lifetimes in scope. This makes the behaviour of lowering dependent on the contents of the surrounding item in unpredictable ways.

This PR replaces this index by the `LocalDefId` of the synthetized generic lifetime parameter. This makes obvious which parameter the lifetime corresponds to.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions