Get the latest tech news
(Re)Using rustc components in gccrs
Alternative Rust Compiler for GCC In order to speed up development, as well as make sure gccrs exposes the exact same behavior as rustc in critical compiler passes, we decided last year to start reusing components and crates from the official Rust compiler where possible. These components range from external crates used for certain nightly options to internal rustc workspace packages.
For example, there are currently efforts towards making a new trait solver for rustc- if separate enough from the compiler, it could be integrated and used by gccrs to perform trait-solving on our internal representation. For example, its string formatting capabilities will be nil, and it will not be able to be used for regular Rust display operations - its sole purpose will be to build the polonius-engine crate. We can then use these crates and link them to gccrs, giving us a proper compiler with borrow-checking enabled, and string formatting capabilities.
Or read this on Hacker News