Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Spark
Build and deploy intelligent apps
GitHub Models
Manage and compare prompts
MCP Registry
New
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
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
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
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
is:issue state:open label:only-with-option
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
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
Public
Notifications
You must be signed in to change notification settings
Fork
975
Star
6.7k
Code
Issues
693
Pull requests
207
Discussions
Actions
Projects
0
Wiki
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security
Insights
Issues
Search Issues
is
:
issue
state
:
open
label
:
only-with-option
is:issue state:open label:only-with-option
Search
Labels
Milestones
New issue
Search results
Open
Closed
<code>imports_granularity=One</code> removes macro imports that share names with modules
C-bug
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
I-changes-semantics
Issue: changes observable semantics of the code (even if code still compiles!)
Issue: changes observable semantics of the code (even if code still compiles!)
I-invalid-code
Issue: formatting causes compile-pass code to compile-fail
Issue: formatting causes compile-pass code to compile-fail
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
S-has-mcve
Status: a Minimal Complete and Verifiable Example has been found for this issue
Status: a Minimal Complete and Verifiable Example has been found for this issue
UO-imports_granularity
Unstable option: imports_granularity
Unstable option: imports_granularity
Status: Open.
#6717
In rust-lang/rustfmt;
·
lars-schumann
opened
on Oct 31, 2025
Extra blank line inserted before code blocks in doc comments
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
S-fixed-needs-subtree-sync
Status: fixed, but needs a subtree sync
Status: fixed, but needs a subtree sync
UO-wrap_comments
Unstable option: wrap_comments
Unstable option: wrap_comments
Status: Open.
#6695
In rust-lang/rustfmt;
·
shulaoda
opened
on Oct 10, 2025
bug: normalize_comments eats single line comments in rust examples
A-comments
Area: comments
Area: comments
C-bug
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
I-unexpectedly-removes-code
Issue: unexpectedly removes code that we should not be removing
Issue: unexpectedly removes code that we should not be removing
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
S-has-mcve
Status: a Minimal Complete and Verifiable Example has been found for this issue
Status: a Minimal Complete and Verifiable Example has been found for this issue
UO-normalize_comments
Unstable option: normalize_comments
Unstable option: normalize_comments
Status: Open.
#6631
In rust-lang/rustfmt;
·
joshka
opened
on Aug 13, 2025
<code>format_code_in_doc_comments</code> should not touch non-rust code blocks
A-comments
Area: comments
Area: comments
I-trailing-whitespace
Issue: internal error; left behind trailing whitespace
Issue: internal error; left behind trailing whitespace
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
Status: Open.
#6609
In rust-lang/rustfmt;
·
joshtriplett
opened
on Jul 19, 2025
[bug] wrap_comments
A-comments
Area: comments
Area: comments
C-bug
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
I-ICE
Issue: Internal Compiler Error (ICE) reported by rustfmt
Issue: Internal Compiler Error (ICE) reported by rustfmt
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
UO-wrap_comments
Unstable option: wrap_comments
Unstable option: wrap_comments
Status: Open.
#6586
In rust-lang/rustfmt;
·
yuanair
opened
on Jun 24, 2025
<code>format_strings</code> can cause code to no longer be reformatted
A-strings
Area: string literals
Area: string literals
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
Status: Open.
#6576
In rust-lang/rustfmt;
·
VorpalBlade
opened
on Jun 10, 2025
wrap_comments=true can add a space to already properly formatted comments
A-comments
Area: comments
Area: comments
I-trailing-whitespace
Issue: internal error; left behind trailing whitespace
Issue: internal error; left behind trailing whitespace
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
S-duplicate
Status: duplicate of another issue or PR
Status: duplicate of another issue or PR
Status: Open.
#6569
In rust-lang/rustfmt;
·
ahl
opened
on May 24, 2025
Rustfmt can generate invalid code when using <code>space_after_colon=false</code>
C-bug
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
Status: Open.
Bug
#6470
In rust-lang/rustfmt;
·
lever1209
opened
on Feb 11, 2025
<code>format_code_in_doc_comments</code> not applied when containing macros which takes an abstract stream of tokens
A-comments
Area: comments
Area: comments
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
Status: Open.
#6454
In rust-lang/rustfmt;
·
sorairolake
opened
on Jan 25, 2025
Panic in SourceAnnotation when using <code>hard_tabs = true</code>
C-bug
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
Status: Open.
Bug
#6442
In rust-lang/rustfmt;
·
lbfalvy
opened
on Jan 12, 2025
rustfmt misformat when comment blocks are used
A-comments
Area: comments
Area: comments
C-bug
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
Status: Open.
Bug
#6426
In rust-lang/rustfmt;
·
knoxfighter
opened
on Dec 24, 2024
rustfmt breaks a <code>/* ... */</code> comment into <code>/* ... //</code>, with no terminating <code>*/</code>
A-comments
Area: comments
Area: comments
C-bug
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Category: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
only-with-option
Requires a non-default option value to reproduce
Requires a non-default option value to reproduce
Status: Open.
Bug
#6339
In rust-lang/rustfmt;
·
ssbr
opened
on Sep 20, 2024
You can’t perform that action at this time.