I’m fairly convinced that Debug should never be inlined. Display probably neither, the fmt machinery is heavy enough that inlining is probably not a bottleneck even in serialization-heavy workloads. I’ve had to #[inline(never)] some of my own Debug/Display impls, shrinking the binary by tens of kilobytes (out of a few hundred, so relatively a significant reduction).
Sharlin•15m ago