actually, given that this match is duplicated in rustdoc. What about moving it into the `version` function?