Hannes Siebenhandl pushed to branch wip/fendor/homeunit-is-just at Glasgow Haskell Compiler / GHC WARNING: The push did not contain any new commits, but force pushed to delete the commits and changes below. Deleted commits: 6251dc45 by fendor at 2026-09-29T11:40:20+02:00 Use `panic` instead of dummy value for initial HomeUnit - - - - - 1 changed file: - compiler/GHC/Driver/Main/Hsc.hs Changes: ===================================== compiler/GHC/Driver/Main/Hsc.hs ===================================== @@ -112,7 +112,7 @@ newHscEnv top_dir dflags = do where home_unit_graph hpt = HUG.unitEnv_singleton (homeUnitId_ dflags) - (HUG.mkHomeUnitEnv emptyUnitState dflags hpt (DefiniteHomeUnit (homeUnitId_ dflags) Nothing)) + (HUG.mkHomeUnitEnv emptyUnitState dflags hpt (panic "newHscEnv.mkHomeUnitEnv: HomeUnit is not initialised, call 'initUnits' before using the HomeUnit field")) newHscEnvWithHUG :: FilePath -> DynFlags -> UnitId -> HomeUnitGraph -> IO HscEnv newHscEnvWithHUG top_dir top_dynflags cur_unit home_unit_graph = do View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6251dc4583d271a16c9332c2945957d1... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6251dc4583d271a16c9332c2945957d1... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Hannes Siebenhandl (@fendor)