For info on how the incremental compilation works, see the rustc guide.