Skip to content

Commit c6862f4

Browse files
committed
Remove one usage of undefined and turn it into a compile-time error
1 parent 654dca3 commit c6862f4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ghcide/src/Development/IDE/GHC/Compat/Outputable.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,7 @@ type PsError = ErrMsg
154154

155155
mkPrintUnqualifiedDefault :: GlobalRdrEnv -> PrintUnqualified
156156
mkPrintUnqualifiedDefault =
157-
#if MIN_VERSION_ghc(9,2,0)
158-
GHC.Types.Name.Ppr.mkPrintUnqualified undefined
159-
#else
160157
HscTypes.mkPrintUnqualified unsafeGlobalDynFlags
161-
#endif
162158

163159
mkWarnMsg :: DynFlags -> SrcSpan -> PrintUnqualified -> SDoc -> MsgEnvelope DecoratedSDoc
164160
mkWarnMsg =

0 commit comments

Comments
 (0)