[compiler] Fix failing Rust compiler test case for todo-locally-require-fbt (#36767)
Two fundamental changes (plus a lot of formatting that got mixed in :/ ): Modify how we determine if a local binding exists for the case where the scope is extracted from a function, rather than a module, which is the case for snap tests. And, loosen the rust port tester to allow debug output to be printed from one compiler or another as long as both sides error in the same phase with the same error message (basically, the rust port emits debug information before throwing an error, whereas the TS version does one or the other -- but it's not actually a real difference). With this change and loosening, the Rust compiler conforms on the todo-locally-require-fbt case. --------- Co-authored-by: mvitousek <mvitousek@devvm12588.pnb0.facebook.com>
M
Michael Vitousek committed
7a7e893c50c435cca51f40842b3fe5a5c48c09b3
Parent: ec0fca3
Committed by GitHub <noreply@github.com>
on 7/2/2026, 5:16:29 AM