Tom Hvitved
1b6b1e56ed
Rust: Fix bad join
...
Before
```
Pipeline standard for ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18@7580bdbj was evaluated in 205 iterations totaling 49106ms (delta sizes total: 1254645).
8014745124 ~4% {1} r1 = AstNodeImpl::Impl::AstNode#22e758cf AND NOT `ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18#prev`(FIRST 1)
822416474 ~0% {2} | JOIN WITH `ElementImpl::Impl::MacroExpansion::getImmediatelyEnclosingMacroInvocation/1#1eb32ecc` ON FIRST 1 OUTPUT Rhs.1, Lhs.0
1254645 ~0% {1} | JOIN WITH `ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18#prev_delta` ON FIRST 1 OUTPUT Lhs.1
return r1
```
After
```
Pipeline standard for ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18@f39b84ka was evaluated in 205 iterations totaling 138ms (delta sizes total: 1254645).
4675568 ~0% {1} r1 = JOIN `ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18#prev_delta` WITH `ElementImpl::Impl::MacroExpansion::getImmediatelyEnclosingMacroInvocation/1#1eb32ecc_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1
4672186 ~0% {1} | JOIN WITH AstNodeImpl::Impl::AstNode#22e758cf ON FIRST 1 OUTPUT Lhs.0
1254645 ~0% {1} | AND NOT `ElementImpl::Impl::MacroExpansion::isFromMacroExpansion/1#69965d18#prev`(FIRST 1)
return r1
```
2025-11-13 15:26:01 +01:00
Tom Hvitved
bfa35629ac
Merge pull request #20744 from hvitved/rust/path-resolution-unqualified-use-tree
...
Rust: Handle unqualified `UseTree`s in path resolution
2025-11-13 11:18:41 +01:00
Tom Hvitved
c6164b33e5
Address review comment
2025-11-13 10:47:04 +01:00
Geoffrey White
e43000f7cf
Rust: Correct ordering in query suite .expected lists.
2025-11-13 09:21:04 +00:00
Geoffrey White
12cbb64ef8
Rust: Add query to suite .expected lists.
2025-11-13 09:00:56 +00:00
Geoffrey White
15fa99a288
Rust: Clarify some confusing text in the .qhelp.
2025-11-13 09:00:46 +00:00
Geoffrey White
42aca4a171
Apply suggestions from code review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2025-11-13 08:51:41 +00:00
Geoffrey White
0675a29ae6
Rust: Minor corrections.
2025-11-12 19:26:45 +00:00
Tom Hvitved
467bd541d2
Merge pull request #20770 from hvitved/rust/attribute-macro-expansion-filter
...
Rust: Remove elements superseded by attribute macro expansions
2025-11-12 19:52:09 +01:00
Geoffrey White
7a62642ed7
Rust: Change note.
2025-11-12 18:17:12 +00:00
Geoffrey White
49063ac8a9
Rust: Cut down the example for readability.
2025-11-12 18:13:02 +00:00
Geoffrey White
dcae0ef975
Rust: I prefer the original certificates reference from the Go .qhelp.
2025-11-12 18:10:44 +00:00
Geoffrey White
87d66c69a3
Rust: Clean up the .qhelp a little.
2025-11-12 18:10:02 +00:00
Geoffrey White
bb78fdf150
Rust: Add qhelp and examples (translated from Go, by Copilot).
2025-11-12 16:50:50 +00:00
Geoffrey White
c77eef39e2
Rust: Convert the query to a path-problem with global data flow.
2025-11-12 16:21:46 +00:00
Geoffrey White
209f394b5e
Rust: Fix the alert message.
2025-11-12 15:51:03 +00:00
Geoffrey White
f8ef48b924
Rust: Add query test.
2025-11-12 15:44:15 +00:00
Geoffrey White
9598772477
Update rust/ql/examples/snippets/simple_constant_password.ql
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2025-11-12 14:37:45 +00:00
Geoffrey White
f6b7aeaaca
Rust: Add prototype query.
2025-11-11 16:01:10 +00:00
Geoffrey White
109abddc36
Apply suggestions from code review
...
Co-authored-by: Simon Friis Vindum <paldepind@github.com >
2025-11-11 09:32:14 +00:00
Geoffrey White
8624f9c660
Merge pull request #20749 from github/copilot/add-secure-cookie-test-cases
...
Add test coverage for actix-web, poem, and http-types cookie secure attribute
2025-11-11 09:26:26 +00:00
Geoffrey White
4b212239e1
Rust: Remove unnecessary .(BlockExpr).
2025-11-10 12:35:39 +00:00
Tom Hvitved
de367eaad6
Update rust/ql/lib/codeql/rust/elements/internal/ElementImpl.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-10 12:42:28 +01:00
Tom Hvitved
c81f5f5190
Rust: Remove elements superseded by attribute macro expansions
2025-11-10 09:18:58 +01:00
Tom Hvitved
0bf458a56f
Rust: Run codegen
2025-11-09 20:40:13 +01:00
Geoffrey White
61481b51e7
Rust: Change note.
2025-11-07 16:55:35 +00:00
Geoffrey White
7e3ab99d6b
Rust: Add much more detailed code comments, since these are examples.
2025-11-07 13:48:03 +00:00
Geoffrey White
7b6e06e8de
Rust: Add simple constant password example.
2025-11-07 13:30:53 +00:00
Geoffrey White
49aefe2110
Rust: Add simple SQL injection example.
2025-11-06 18:49:55 +00:00
Geoffrey White
6ce0a0d9df
Rust: Add example from the basic-query-for-rust-code.rst.
2025-11-06 17:50:59 +00:00
Geoffrey White
84b50606ed
Rust: Add example queries pack.
2025-11-06 17:33:15 +00:00
Tom Hvitved
000f33fcbf
Merge pull request #20765 from hvitved/rust/variable-if-let-guard
...
Rust: Handle variables introduced in if-let guards
2025-11-06 13:49:38 +01:00
Geoffrey White
b4b444de48
Merge pull request #20746 from geoffw0/mv3
...
Rust: Clean up some models
2025-11-06 10:07:43 +00:00
Geoffrey White
680870dbf3
Rust: Fix after merge.
2025-11-06 09:39:51 +00:00
Tom Hvitved
f8cde74eac
Merge pull request #20736 from github/copilot/add-constaccess-class
...
Rust: Add ConstAccess class with getConst() predicate
2025-11-06 10:25:06 +01:00
Geoffrey White
1ce787a185
Merge branch 'main' into mv3
2025-11-06 09:23:01 +00:00
Tom Hvitved
c80301d58a
Rust: Handle variables introduced in if-let guards
2025-11-05 19:46:54 +01:00
Geoffrey White
1e7acc5e1a
Merge branch 'main' into copilot/add-secure-cookie-test-cases
2025-11-05 17:53:02 +00:00
Geoffrey White
62e77687ca
Rust: Move async_std::io models.
2025-11-05 15:09:39 +00:00
Tom Hvitved
db7b187961
Rust: Add more variables tests
2025-11-05 15:32:24 +01:00
Geoffrey White
e78018769b
Rust: Add the model file (missed on previous commits).
2025-11-05 12:50:26 +00:00
Geoffrey White
6e35cb9748
Rust: Change note.
2025-11-05 11:36:04 +00:00
Geoffrey White
ad24b7414e
Rust: Fix for Poem cookies defaulting secure.
2025-11-05 11:32:30 +00:00
Geoffrey White
99a369228b
Rust: Model poem cookie methods.
2025-11-05 11:14:40 +00:00
Michael B. Gale
046db0419f
Merge pull request #20758 from github/post-release-prep/codeql-cli-2.23.4
...
Post-release preparation for codeql-cli-2.23.4
2025-11-05 10:45:51 +00:00
Geoffrey White
ff06181e4b
Rust: We actually want barriers on set_secure(false) as well as set_secure(true), to prevent excessive flow paths.
2025-11-04 19:30:35 +00:00
Geoffrey White
5fed5a278e
Rust: It turns out Poem defaults 'secure' to true.
2025-11-04 18:37:20 +00:00
Geoffrey White
7383e4ff23
Rust: Test for another edge cases supported by two of the libraries.
2025-11-04 18:25:02 +00:00
github-actions[bot]
4014df9a6e
Post-release preparation for codeql-cli-2.23.4
2025-11-04 17:57:52 +00:00
Geoffrey White
21274d3d76
Rust: Add tests of poem CookieConfig.
2025-11-04 15:14:00 +00:00