https://issues.dlang.org/show_bug.cgi?id=11543 --- Comment #8 from Martin Nowak <code at dawg.eu> --- I'm currently working on a fix to make ModuleInfo immutable. This is quite invasive though. https://github.com/MartinNowak/druntime/tree/fix11543 --