Remove unused, unsound method on StrInterner

The string slices returned by `get_ref` can actually be
invalidated by calling `clear`.  Since this method is unused,
it is easiest to simply remove it.

Closes #17181
auto merge of #17221 : bkoropoff/rust/strinterner-unsafe, r=sfackler

The `StrInterner::clear()` method takes self immutably but can invalidate references returned by `StrInterner::get_ref`. Since `get_ref` is unused, just remove it.

Closes #17181
Lint stability now checks macro expansions.

Closes #17185.

Stability lint will check expanded code, effectively marking :
 - arguments passed to macros being deprecated/unstable/...
 - macros generating code using deprecated/unstable/... items

Checking is only done at expansion site, not at the definition
of the macro.
Replacing some deprecated calls by corrects ones.

In SmallIntMap impl{}.