Silence experimental::smartmatch warnings

We know smartmatch is experimental, and we accept the risk of
using it. This fixes spurious test failures like RT #84986.
Merge pull request #13 from doherty/silence-smartmatch-warnings

Silence experimental::smartmatch warnings