about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2024-11-20 23:05:48 +0200
committerChayim Refael Friedman <chayimfr@gmail.com>2024-12-04 14:22:56 +0200
commit63acf60253262e31d8129c9134b9b4a5aab75453 (patch)
tree56af41fc822f53b542d1bd0b7d961a903d3e09f4 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2a949d8725a1027ffe8ef49c1303bc95d6192ce8 (diff)
downloadrust-63acf60253262e31d8129c9134b9b4a5aab75453.tar.gz
rust-63acf60253262e31d8129c9134b9b4a5aab75453.zip
Lay the foundation for diagnostics in ty lowering, and implement a first diagnostic
The diagnostic implemented is a simple one (E0109). It serves as a test for the new foundation.

This commit only implements diagnostics for type in bodies and body-carrying signatures; the next commit will include diagnostics in the rest of the things.

Also fix one weird bug that was detected when implementing this that caused `Fn::(A, B) -> C` (which is a valid, if bizarre, alternative syntax to `Fn(A, B) -> C` to lower incorrectly.

And also fix a maybe-bug where parentheses were sneaked into a code string needlessly; this was not detected until now because the parentheses were removed (by the make-AST family API), but with a change in this commit they are now inserted. So fix that too.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions