Skip to content

DynFlags: avoid the use of sdocWithDynFlags in GHC.Core.Rules (#17957)

Sylvain Henry requested to merge hsyl20/ghc:hsyl20/dynflags/core-rules into master

Straightforward refactoring: we avoid using sdocWithDynFlags in GHC.Core.Rules by storing rule options (RuleOpts) into the RuleCheck environment. initRuleOpts factorizes RuleOpts initialization from DynFlags which was done implicitly in matchRule so that we can reuse it.

Edited by Sylvain Henry

Merge request reports