diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-02-10 11:33:02 +0200 |
|---|---|---|
| committer | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-02-16 19:44:50 +0200 |
| commit | 2e7158b4587a42043c88ab653b305c378b602b76 (patch) | |
| tree | dcf256d0301b8cc6a6c77b513a6b15cf95121d0f /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp | |
| parent | 66599f1dd5ade8f87cfeca3b2334649820c659d9 (diff) | |
| download | rust-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
