Turn deprecations into errors (2.99)

This fixes #1150 for 2.99.

/cc @xaviershay @JonRowe @soulcutter