Avoid find_tycon panic if datacon is not in scope
authorAdam Gundry <adam@well-typed.com>
Mon, 14 Nov 2016 16:35:40 +0000 (16:35 +0000)
committerClint Adams <clint@debian.org>
Mon, 14 Nov 2016 16:35:40 +0000 (16:35 +0000)
commitb968bfa642f98b1c4e701f33d6fd2ef48c506d63
tree56649f7943a36fcd553fe720a605943223175233
parente8bd400eb808c84d9a089bc66614bbb49594a121
Avoid find_tycon panic if datacon is not in scope

When using TH to splice expressions involving record field construction,
the parent datacon may not be in scope.  We shouldn't panic about this,
because we will be renaming Exact RdrNames which don't require any
disambiguation.

Reviewers: austin, bgamari
Reviewed By: bgamari
Differential Revision: https://phabricator.haskell.org/D2321
GHC Trac Issues: #12130

Origin: upstream, https://git.haskell.org/ghc.git/commitdiff/694e0f3a08030

Gbp-Pq: Name find-tycon-panic
compiler/rename/RnPat.hs