Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
rust-lang
/
rust
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
16.4k
Star
119k
Code
Issues
5k+
Pull requests
1.4k
Actions
Projects
Security and quality
6
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Support using const pointers in asm
const
operand
- #138618
#138618
Merged
rust-bors[bot]
merged 13 commits into
rust-lang:main
rust-lang/rust:main
from
nbdd0121:asm_const_ptr
nbdd0121/rust:asm_const_ptr
Copy head branch name to clipboard
Jul 26, 2026
Conversation
Commits
13
(13)
Checks
Files changed
Merged
Support using const pointers in asm
const
operand
#138618
rust-bors[bot]
merged 13 commits into
rust-lang:main
rust-lang/rust:main
from
nbdd0121:asm_const_ptr
nbdd0121/rust:asm_const_ptr
Copy head branch name to clipboard
Commits
Commits on Jul 22, 2026
Collect constants within `global_asm!` in collector
Show description for 4233b3b
nbdd0121
committed
4233b3b
View commit details
Copy full SHA for 4233b3b
Browse repository at this point
Add FnDef/Closure -> FnPtr coercion for inline asm const operand
nbdd0121
committed
f44536c
View commit details
Copy full SHA for f44536c
Browse repository at this point
Give global_asm symbol names
Show description for bf74b6c
nbdd0121
committed
bf74b6c
View commit details
Copy full SHA for bf74b6c
Browse repository at this point
Delay stringification of const to backend
nbdd0121
committed
b44bea2
View commit details
Copy full SHA for b44bea2
Browse repository at this point
Unify handling of asm const and sym using CTFE
Show description for ca40339
nbdd0121
committed
ca40339
View commit details
Copy full SHA for ca40339
Browse repository at this point
Unify handling of `GlobalAlloc` inside backend
Show description for 4c39d62
nbdd0121
committed
4c39d62
View commit details
Copy full SHA for 4c39d62
Browse repository at this point
Handle pointers with offset for asm const
nbdd0121
committed
338d560
View commit details
Copy full SHA for 338d560
Browse repository at this point
Support codegen of asm const pointers without provenance
Show description for 6deaed5
nbdd0121
committed
6deaed5
View commit details
Copy full SHA for 6deaed5
Browse repository at this point
Give codegen units symbol names that backend can use
nbdd0121
committed
1fd34e4
View commit details
Copy full SHA for 1fd34e4
Browse repository at this point
Generate unique symbol names if const pointers refer to promoted static
nbdd0121
committed
c95d35e
View commit details
Copy full SHA for c95d35e
Browse repository at this point
Commits on Jul 23, 2026
Implement asm_const_ptr feature
Show description for 73ff59f
nbdd0121
committed
73ff59f
View commit details
Copy full SHA for 73ff59f
Browse repository at this point
Add test if asm const are MIR inlined and monomorphized twice
nbdd0121
committed
5d22dac
View commit details
Copy full SHA for 5d22dac
Browse repository at this point
Expand invalid-const-operand test case to cover &str and &CStr
Show description for 0316085
nbdd0121
committed
0316085
View commit details
Copy full SHA for 0316085
Browse repository at this point
You can’t perform that action at this time.