Why ignore `@nogc`? I think you might also have to update the `SetFunctionAttributes` to get it to work.