Suppressing comments in MIR compilation

I am generating MIR with via rustc --emit mir -o example.mir and I would like to remove the comments that are produced in the output. I searched the --help compiler flags but couldn't find an option for this. Is it available? And if it is could I have link to any documentation if possible? Thank you!

how about post-processing the file? I.e. cat example.mir | sed -e 's/\w*\/\/.*$//g' should remove all comments AFAICT.

Switching the nightly version ended up removing the comments. And was preferable as there are a lot more flags availble to get the mir into a preferable representation.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.