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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
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
15.5k
Star
118k
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
Implement #[track_caller] attribute. (RFC 2091 4/N)
- #65881
#65881
Merged
bors
merged 16 commits into
rust-lang:master
rust-lang/rust:master
from
anp:implicit-caller-location
anp/rust:implicit-caller-location
Copy head branch name to clipboard
Dec 8, 2019
Conversation
Commits
16
(16)
Checks
Files changed
Merged
Implement #[track_caller] attribute. (RFC 2091 4/N)
#65881
bors
merged 16 commits into
rust-lang:master
rust-lang/rust:master
from
anp:implicit-caller-location
anp/rust:implicit-caller-location
Copy head branch name to clipboard
Commits
Commits on Dec 6, 2019
Implement #[track_caller] in const.
anp
committed
9ab065d
View commit details
Copy full SHA for 9ab065d
Browse repository at this point
Rename test filename to match others.
anp
committed
de44f09
View commit details
Copy full SHA for de44f09
Browse repository at this point
Add failing test for codegen'd track_caller attribute.
anp
committed
d47043b
View commit details
Copy full SHA for d47043b
Browse repository at this point
Add field to FunctionCx for passing caller location.
anp
committed
f1d942b
View commit details
Copy full SHA for f1d942b
Browse repository at this point
Generate &core::panic::Location type in a single place.
anp
committed
4773ded
View commit details
Copy full SHA for 4773ded
Browse repository at this point
Add caller_location paramter to FnAbi::new_internal.
Show description for fa6bb39
anp
committed
fa6bb39
View commit details
Copy full SHA for fa6bb39
Browse repository at this point
Pass a location to #[track_caller] functions in codegen_call_terminator.
anp
committed
207f520
View commit details
Copy full SHA for 207f520
Browse repository at this point
Remove #[track_caller] from incomplete features list.
anp
committed
ebaebd9
View commit details
Copy full SHA for ebaebd9
Browse repository at this point
Implement core::panic::Location::caller using #[track_caller].
anp
committed
bc6e66e
View commit details
Copy full SHA for bc6e66e
Browse repository at this point
Add test for Location::caller in a macro.
anp
committed
eb679c9
View commit details
Copy full SHA for eb679c9
Browse repository at this point
Error message no longer implies #[track_caller] is a requirement for Rust ABI.
anp
committed
28b2257
View commit details
Copy full SHA for 28b2257
Browse repository at this point
`#[track_caller]` suppresses MIR inlining.
anp
committed
cc574be
View commit details
Copy full SHA for cc574be
Browse repository at this point
Commits on Dec 7, 2019
Always call const fns with #[track_caller].
Show description for 7afbbf7
anp
committed
7afbbf7
View commit details
Copy full SHA for 7afbbf7
Browse repository at this point
Caller location is propagated via immediates rather than memory.
anp
committed
99165ce
View commit details
Copy full SHA for 99165ce
Browse repository at this point
Address review feedback.
anp
committed
1c2483e
View commit details
Copy full SHA for 1c2483e
Browse repository at this point
Add additional layer of #[track_caller] to test, avoid const prop.
anp
committed
15d1f7c
View commit details
Copy full SHA for 15d1f7c
Browse repository at this point
You can’t perform that action at this time.