Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIT: Support block statements #1841

Merged
merged 67 commits into from
Oct 8, 2024
Merged

JIT: Support block statements #1841

merged 67 commits into from
Oct 8, 2024

Conversation

chriseth
Copy link
Member

No description provided.

Base automatically changed from compi to main September 27, 2024 07:18
@chriseth chriseth force-pushed the let_statements_in_block branch from d73c3d4 to f4e2824 Compare September 30, 2024 14:48
@chriseth chriseth changed the base branch from main to match_expr September 30, 2024 15:16
@chriseth chriseth force-pushed the let_statements_in_block branch 2 times, most recently from 1c9fefe to 1a383f3 Compare September 30, 2024 15:37
@chriseth chriseth force-pushed the let_statements_in_block branch from 1a383f3 to b24ee27 Compare September 30, 2024 15:42
@chriseth chriseth changed the title Support block statements. JIT: Support block statements Oct 2, 2024
Base automatically changed from match_expr to main October 2, 2024 13:29
@chriseth chriseth changed the base branch from main to match_expr October 2, 2024 13:57
@chriseth chriseth changed the base branch from match_expr to main October 2, 2024 14:03
@chriseth chriseth marked this pull request as ready for review October 2, 2024 14:04
.unwrap_or_default();

let (vars, code) = check_pattern(var_name, pattern)?;
// TODO if we want to explicitly specify the type, we need to exchange the non-captured
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a note in case we need it in the future if rust cannot determine the type.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this comment. It is talking about the type of {vars} , I assume. But what are the non-captured parts that must be exchanged by ()?

Copy link
Member

@lvella lvella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, unless you agree the TODO is a little cryptic.

@chriseth chriseth added this pull request to the merge queue Oct 5, 2024
@chriseth
Copy link
Member Author

chriseth commented Oct 5, 2024

I'll create a follow-up PR to extend the todo.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 5, 2024
@chriseth chriseth added this pull request to the merge queue Oct 8, 2024
Merged via the queue into main with commit 5d1a2fa Oct 8, 2024
14 checks passed
@chriseth chriseth deleted the let_statements_in_block branch October 8, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants