[commit: ghc] master: Fix validate. (f541fc6)

git at git.haskell.org git at git.haskell.org
Mon Apr 3 09:21:31 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/f541fc63060aa5806c18cbaa5ef05dd180c52ebb/ghc

>---------------------------------------------------------------

commit f541fc63060aa5806c18cbaa5ef05dd180c52ebb
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Mon Apr 3 02:21:09 2017 -0700

    Fix validate.
    
    Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>


>---------------------------------------------------------------

f541fc63060aa5806c18cbaa5ef05dd180c52ebb
 compiler/deSugar/DsUsage.hs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/compiler/deSugar/DsUsage.hs b/compiler/deSugar/DsUsage.hs
index aa9efd9..25d8254 100644
--- a/compiler/deSugar/DsUsage.hs
+++ b/compiler/deSugar/DsUsage.hs
@@ -185,7 +185,6 @@ mk_mod_usage_info pit hsc_env this_mod direct_imports used_names
                 -- across all imports, why did the old code only look
                 -- at the first import?
                 Just bys -> (True, any by_is_safe bys)
-                Just _   -> pprPanic "mkUsage: empty direct import" Outputable.empty
                 Nothing  -> (False, safeImplicitImpsReq dflags)
                 -- Nothing case is for references to entities which were
                 -- not directly imported (NB: the "implicit" Prelude import



More information about the ghc-commits mailing list