Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Rust: Add data flow test for ? in a closure - #22913

Merged
hvitved merged 1 commit into
github:mainfrom
hvitved:rust/try-in-closure-test
Oct 30, 2026
Merged

hvitved merged 1 commit into
github:mainfrom
hvitved:rust/try-in-closure-test

Conversation

@hvitved

@hvitved hvitved commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

#22903 follow-up.

@github-actions github-actions Bot added the Rust Pull requests that update Rust code label Oct 28, 2026
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Oct 28, 2026
@hvitved
hvitved marked this pull request as ready for review October 28, 2026 14:31
@hvitved
hvitved requested a review from a team as a code owner October 28, 2026 14:31
@hvitved
hvitved requested review from paldepind and a max review from Copilot October 28, 2026 14:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the tail-position ? closure test and expected-output updates.

No open issues 🎉

What changed in this PR

Extends Rust’s closure data-flow tests after #22903 to verify that a tail-position ? preserves normal return-value flow.

Changes:

  • Adds a closure test that unwraps nested Option values and checks flow to a sink.
  • Updates expected data-flow paths and model output.
File Description
rust/​ql/​test/​library-tests/​dataflow/​lambdas/​main.rs Adds the closure ? flow test.
rust/​ql/​test/​library-tests/​dataflow/​lambdas/​inline-flow.expected Records expected paths and the Option::unwrap model.

Review effort: Max

paldepind
paldepind previously approved these changes Oct 30, 2026
@hvitved
hvitved merged commit 1de0ff0 into github:main Oct 30, 2026
21 checks passed
@hvitved
hvitved deleted the rust/try-in-closure-test branch October 30, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants