This question already has an answer here:
What is the maximum diameter and mass can a rock-based planet be before it collapsed to degenerate matter?
If "rocky" isn't defined enough, assume basalt.
"Degenerate" means the planet (or at least its core) has been gravitationally crushed to neutronium.
Assume no dense iron core, just rocky stuff.
I'm pretty sure maximum diameter will be at a mass less than the maximum.