Stabilize version output for rustc and rustdoc

Fixes #13582