How would you repair this?

I'm wondering if rust has weakened the metal