SIGN IN SIGN UP

[rust-compiler] Propagate block lowering errors (#37364)

Propagate errors from block lowering instead of continuing with
incomplete HIR.

This prevents the Rust compiler from emitting partial output when it
encounters unsupported syntax, including nested TypeScript `this`
parameters.

This landed earlier as #37232, which exposed an existing FBT diagnostic
ordering issue. Resolve local FBT bindings before checking whether an
`<fbt>` tag comes from a module import, so the compiler reports the
earlier, more useful Todo instead of a later invariant.

Run from the repository root:

- `yarn --cwd compiler workspace babel-plugin-react-compiler-rust test`
- `cargo test --manifest-path compiler/Cargo.toml -p
react_compiler_lowering`
W
Will Binns-Smith committed
0bbf02475c7b61a618551f1cf10c9bebf336f285
Parent: f4e439e
Committed by GitHub <noreply@github.com> on 9/2/2026, 8:28:52 PM