Migrate parts of rustc_expand to session diagnostics
#104460
Merged
rustc_expand to session diagnostics
#104460