Hi! On 2021-07-13T00:44:13+0200, Mark Wielaard <m...@klomp.org> wrote: > On Mon, Jul 12, 2021 at 11:06:01AM +0100, Philip Herron wrote: >> The main one that sticks out in my mind is the AST, HIR dumps which are >> a bit of a mess at the moment. > > The AST dump (--rust-dump-parse) was actually useful for checking the > comment doc strings, but it could certainly be improved. Ideally it > would be structured in a way that can easily be used in tests.
Right. Already a while ago, I had run into the same (for a lexer-level thing), and have early-stages WIP changes to implement dumps for the several GCC/Rust front end stages using the (more or less) standard '-fdump-lang-[...]' flag. These dump files may then be scanned using the usual GCC/DejaGnu testsuite idioms. I plan to complete that work at some later point in time, hopefully not too far out. (Mark, I then actually had planned to add some testcases fore your recent lexer changes.) (My work there is independent of/orthogonal to the S-expression dump format discussed elsewhere.) Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 -- Gcc-rust mailing list Gcc-rust@gcc.gnu.org https://gcc.gnu.org/mailman/listinfo/gcc-rust