diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2022-01-05 19:58:05 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-01-11 19:43:22 -0500 |
commit | 23d215fcb62c8bfe8d56396a0c9718a72ac0037b (patch) | |
tree | 520a04b518f1898c7c6685679aafafbb8f1d5942 /compiler/GHC/Stg/Subst.hs | |
parent | 49731fed69cb67ebaa3481b6ed5395ccd760c051 (diff) | |
download | haskell-23d215fcb62c8bfe8d56396a0c9718a72ac0037b.tar.gz |
warnPprTrace: pass separately the reason
This makes it more similar to pprTrace, pprPanic etc.
Diffstat (limited to 'compiler/GHC/Stg/Subst.hs')
-rw-r--r-- | compiler/GHC/Stg/Subst.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Stg/Subst.hs b/compiler/GHC/Stg/Subst.hs index 487b8b8adc..fa7107fc86 100644 --- a/compiler/GHC/Stg/Subst.hs +++ b/compiler/GHC/Stg/Subst.hs @@ -54,7 +54,7 @@ lookupIdSubst id (Subst in_scope env) | not (isLocalId id) = id | Just id' <- lookupVarEnv env id = id' | Just id' <- lookupInScope in_scope id = id' - | otherwise = warnPprTrace True (text "StgSubst.lookupIdSubst" <+> ppr id $$ ppr in_scope) id + | otherwise = warnPprTrace True "StgSubst.lookupIdSubst" (ppr id $$ ppr in_scope) id -- | Substitutes an occurrence of an identifier for its counterpart recorded -- in the 'Subst'. Does not generate a debug warning if the identifier to |