@robryk@lcamtuf We cannot, since there’s a new Rust release every 2 weeks that requires the previous release to build and it has been like this for years. You can do a new bootstrap with mrustc, but that will naturally give you a different binary, so hard to use that to figure out if the official ones are clean.
@js@lcamtuf@robryk get rustc to emit optimized LLVM IR, compile mrustc output also to optimized LLVM IR, run diff, write scripts to ignore non-functional differences, audit the rest?
Can't you compile rust with mrustc, and then compile rust with the result? Unless the standard Rust compiler is nondeterministic or its behaviour depends on things not constrained by the Rust language this should produce an identical binary.