Replace all warnings with asserts in builtin attribute handlers.