Remove SrcSpans from ModIface's mi_warns
See #22698 (comment 503752): we store a Warnings GhcRn
in mi_warns
, but that is problematic because it contains SrcSpan
s.
Instead, we should have a separate IfaceWarnings
type that only contains the serializable parts of Warnings GhcRn
.
Edited by Gergő Érdi