about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2025-02-10 11:33:02 +0200
committerChayim Refael Friedman <chayimfr@gmail.com>2025-02-16 19:44:50 +0200
commit2e7158b4587a42043c88ab653b305c378b602b76 (patch)
treedcf256d0301b8cc6a6c77b513a6b15cf95121d0f /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent66599f1dd5ade8f87cfeca3b2334649820c659d9 (diff)
downloadrust-2e7158b4587a42043c88ab653b305c378b602b76.tar.gz
rust-2e7158b4587a42043c88ab653b305c378b602b76.zip
Refactor path lowering
And add a new diagnostic for non-`Fn` parenthesized generic args.

Path lowering started to look like a mess, with each function carrying additional parameters for the diagnostic callback (since paths can occur both in type and in expression/pattern position, and their diagnostic handling is different) and the segment index, for the diagnostics report. So I refactored it from stateless functions on `TyLoweringContext` into stateful struct, `PathLoweringContext`, that tracks the process of lowering a path from resolution til assoc types selection.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions