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 }}
dancer1325
/
rust-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
rust-reference
src
expressions
loop-expr.md
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 16, 2026
Fix rule name for while syntax
Show description for a7fa544
ehuss
committed
a7fa544
View commit details
Copy full SHA for a7fa544
View code at this point
Browse repository at this point
Commits on Jan 29, 2026
More clearly specify the type and divergence of a loop with break
ehuss
committed
1948110
View commit details
Copy full SHA for 1948110
View code at this point
Browse repository at this point
Specify the type of a labeled block expression
ehuss
committed
6c7c380
View commit details
Copy full SHA for 6c7c380
View code at this point
Browse repository at this point
Add rule expr.loop.break-value.implicit-value
Show description for 93c063e
ehuss
committed
93c063e
View commit details
Copy full SHA for 93c063e
View code at this point
Browse repository at this point
Consistently document and link diverging expressions
Show description for b398a52
ehuss
committed
b398a52
View commit details
Copy full SHA for b398a52
View code at this point
Browse repository at this point
Address some review comments
jackh726
authored and
ehuss
committed
f1e8ba2
View commit details
Copy full SHA for f1e8ba2
View code at this point
Browse repository at this point
Write chapter on divergence
jackh726
authored and
ehuss
committed
00f0849
View commit details
Copy full SHA for 00f0849
View code at this point
Browse repository at this point
Commits on Jan 26, 2026
Unwrap items, expressions, patterns, and types
Show description for 49115e0
ehuss
committed
49115e0
View commit details
Copy full SHA for 49115e0
View code at this point
Browse repository at this point
Commits on Oct 27, 2025
Use American spelling for "labeled"
Show description for 7a76490
traviscross
committed
7a76490
View commit details
Copy full SHA for 7a76490
View code at this point
Browse repository at this point
Commits on Aug 18, 2025
Switch to using native mdbook fragment redirects
Show description for f1bee95
ehuss
committed
f1bee95
View commit details
Copy full SHA for f1bee95
View code at this point
Browse repository at this point
Commits on Jun 11, 2025
Remove unneeded grammar links
Show description for 252904b
ehuss
committed
252904b
View commit details
Copy full SHA for 252904b
View code at this point
Browse repository at this point
Commits on May 3, 2025
Add some redirects for sections that were renamed
Show description for 8b5822b
ehuss
committed
8b5822b
View commit details
Copy full SHA for 8b5822b
View code at this point
Browse repository at this point
Update let chain grammar for minimum precedence
Show description for 602430a
ehuss
committed
602430a
View commit details
Copy full SHA for 602430a
View code at this point
Browse repository at this point
Document let chains again
est31
authored and
ehuss
committed
3abb0e3
View commit details
Copy full SHA for 3abb0e3
View code at this point
Browse repository at this point
Commits on Apr 28, 2025
Remove StructExprTuple and StructExprUnit
Show description for fe85d88
ehuss
committed
fe85d88
View commit details
Copy full SHA for fe85d88
View code at this point
Browse repository at this point
Commits on Apr 13, 2025
Convert all of the grammar to use the new grammar renderer
ehuss
committed
3a2ea7e
View commit details
Copy full SHA for 3a2ea7e
View code at this point
Browse repository at this point
Commits on Apr 10, 2025
Add missing rules for syntax blocks
ehuss
committed
acd95af
View commit details
Copy full SHA for acd95af
View code at this point
Browse repository at this point
Commits on Mar 9, 2025
Unwrap all note blocks
Show description for f5cffea
ehuss
authored and
traviscross
committed
f5cffea
View commit details
Copy full SHA for f5cffea
View code at this point
Browse repository at this point
Switch all note blocks to use admonition syntax
Show description for 484d3f2
ehuss
authored and
traviscross
committed
484d3f2
View commit details
Copy full SHA for 484d3f2
View code at this point
Browse repository at this point
Commits on Jan 31, 2025
Adjust some rule names for clarity
Show description for 3e57a06
ehuss
committed
3e57a06
View commit details
Copy full SHA for 3e57a06
View code at this point
Browse repository at this point
Adjust rules next to headers
ehuss
committed
853ccb4
View commit details
Copy full SHA for 853ccb4
View code at this point
Browse repository at this point
Commits on Jan 30, 2025
Fix mdbook-spec identifiers to be unique
chorman0773
authored and
ehuss
committed
eed74c2
View commit details
Copy full SHA for eed74c2
View code at this point
Browse repository at this point
Remove double-spaces and trailing whitespace
chorman0773
authored and
ehuss
committed
a7b725b
View commit details
Copy full SHA for a7b725b
View code at this point
Browse repository at this point
Add identifier syntax to loop-expr and match-expr
chorman0773
authored and
ehuss
committed
2e00df4
View commit details
Copy full SHA for 2e00df4
View code at this point
Browse repository at this point
Commits on Jul 16, 2024
Add '_ to LIFETIME_OR_LABEL
ehuss
committed
9fd0533
View commit details
Copy full SHA for 9fd0533
View code at this point
Browse repository at this point
Commits on Mar 20, 2023
Improve labeled blocks documentation
Show description for aa9c70b
est31
committed
aa9c70b
View commit details
Copy full SHA for aa9c70b
View code at this point
Browse repository at this point
Commits on Sep 27, 2022
Alpha-rename "Loop expressions" chapter to "Loops and other breakable expressions" instead.
pnkfelix
committed
575d859
View commit details
Copy full SHA for 575d859
View code at this point
Browse repository at this point
Commits on Sep 14, 2022
Document `label_break_value` in the reference
jyn514
committed
bf51d22
View commit details
Copy full SHA for bf51d22
View code at this point
Browse repository at this point
Commits on Aug 14, 2022
Revert "Add let_chains references"
Show description for db6fc4e
compiler-errors
committed
db6fc4e
View commit details
Copy full SHA for db6fc4e
View code at this point
Browse repository at this point
Revert "Unify while/while let and if/if let expressions."
Show description for 4aff5be
compiler-errors
committed
4aff5be
View commit details
Copy full SHA for 4aff5be
View code at this point
Browse repository at this point
Commits on Jul 25, 2022
Unify while/while let and if/if let expressions.
Show description for b83d8e6
ehuss
committed
b83d8e6
View commit details
Copy full SHA for b83d8e6
View code at this point
Browse repository at this point
Add let_chains references
c410-f3r
authored and
ehuss
committed
4662059
View commit details
Copy full SHA for 4662059
View code at this point
Browse repository at this point
Commits on Jul 26, 2021
improve for loop description (copied from 'while let' equivalent)
kklibo
authored and
ehuss
committed
91b36e4
View commit details
Copy full SHA for 91b36e4
View code at this point
Browse repository at this point
Commits on Jun 21, 2021
Consolidate scrutinee expression grammar into match-expr.md, with links in if-expr and loop-expr
AloeareV
committed
ac4ff0f
View commit details
Copy full SHA for ac4ff0f
View code at this point
Browse repository at this point
Fixed slight syntax inconsistancies
AloeareV
committed
0e7115d
View commit details
Copy full SHA for 0e7115d
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.