Can't you use this "alternative rust compiler. Capable of building a fully-working copy of rustc" https://github.com/thepowersgang/mrustc and a trusted C++ compiler instead?
Re:Announcing Rust 1.35.0
by steveklabnik on Friday May 24, 2019 @09:59AM
(#20001534)
Yes, that would work as well.
Re:Announcing Rust 1.35.0
by irishsultan on Friday May 24, 2019 @05:29AM
(#19999875)
And if you are really paranoid you would need to audit the code of the compiler in every intermediate step.
Re:Announcing Rust 1.35.0
by steveklabnik on Friday May 24, 2019 @12:33AM
(#19998502)
It’s around a thousand builds.
I'm honestly kind of surprised someone's actually gone through the effort of figuring that out, and I'm afraid to ask how long it takes to build the whole chain.
Re:Announcing Rust 1.35.0
by steveklabnik on Friday May 24, 2019 @09:51AM
(#20001431)
There used to be a file that contained the SHA-1 hashes of the entire bootstrap chain; this is before we went with "rust 1.x builds with rust 1.(x - 1)". so i just counted. About 300 of them, three builds per bootstrap chain, plus some extra for all of the versions since we switched over.
I don't think anyone has actually done so, so I'm not sure how long, but probably a very, very long time. And you can't parallel it.
I'm not even sure how many intermediate compilers you'll have to compile to do this, it will take a lot of trial-and-error due to the compiler's own sources relying on features or bugfixes from previous versions of the compiler.