-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Description
Any attempt to do "printf debugging" with println, or bootstrapping with -Z time-passes, or outputting any other useful information to stdout from rustc results in "failed to parse process output" reported from Cargo (https://github.com/rust-lang/cargo/blob/668d55cc6d54c7e9635c924c252621f5e6664e00/src/cargo/util/process_builder.rs#L205).
This is a regressions from the recent few months, I believe.
Printf debugging can be emulated with hacks like sess.span_warn() or similar, or by recompiling everything and using debug!(...), but I haven't found a workaround for time-passes yet.
Writing to stderr (e.g. eprintln) doesn't work as well, the output is silently ignored for some reason, but I haven't investigated why this happens. (UPDATE: The stderr issue was fixed in #47634)
Any workarounds are appreciated.
cc someone familiar with Cargo and infrastructure @Mark-Simulacrum @alexcrichton