This should be able to be done in a way compatible with 0.11.0.
src/c_regex.zig:20:9: error: local variable is never mutated
var r = allocator.create(Regex) catch return null;
^
src/c_regex.zig:20:9: note: consider using 'const'
src/c_regex.zig:43:9: error: local variable is never mutated
var c = allocator.create(Captures) catch return null;
^
This should be able to be done in a way compatible with 0.11.0.