RUST Unsafe Information in MIR Code

Hi all,
Now in the process of analyzing the compilation step of RUST, I wonder that the MIR code phase. In the MIR stage, Unsafe information is checked as follows. Based on the analysis, I want to find the part that outputs information about Unsafe in the MIR stage in the rustc source code(GitHub - rust-lang/rust: Empowering everyone to build reliable and efficient software.). May I know which directory or source file outputs the unsafe information in the MIR stage?

You might want to ask on IRLO (or Zulup) instead. (Please leave a note / link if you do.)

1 Like