Stream: t-compiler/help

Topic: Compile rustc using a RUSTC_WRAPPER

Federico (May 31 2019 at 08:58, on Zulip):

I'm trying to compile rustc using a RUSTC_WRAPPER, to log compiler calls and other stuff.
However, while building rustc (rustc_lint, to be precise) I get errors like "used diagnostic code E0516 not registered".
Can it be that I'm somehow using the wrong rustc version to compile rustc?

oli (May 31 2019 at 13:32, on Zulip):

Maybe rustc also uses RUSTC_WRAPPER, thus causing the rustc specific wrapper not get executed

Federico (May 31 2019 at 13:55, on Zulip):

Mmm maybe, but then it should just execute what rustc put in RUSTC_WRAPPER, without a compiler error... I'll check

Federico (May 31 2019 at 14:48, on Zulip):

I found it: rustfmt changed the order of modules, thus mod error_codes was no longer the first one

Last update: Sep 18 2020 at 21:15UTC