I am wondering how the unit tests infrastructure works in rustc? I see the
tests/ folder but it seems only contain integration tests. I am wondering whether unit tests exit, especially for codegen? if not, how do you test codegen?
There are a few unit tests in the various compiler crates, but mostly just for data structures and generic algorithms. There are none for codegen I believe.