Fix fail => panic, static => const and cfg patterns