Emit MIR for libstd only


Hello, I am working on a MIR analyzer and I need the MIR for the whole libstd (since running programs depend heavily on rust standard library). I tried to do it by calling the cargo build command in src/libstd directory with emitting the MIR but it failed with a lot of compile errors. Is this possible?