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 }}
rust-lang
rustfmt
Repository navigation
Code
Issues
726
(726)
Pull requests
223
(223)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Stricter test directives
- #7165
#7165
Merged
ytmimi
merged 7 commits into
rust-lang:main
rust-lang/rustfmt:main
from
ytmimi:stricter_test_directive
ytmimi/rustfmt:stricter_test_directive
Copy head branch name to clipboard
Oct 14, 2026
Conversation
Commits
7
(7)
Checks
Files changed
Merged
Stricter test directives
#7165
ytmimi
merged 7 commits into
rust-lang:main
rust-lang/rustfmt:main
from
ytmimi:stricter_test_directive
ytmimi/rustfmt:stricter_test_directive
Copy head branch name to clipboard
Commits
Commits on Oct 13, 2026
test: stricter test directives
Show description for bdf08d2
ytmimi
committed
bdf08d2
View commit details
Copy full SHA for bdf08d2
Browse repository at this point
test: read_significant_comments regex now matches `//@rustfmt-{option}: {value}`
Show description for f7781b8
ytmimi
committed
f7781b8
View commit details
Copy full SHA for f7781b8
Browse repository at this point
test: Add more validation for `//@ rustfmt-` test directives
Show description for 9e5c98c
ytmimi
committed
9e5c98c
View commit details
Copy full SHA for 9e5c98c
Browse repository at this point
test: fix test cases after adding test directive validation
ytmimi
committed
5506b3c
View commit details
Copy full SHA for 5506b3c
Browse repository at this point
test: don't silently let old test directive syntax slip through
Show description for cf6ce91
ytmimi
committed
cf6ce91
View commit details
Copy full SHA for cf6ce91
Browse repository at this point
Commits on Oct 14, 2026
test: relax old pattern to accept `//rustfmt-*` forms
Show description for 23ee494
jieyouxu
committed
23ee494
View commit details
Copy full SHA for 23ee494
Browse repository at this point
test: migrate `tests/target/issue_4350.rs` to new syntax
jieyouxu
committed
53c6aa5
View commit details
Copy full SHA for 53c6aa5
Browse repository at this point
You can’t perform that action at this time.