Skip to content

Commit

Permalink
Post-rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
noughtmare committed Oct 17, 2024
1 parent 5177e65 commit e651d41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ghcide/src/Development/IDE/Core/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ typecheckModule (IdeDefer defer) hsc tc_helpers pm = do
etcm <-
let
-- TODO: maybe setting ms_hspp_opts is unnecessary?
mod_summary' = modSummary { ms_hspp_opts = hsc_dflags session}
mod_summary' = modSummary { ms_hspp_opts = hsc_dflags hscEnv}
in
catchSrcErrors (hsc_dflags hscEnv) sourceTypecheck $ do
tcRnModule hscEnv tc_helpers $ demoteIfDefer pm{pm_mod_summary = mod_summary'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,6 @@ smallerRangesForBindingExport lies b =
| T.unpack (printOutputable thing) == b' = []
| otherwise =
[ locA l' | L l' x <- inners, T.unpack (printOutputable x) == b']
#endif
ranges' _ = []

rangesForBinding' :: String -> LIE GhcPs -> [SrcSpan]
Expand Down
4 changes: 2 additions & 2 deletions test/functional/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type instance RuleResult GetTestDiagnostics = ()

expectDiagnosticsFail
:: HasCallStack
=> ExpectBroken 'Ideal [(FilePath, [(DiagnosticSeverity, Cursor, T.Text)])]
-> ExpectBroken 'Current [(FilePath, [(DiagnosticSeverity, Cursor, T.Text)])]
=> ExpectBroken 'Ideal [(FilePath, [(DiagnosticSeverity, Cursor, T.Text, Maybe T.Text)])]
-> ExpectBroken 'Current [(FilePath, [(DiagnosticSeverity, Cursor, T.Text, Maybe T.Text)])]
-> Session ()
expectDiagnosticsFail _ = expectDiagnostics . unCurrent

0 comments on commit e651d41

Please sign in to comment.