Rollup merge of #64497 - nnethercote:fix-64339, r=petrochenkov
Rollup merge of #64497 - nnethercote:fix-64339, r=petrochenkov

Don't print the "total" `-Ztime-passes` output if `--prints=...` is also given

Fixes #64339.

graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust