René's URL Explorer Experiment


Title: Type inference: Improve base type matching by hvitved · Pull Request #22761 · github/codeql · GitHub

Open Graph Title: Type inference: Improve base type matching by hvitved · Pull Request #22761 · github/codeql

X Title: Type inference: Improve base type matching by hvitved · Pull Request #22761 · github/codeql

Description: CodeQL: the libraries and queries that power security researchers around the world, as well as code scanning in GitHub Advanced Security - Type inference: Improve base type matching by hvitved · Pull Request #22761 · github/codeql

Open Graph Description: Before this PR, type information could only propagate backwards through sub typing when using type constraints (because that is the only form supported in Rust): class Base<B> { init(_ b : ...

X Description: Before this PR, type information could only propagate backwards through sub typing when using type constraints (because that is the only form supported in Rust): class Base&lt;B&gt; { ini...

Opengraph URL: https://github.com/github/codeql/pull/22761

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:a4e16736-84a1-252d-0d3f-916942039fae
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idECDE:6EE9B:1441788:1AB2EB7:6AF890A7
html-safe-nonceb9fff1f6b1e3c95601dae57be9b0e7f61128887c40f67920b973c9f061becb12
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0RFOjZFRTlCOjE0NDE3ODg6MUFCMkVCNzo2QUY4OTBBNyIsInZpc2l0b3JfaWQiOiIxNjI5ODQyODY1NDUxOTk1MzAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf35170d37e167addac90d665c92cc75c3bf4af89fb926bb2e72ee31b37605714
hovercard-subject-tagpull_request:4759130717
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/github/codeql/22761/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/db868d893e0954077e03b777a5a5155cc098872b00361bc0651c932407714716/github/codeql/pull/22761
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/db868d893e0954077e03b777a5a5155cc098872b00361bc0651c932407714716/github/codeql/pull/22761
og:image:altBefore this PR, type information could only propagate backwards through sub typing when using type constraints (because that is the only form supported in Rust): class Base<B> { init(_ b : ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehvitved
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/github/codeql git https://github.com/github/codeql.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id143040428
octolytics-dimension-repository_nwogithub/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/github/codeql/pull/22761#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F22761
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F22761
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=github%2Fcodeql
Reloadhttps://github.com/github/codeql/pull/22761
Reloadhttps://github.com/github/codeql/pull/22761
Reloadhttps://github.com/github/codeql/pull/22761
githubhttps://github.com/github
codeqlhttps://github.com/github/codeql
Codehttps://github.com/github/codeql
Issues1k (1k)https://github.com/github/codeql/issues
Pull requests516 (516)https://github.com/github/codeql/pulls
Discussionshttps://github.com/github/codeql/discussions
Actionshttps://github.com/github/codeql/actions
Projectshttps://github.com/github/codeql/projects
Security and qualityhttps://github.com/github/codeql/security
Insightshttps://github.com/github/codeql/pulse
https://github.com/github/codeql
hvitvedhttps://github.com/hvitved
github:mainhttps://github.com/github/codeql/tree/main
hvitved:type-inference-more-base-matchinghttps://github.com/hvitved/codeql/tree/type-inference-more-base-matching
Conversationhttps://github.com/github/codeql/pull/22761
Commits3 (3)https://github.com/github/codeql/pull/22761/commits
Checkshttps://github.com/github/codeql/pull/22761/checks
Findingshttps://github.com/github/codeql/pull/22761/findings
Files changedhttps://github.com/github/codeql/pull/22761/files
Type inference: Improve base type matchinghttps://github.com/github/codeql/pull/22761#top
hvitvedhttps://github.com/hvitved
github:mainhttps://github.com/github/codeql/tree/main
hvitved:type-inference-more-base-matchinghttps://github.com/hvitved/codeql/tree/type-inference-more-base-matching
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
Oct 6, 2026https://github.com/github/codeql/pull/22761#issue-5728884471
Please reload this pagehttps://github.com/github/codeql/pull/22761
Rusthttps://github.com/github/codeql-dca-main/issues/39788
Swifthttps://github.com/github/codeql-dca-main/issues/39790
Please reload this pagehttps://github.com/github/codeql/pull/22761
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Rust https://github.com/github/codeql/issues?q=state%3Aopen%20label%3ARust
Unified https://github.com/github/codeql/issues?q=state%3Aopen%20label%3AUnified
Oct 6, 2026https://github.com/github/codeql/pull/22761#event-32602216330
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
force-pushedhttps://github.com/github/codeql/compare/b16635a6d8ff60860a83bff93abbe9d6e7ec4fb1..26a8bbc88082430f2537dae0eb7681a0323d85e6
b16635ahttps://github.com/github/codeql/commit/b16635a6d8ff60860a83bff93abbe9d6e7ec4fb1
26a8bbchttps://github.com/github/codeql/commit/26a8bbc88082430f2537dae0eb7681a0323d85e6
Compare https://github.com/github/codeql/compare/b16635a6d8ff60860a83bff93abbe9d6e7ec4fb1..26a8bbc88082430f2537dae0eb7681a0323d85e6
October 7, 2026 12:07https://github.com/github/codeql/pull/22761#event-32687288103
hvitvedhttps://github.com/hvitved
October 7, 2026 15:21https://github.com/github/codeql/pull/22761#commits-pushed-72a00e3
https://github.com/hvitved
Unified: More type inference testshttps://github.com/github/codeql/pull/22761/commits/72a00e3c26b50f8ca00d97c709b43857e20c4485
72a00e3https://github.com/github/codeql/pull/22761/commits/72a00e3c26b50f8ca00d97c709b43857e20c4485
https://github.com/hvitved
Unified: Type inference for empty array literalshttps://github.com/github/codeql/pull/22761/commits/70e4424a94c51e7f2c766e88c9a6bb5b630513d9
70e4424https://github.com/github/codeql/pull/22761/commits/70e4424a94c51e7f2c766e88c9a6bb5b630513d9
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
force-pushedhttps://github.com/github/codeql/compare/26a8bbc88082430f2537dae0eb7681a0323d85e6..8cb1938b8e783dfef5801f38994fb2d4cfa048c5
26a8bbchttps://github.com/github/codeql/commit/26a8bbc88082430f2537dae0eb7681a0323d85e6
8cb1938https://github.com/github/codeql/commit/8cb1938b8e783dfef5801f38994fb2d4cfa048c5
Compare https://github.com/github/codeql/compare/26a8bbc88082430f2537dae0eb7681a0323d85e6..8cb1938b8e783dfef5801f38994fb2d4cfa048c5
October 7, 2026 13:22https://github.com/github/codeql/pull/22761#event-32692968932
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Rust https://github.com/github/codeql/issues?q=state%3Aopen%20label%3ARust
Oct 7, 2026https://github.com/github/codeql/pull/22761#event-32693414331
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
Copilothttps://github.com/apps/copilot-pull-request-reviewer
October 7, 2026 14:33https://github.com/github/codeql/pull/22761#event-32698926175
started reviewinghttps://github.com/github/codeql/sessions/42cb63b1-f1d3-47ac-b495-145d0c75909b
hvitvedhttps://github.com/hvitved
October 7, 2026 14:34https://github.com/github/codeql/pull/22761#event-32698982964
View session https://github.com/github/codeql/sessions/42cb63b1-f1d3-47ac-b495-145d0c75909b
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Oct 7, 2026 https://github.com/github/codeql/pull/22761#pullrequestreview-5443948810
View reviewed changes https://github.com/github/codeql/pull/22761/files
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/github/codeql/pull/22761#pullrequestreview-5443948810
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Use the declared Derived type in the example invocationhttps://github.com/github/codeql/pull/22761#discussion_r4208244774
Add a code-review agent skillhttps://github.com/github/codeql/new/main?filename=.github/skills/code-review/SKILL.md
Learn more in the docs.https://docs.github.com/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=webui#mcp-servers-and-agent-skills
Please reload this pagehttps://github.com/github/codeql/pull/22761
shared/typeinference/codeql/typeinference/internal/TypeInference.qllhttps://github.com/github/codeql/pull/22761/files#diff-92b7348deb78d626ed9c382ed1eb2a6ab4b7291865006d0523ea460ef94bd1dd
Please reload this pagehttps://github.com/github/codeql/pull/22761
https://github.com/hvitved
Type inference: Improve base type matchinghttps://github.com/github/codeql/pull/22761/commits/468caa3ba37def5992e656b62fa187fc07e61022
468caa3https://github.com/github/codeql/pull/22761/commits/468caa3ba37def5992e656b62fa187fc07e61022
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
force-pushedhttps://github.com/github/codeql/compare/8cb1938b8e783dfef5801f38994fb2d4cfa048c5..468caa3ba37def5992e656b62fa187fc07e61022
8cb1938https://github.com/github/codeql/commit/8cb1938b8e783dfef5801f38994fb2d4cfa048c5
468caa3https://github.com/github/codeql/commit/468caa3ba37def5992e656b62fa187fc07e61022
Compare https://github.com/github/codeql/compare/8cb1938b8e783dfef5801f38994fb2d4cfa048c5..468caa3ba37def5992e656b62fa187fc07e61022
October 7, 2026 14:45https://github.com/github/codeql/pull/22761#event-32699838863
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
no-change-note-required https://github.com/github/codeql/issues?q=state%3Aopen%20label%3Ano-change-note-required
Oct 7, 2026https://github.com/github/codeql/pull/22761#event-32716718175
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
October 7, 2026 18:42https://github.com/github/codeql/pull/22761#event-32716734072
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
code ownershttps://github.com/github/codeql/blob/27a8a7e94a38c6f9a5de7405c4d216164fb3db49/CODEOWNERS#L25
October 7, 2026 18:42https://github.com/github/codeql/pull/22761#event-32716735300
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
paldepindhttps://github.com/paldepind
October 7, 2026 18:42https://github.com/github/codeql/pull/22761#event-32716746411
https://github.com/paldepind
paldepindhttps://github.com/paldepind
Oct 9, 2026 https://github.com/github/codeql/pull/22761#pullrequestreview-5469105549
View reviewed changes https://github.com/github/codeql/pull/22761/files/468caa3ba37def5992e656b62fa187fc07e61022
paldepindhttps://github.com/paldepind
https://github.com/github/codeql/pull/22761#pullrequestreview-5469105549
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql/pull/22761
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
Oct 9, 2026https://github.com/github/codeql/pull/22761#issuecomment-6080305395
Please reload this pagehttps://github.com/github/codeql/pull/22761
https://github.com/paldepind
paldepindhttps://github.com/paldepind
Oct 9, 2026 https://github.com/github/codeql/pull/22761#pullrequestreview-5470256978
View reviewed changes https://github.com/github/codeql/pull/22761/files/468caa3ba37def5992e656b62fa187fc07e61022
paldepindhttps://github.com/paldepind
https://github.com/github/codeql/pull/22761#pullrequestreview-5470256978
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql/pull/22761
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
dc7b9bdhttps://github.com/github/codeql/commit/dc7b9bdd6d81556259f7ee2c9f491ed579b0d3f5
Oct 9, 2026https://github.com/github/codeql/pull/22761#event-32876006308
Please reload this pagehttps://github.com/github/codeql/pull/22761
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
October 9, 2026 12:53https://github.com/github/codeql/pull/22761#event-32876012882
https://github.com/hvitved
hvitvedhttps://github.com/hvitved
Nov 11, 2026 https://github.com/github/codeql/pull/22761#ref-pullrequest-6306309680
Type inference: Reduce code duplication #23072 https://github.com/github/codeql/pull/23072
https://github.co/hiddenchars
https://github.com/github/codeql/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F22761
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Learn more about Copilot code review.https://gh.io/copilot-code-review-docs
https://github.com/github/codeql/pull/22761/files/8cb1938b8e783dfef5801f38994fb2d4cfa048c5
https://github.com/paldepind
paldepind https://github.com/paldepind
https://github.com/github/codeql/pull/22761/files/468caa3ba37def5992e656b62fa187fc07e61022
Please reload this pagehttps://github.com/github/codeql/pull/22761
no-change-note-required https://github.com/github/codeql/issues?q=state%3Aopen%20label%3Ano-change-note-required
Unified https://github.com/github/codeql/issues?q=state%3Aopen%20label%3AUnified
Please reload this pagehttps://github.com/github/codeql/pull/22761
https://github.com/hvitved
https://github.com/paldepind
https://github.com/apps/copilot-pull-request-reviewer
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.