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
Accelerator
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
Type
/
to 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.4k
Star
115k
Code
Issues
5k+
Pull requests
1.3k
Actions
Projects
Security and quality
6
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Add support for macro expansion in rustdoc source code pages
- #137229
#137229
Merged
bors
merged 15 commits into
rust-lang:master
rust-lang/rust:master
from
GuillaumeGomez:expand-macro
GuillaumeGomez/rust:expand-macro
Copy head branch name to clipboard
Aug 24, 2025
Conversation
Commits
15
(15)
Checks
Files changed
Merged
Add support for macro expansion in rustdoc source code pages
#137229
bors
merged 15 commits into
rust-lang:master
rust-lang/rust:master
from
GuillaumeGomez:expand-macro
GuillaumeGomez/rust:expand-macro
Copy head branch name to clipboard
Commits
Commits on Aug 22, 2025
Add support for macro expansion in rustdoc source code pages
GuillaumeGomez
committed
ba3099f
View commit details
Copy full SHA for ba3099f
Browse repository at this point
Add new unstable `--generate-macro-expansion` rustdoc command line flag
GuillaumeGomez
committed
f8ce376
View commit details
Copy full SHA for f8ce376
Browse repository at this point
Add documentation for `--generate-macro-expansion`
GuillaumeGomez
committed
3642128
View commit details
Copy full SHA for 3642128
Browse repository at this point
Update `tests/run-make/rustdoc-default-output` test
GuillaumeGomez
committed
18739ee
View commit details
Copy full SHA for 18739ee
Browse repository at this point
Correctly handle multiple macro expansions on a same line
GuillaumeGomez
committed
6c1b481
View commit details
Copy full SHA for 6c1b481
Browse repository at this point
Update rustdoc-gui tests
GuillaumeGomez
committed
b7a4150
View commit details
Copy full SHA for b7a4150
Browse repository at this point
Add GUI test for `--generate-macro-expansion` option
GuillaumeGomez
committed
e6f9e2e
View commit details
Copy full SHA for e6f9e2e
Browse repository at this point
Go around firefox bug
GuillaumeGomez
committed
3de3b27
View commit details
Copy full SHA for 3de3b27
Browse repository at this point
Clean up computation of macro expansion span and correctly handle spans open inside expansion spans
GuillaumeGomez
committed
ab000e1
View commit details
Copy full SHA for ab000e1
Browse repository at this point
Do macro expansion at AST level rather than HIR
GuillaumeGomez
committed
f8b8cc4
View commit details
Copy full SHA for f8b8cc4
Browse repository at this point
Make macro expansion feature buttons accessible
GuillaumeGomez
committed
b968ef8
View commit details
Copy full SHA for b968ef8
Browse repository at this point
Improve code
GuillaumeGomez
committed
bd5f3d7
View commit details
Copy full SHA for bd5f3d7
Browse repository at this point
Also support statements and patterns for macro expansion
GuillaumeGomez
committed
0e9b126
View commit details
Copy full SHA for 0e9b126
Browse repository at this point
Commits on Aug 23, 2025
Improve code and add test with macro coming from another file from the same crate
GuillaumeGomez
committed
f5fddc7
View commit details
Copy full SHA for f5fddc7
Browse repository at this point
Update `tests/run-make/rustdoc-default-output/` output
GuillaumeGomez
committed
d0913c5
View commit details
Copy full SHA for d0913c5
Browse repository at this point
You can’t perform that action at this time.