Upgrade syntax extensions for error handling in “refined_type” macro.