From the documents, it seems current pass tests only assert that "compile successfully and have a main function that does not panic when the compiled binary is executed".
Often, it would be helpful when a proc-macro author wants to assert the expanded result is as expected.
Does try_build provide such ability? Or I should write an extra script to run cargo expand and diff the output manually.
From the documents, it seems current pass tests only assert that "compile successfully and have a main function that does not panic when the compiled binary is executed".
Often, it would be helpful when a proc-macro author wants to assert the expanded result is as expected.
Does
try_buildprovide such ability? Or I should write an extra script to runcargo expandanddiffthe output manually.