Stability lint checker now handles nested macros.

Closes #17185.
Update deprecated calls in librustdoc.