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
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 }}
x0rw
/
reference
Public
forked from
rust-lang/reference
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
reference
src
macros-by-example.md
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Jan 8, 2025
Move heading-related rules before headings
Show description for 5a14e3e
WaffleLapkin
committed
5a14e3e
View commit details
Copy full SHA for 5a14e3e
View code at this point
Browse repository at this point
Commits on Nov 4, 2024
2024: Update `expr` macro fragment specifier
ehuss
committed
3ad356a
View commit details
Copy full SHA for 3ad356a
View code at this point
Browse repository at this point
Commits on Oct 22, 2024
Fix `pat` fragment specifier to be the "current" edition
ehuss
committed
8658269
View commit details
Copy full SHA for 8658269
View code at this point
Browse repository at this point
Merge pull request #1641 from ehuss/sort-fragments
Show description for d953a36
traviscross
authored
d953a36
View commit details
Copy full SHA for d953a36
View code at this point
Browse repository at this point
Prepare PR #1656 to be merged
traviscross
committed
11ef502
View commit details
Copy full SHA for 11ef502
View code at this point
Browse repository at this point
Document mixed-site hygiene.
GoldsteinE
authored and
traviscross
committed
d062154
View commit details
Copy full SHA for d062154
View code at this point
Browse repository at this point
Commits on Oct 2, 2024
Sort macro fragment specifiers
ehuss
committed
91dc88b
View commit details
Copy full SHA for 91dc88b
View code at this point
Browse repository at this point
Add `expr_2021` macro fragment specifier
ehuss
committed
e4ba8b0
View commit details
Copy full SHA for e4ba8b0
View code at this point
Browse repository at this point
Fix misspellings
ehuss
committed
e6480e4
View commit details
Copy full SHA for e6480e4
View code at this point
Browse repository at this point
Commits on Sep 23, 2024
Remove double line breaks
chorman0773
committed
6c6dd24
View commit details
Copy full SHA for 6c6dd24
View code at this point
Browse repository at this point
Add idenfitiers to mbe and proc-macro
chorman0773
committed
1d38d39
View commit details
Copy full SHA for 1d38d39
View code at this point
Browse repository at this point
Commits on Aug 22, 2024
Be consistent about how "Edition differences" is capitalized
Show description for 0c7f99a
ehuss
committed
0c7f99a
View commit details
Copy full SHA for 0c7f99a
View code at this point
Browse repository at this point
Commits on Jul 1, 2024
Enable mdbook smart-punctuation.
ehuss
committed
62715cf
View commit details
Copy full SHA for 62715cf
View code at this point
Browse repository at this point
Commits on Apr 29, 2024
Add const blocks
nbdd0121
committed
01c8196
View commit details
Copy full SHA for 01c8196
View code at this point
Browse repository at this point
Commits on May 11, 2023
fix a typo
asdfefbhjy
authored
042cd78
View commit details
Copy full SHA for 042cd78
View code at this point
Browse repository at this point
Commits on Nov 15, 2022
Fix header hierarchy
Show description for 04f289a
danielhenrymantilla
and
ehuss
authored
04f289a
View commit details
Copy full SHA for 04f289a
View code at this point
Browse repository at this point
Add an anchor to the "forwarding macro fragments" paragraph
Show description for 87f527b
danielhenrymantilla
authored
87f527b
View commit details
Copy full SHA for 87f527b
View code at this point
Browse repository at this point
Commits on Jul 22, 2022
Revert "Add stable references of `macro_metavar_expr`"
tshepang
authored
314d63a
View commit details
Copy full SHA for 314d63a
View code at this point
Browse repository at this point
Commits on Jun 12, 2022
Update macros-by-example.md
c410-f3r
authored
8d039bd
View commit details
Copy full SHA for 8d039bd
View code at this point
Browse repository at this point
dollar-dollar
c410-f3r
committed
a00cc5d
View commit details
Copy full SHA for a00cc5d
View code at this point
Browse repository at this point
Commits on Jan 28, 2022
Update macros-by-example.md
pushkine
committed
d33b207
View commit details
Copy full SHA for d33b207
View code at this point
Browse repository at this point
Commits on Jan 19, 2022
Update macros-by-example.md
pushkine
authored
1b9b8d8
View commit details
Copy full SHA for 1b9b8d8
View code at this point
Browse repository at this point
Commits on Jan 17, 2022
Address comments
varkor
committed
9b91e9b
View commit details
Copy full SHA for 9b91e9b
View code at this point
Browse repository at this point
Mention special matching behaviour of `_` for `macro_rules!`
varkor
committed
21239a9
View commit details
Copy full SHA for 21239a9
View code at this point
Browse repository at this point
Commits on Jan 11, 2022
Clarify that the macro_rules! `pat` behaviour depends on the macro definition's edition
mattheww
committed
94a041f
View commit details
Copy full SHA for 94a041f
View code at this point
Browse repository at this point
Commits on Jan 9, 2022
Document the 2021 edition changes to macros-by-example `pat` metavariables
mattheww
committed
efc2cf3
View commit details
Copy full SHA for efc2cf3
View code at this point
Browse repository at this point
Merge pull request #1130 from mattheww/2022-01_metavariable_names
Show description for 434eb96
ehuss
authored
434eb96
View commit details
Copy full SHA for 434eb96
View code at this point
Browse repository at this point
Commits on Jan 8, 2022
Say that macros-by-example `ident` metavariables can match raw identifiers
Show description for 1947568
mattheww
committed
1947568
View commit details
Copy full SHA for 1947568
View code at this point
Browse repository at this point
Commits on Jan 7, 2022
Improve the documentation of macros-by-example metavariable names
Show description for cc5acf8
mattheww
committed
cc5acf8
View commit details
Copy full SHA for cc5acf8
View code at this point
Browse repository at this point
Commits on May 1, 2021
Add pat_param to follow set restrictions.
ehuss
committed
3a6ddea
View commit details
Copy full SHA for 3a6ddea
View code at this point
Browse repository at this point
Commits on Apr 29, 2021
Revert "Temporarily remove pat_param."
Show description for fb82ff7
ehuss
committed
fb82ff7
View commit details
Copy full SHA for fb82ff7
View code at this point
Browse repository at this point
Commits on Apr 28, 2021
Merge pull request #957 from mark-i-m/or-patterns
Show description for d23f9da
ehuss
authored
d23f9da
View commit details
Copy full SHA for d23f9da
View code at this point
Browse repository at this point
Temporarily remove pat_param.
Show description for 629e7df
ehuss
committed
629e7df
View commit details
Copy full SHA for 629e7df
View code at this point
Browse repository at this point
Commits on Apr 22, 2021
update pat2015/2021 parts
mark-i-m
committed
4b574ca
View commit details
Copy full SHA for 4b574ca
View code at this point
Browse repository at this point
Commits on Apr 1, 2021
Add a pair of parentheses as delimiter
Marcythm
authored
161b633
View commit details
Copy full SHA for 161b633
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.