summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorLuke Lau <luke_lau@icloud.com>2020-05-28 20:51:32 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-10 04:17:22 -0400
commit32fd37f5e1e6dc6e3b664ae41e0041ed8a19ae21 (patch)
tree253ef3b37d1db85a67f19cfbc8b3e7263eac3d03 /libffi
parent6d49d5be904c0c01788fa7aae1b112d5b4dfaf1c (diff)
downloadhaskell-32fd37f5e1e6dc6e3b664ae41e0041ed8a19ae21.tar.gz
Fix lookupGlobalOccRn_maybe sometimes reporting an error
In some cases it was possible for lookupGlobalOccRn_maybe to return an error, when it should be returning a Nothing. If it called lookupExactOcc_either when there were no matching GlobalRdrElts in the otherwise case, it would return an error message. This could be caused when lookupThName_maybe in Template Haskell was looking in different namespaces (thRdrNameGuesses), guessing different namespaces that the name wasn't guaranteed to be found in. However, by addressing this some more accurate errors were being lost in the conversion to Maybes. So some of the lookup* functions have been shuffled about so that errors should always be ignored in lookup*_maybes, and propagated otherwise. This fixes #18263
Diffstat (limited to 'libffi')
0 files changed, 0 insertions, 0 deletions