rustdoc: Show purity

Fix #3804.