Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Spark
Build and deploy intelligent apps
GitHub Models
Manage and compare prompts
MCP Registry
New
Discover and integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
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
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
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 or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
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
Notifications
You must be signed in to change notification settings
Fork
13.9k
Star
108k
Code
Issues
5k+
Pull requests
872
Actions
Projects
9
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Code
Make sure interned constants are immutable
#63955
Code
Merged
bors
merged 8 commits into
rust-lang:master
rust-lang/rust:master
from
RalfJung:intern
RalfJung/rust:intern
Copy head branch name to clipboard
Sep 16, 2019
Conversation
Commits
8
(8)
Checks
Files changed
Merged
Make sure interned constants are immutable
#63955
bors
merged 8 commits into
rust-lang:master
rust-lang/rust:master
from
RalfJung:intern
RalfJung/rust:intern
Copy head branch name to clipboard
Commits
Commits on Sep 15, 2019
const interning: move mutability computation into intern_shallow, and always intern constants as immutable
RalfJung
committed
6137691
Copy full SHA for 6137691
all memory behind a constant must be immutable
RalfJung
committed
7b8693e
Copy full SHA for 7b8693e
drop redundant ParamEnv, and avoid constructing InternVisitor without visiting
RalfJung
committed
75c82b4
Copy full SHA for 75c82b4
relocations -> allocations
RalfJung
committed
b1d4d2b
Copy full SHA for b1d4d2b
note a FIXME
RalfJung
committed
14e3506
Copy full SHA for 14e3506
assert that nobody asks for mutable constants
RalfJung
committed
3424811
Copy full SHA for 3424811
explain ty == None
RalfJung
committed
224e2e5
Copy full SHA for 224e2e5
update intern classification comment
RalfJung
committed
5462ecb
Copy full SHA for 5462ecb
You can’t perform that action at this time.