Repository navigation
Fix jsg-macros build after the #8201 and #8213 merges - #8233
Merged
Merged
Conversation
#8201 made generate_callbacks return Result<TokenStream, TokenStream>, and #8213, written against the old signature, added a rest-parameter check that returned reject(...).into(). The two merged without a textual conflict but no longer compile. Return the rejection as Err, like the function's other early exits.
uncleDecart
approved these changes
Nov 5, 2026
There was a problem hiding this comment.
✅ Approved — The one-line change fixes the type mismatch and is consistent with the function's other early exits. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
generate_callbacks returns Result<TokenStream, TokenStream>, and input_fn is already a &ItemFn. Err(reject(input_fn, ...)) therefore type-checks and matches the earlier receiver and this error exits. The .into() call at line 1075 is in a different function that returns a proc_macro::TokenStream, so it still compiles.
Reviewed commit: 16d0c4e2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
main is broken at 8c82573: every bazel job fails compiling
//src/rust/jsg-macros:#8201 made
generate_callbacksreturnResult<TokenStream, TokenStream>, and #8213, written against the old signature, added a rest-parameter check that returnedreject(...).into(). The two merged without a textual conflict but no longer compile. This returns the rejection asErr, like the function's other early exits.Tested:
//src/rust/jsg-macros:jsg-macros_testand//src/rust/jsg-test:jsg-test_testpass.