Skip to content
Snippets Groups Projects
Commit 0e5236ad authored by Krzysztof Gogolewski's avatar Krzysztof Gogolewski Committed by Ben Gamari
Browse files

Fix lookupIdSubst call during RULE matching

As #20200 showed, there was a call to lookupIdSubst during RULE
matching, where the variable being looked up wasn't in the InScopeSet.

This patch fixes the problem at source, by dealing separately with
nested and non-nested binders.

As a result we can change the trace call in lookupIdSubst to a
proper panic -- if it happens, we really want to know.

(cherry picked from commit 149bce42)
parent 2196c994
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment