Use fmt::from_fn in more places in the compiler
#135951
Merged
fmt::from_fn in more places in the compiler
#135951