I've hit a compiler bug that disappears when I run cargo clean then cargo build. That's makes it impossible to check whether the bug is still around in nightly rust (I'm using 1.48.0), since building with another compiler re-builds all the artifacts. It's also difficult to get others to reproduce the problem! Any tips on how to deal with this?
This looks like an incremental build problem. The only way I've found to solve this is to take a snapshot of everything (including the target dir), and then starting debugging, reloading this save whenever the bug disappears. Usually I do this by starting a new branch and committing regularly. Reverting to the previous commit when the problem disappears.