Auto merge of #144425 - nnethercote:avoid-new_adt-new_fn_def, r=compiler-errors

Avoid unnecessary `new_adt`/`new_fn_def` calls.

They can be skipped if there are no arguments, avoiding the "relate" operation work and also the subsequent interning.

r? `@ghost`
This commit is contained in:
bors 2025-07-27 15:56:47 +00:00
commit 3ba4dcc267

Diff Content Not Available