Replace secret formatting functions with UFCS versions

This PR replaces the uses of e.g. the `secret_show` function with `Show::fmt`.

**Note** #18523 has to be merged first or this will ICE during `make`

r? @alexcrichton