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
Discover and 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
state:open label:A-cfg
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
/
rust
Public
Notifications
You must be signed in to change notification settings
Fork
14k
Star
108k
Code
Issues
5k+
Pull requests
911
Actions
Projects
9
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Issues
Search Issues
state
:
open
label
:
A-cfg
state:open label:A-cfg
Search
Labels
Milestones
New issue
Search results
Open
Closed
<code>cfg_accessible</code> is not processed before derive macros
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-proc-macros
Area: Procedural macros
Area: Procedural macros
C-bug
Category: This is a bug.
Category: This is a bug.
F-cfg_accessible
`#![feature(cfg_accessible)]`
`#![feature(cfg_accessible)]`
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Relevant to the compiler team, which will review and decide on the PR/issue.
Status: Open.
#148513
In rust-lang/rust;
·
theemathas
opened
on Nov 5, 2025
Tracking issue for release notes of #146961: Allow passing <code>expr</code> metavariable to <code>cfg</code>
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
Area: Attributes (`#[…]`, `#![…]`)
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
This issue may need triage. Remove it if it has been sufficiently triaged.
relnotes
Marks issues that should be documented in the release notes of the next release.
Marks issues that should be documented in the release notes of the next release.
relnotes-tracking-issue
Marks issues tracking what text to put in release notes.
Marks issues tracking what text to put in release notes.
T-lang
Relevant to the language team
Relevant to the language team
Status: Open.
#147852
In rust-lang/rust;
·
rustbot
opened
on Oct 18, 2025
Add <code>cargo_cfg_target_family_multivalued</code> FCW
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
Area: Lints (warnings about flaws in source code) such as unused_mut.
I-lang-nominated
Nominated for discussion during a lang team meeting.
Nominated for discussion during a lang team meeting.
I-lang-radar
Items that are on lang's radar and will need eventual work or consideration.
Items that are on lang's radar and will need eventual work or consideration.
P-lang-drag-2
Lang team prioritization drag level 2.https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang.
Lang team prioritization drag level 2.https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang.
S-waiting-on-t-lang
Status: Awaiting decision from T-lang
Status: Awaiting decision from T-lang
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team
Relevant to the language team
Status: Open (in progress).
rust-lang/rust
number 147545
#147545
In rust-lang/rust;
·
madsmtm
opened
on Oct 10, 2025
rustdoc features doctests conditional on cfg or target feature but that's not RFC'ed, not tested, not really documented and somewhat broken
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
A-doctests
Area: Documentation tests, run by rustdoc
Area: Documentation tests, run by rustdoc
A-target-feature
Area: Enabling/disabling target features like AVX, Neon, etc.
Area: Enabling/disabling target features like AVX, Neon, etc.
C-bug
Category: This is a bug.
Category: This is a bug.
F-doc_cfg
`#![feature(doc_cfg)]`
`#![feature(doc_cfg)]`
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Status: Open.
#147033
In rust-lang/rust;
·
fmease
opened
on Sep 25, 2025
<code>cfg!($crate)</code>, <code>cfg!(crate)</code>, <code>cfg!(self)</code>, <code>cfg!(Self)</code>, and <code>cfg!(super)</code> should not be accepted
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team
Relevant to the language team
Status: Open.
#146968
In rust-lang/rust;
·
theemathas
opened
on Sep 24, 2025
Allow passing <code>expr</code> metavariable to <code>cfg</code>
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
Area: Attributes (`#[…]`, `#![…]`)
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
disposition-merge
This issue / PR is in PFCP or FCP with a disposition to merge it.
This issue / PR is in PFCP or FCP with a disposition to merge it.
finished-final-comment-period
The final comment period is finished for this PR / Issue.
The final comment period is finished for this PR / Issue.
I-lang-radar
Items that are on lang's radar and will need eventual work or consideration.
Items that are on lang's radar and will need eventual work or consideration.
needs-fcp
This change is insta-stable, or significant enough to need a team FCP to proceed.
This change is insta-stable, or significant enough to need a team FCP to proceed.
S-waiting-on-t-lang
Status: Awaiting decision from T-lang
Status: Awaiting decision from T-lang
T-lang
Relevant to the language team
Relevant to the language team
to-announce
Announce this issue on triage meeting
Announce this issue on triage meeting
Status: Open (in progress).
rust-lang/rust
number 146961
#146961
In rust-lang/rust;
·
Jules-Bertholet
opened
on Sep 24, 2025
rustdoc: Feature-dependent trait impls don't have the feature dependency called out.
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
C-bug
Category: This is a bug.
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Status: Open.
#145732
In rust-lang/rust;
·
danderson
opened
on Aug 21, 2025
<code>doc_cfg</code> / <code>doc_auto_cfg</code> thinks <code>any(true)</code> and <code>any(all())</code> are available nowhere
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
C-bug
Category: This is a bug.
Category: This is a bug.
F-doc_auto_cfg
`#![feature(doc_auto_cfg)]`
`#![feature(doc_auto_cfg)]`
F-doc_cfg
`#![feature(doc_cfg)]`
`#![feature(doc_cfg)]`
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Status: Open.
#145075
In rust-lang/rust;
·
SabrinaJewson
opened
on Aug 8, 2025
[rustdoc] Add new (cfg) feature search filtering/tab
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
A-rustdoc-search
Area: Rustdoc's search feature
Area: Rustdoc's search feature
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Relevant to the rustdoc team, which will review and decide on the PR/issue.
T-rustdoc-frontend
Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Status: Open.
#144263
In rust-lang/rust;
·
ralfbiedert
opened
on Jul 21, 2025
some "Unix" targets don't support most Unix idioms
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
C-bug
Category: This is a bug.
Category: This is a bug.
O-unix
Operating system: Unix-like
Operating system: Unix-like
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Relevant to the compiler team, which will review and decide on the PR/issue.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Relevant to the library team, which will review and decide on the PR/issue.
Status: Open.
#141838
In rust-lang/rust;
·
workingjubilee
opened
on May 31, 2025
cfg resolve diagnostic doesn't show up for derive macro that matches trait name
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
A-diagnostics
Area: Messages for errors, warnings, and lints
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
Area: Name/path resolution done by `rustc_resolve` specifically
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
Diagnostics: Confusing error or lint; hard to understand for new users.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Relevant to the compiler team, which will review and decide on the PR/issue.
Status: Open.
#134448
In rust-lang/rust;
·
joshka
opened
on Dec 18, 2024
rustdoc: support #![cfg(feature)] that disables doc tests
A-cfg
Area: `cfg` conditional compilation
Area: `cfg` conditional compilation
A-doctests
Area: Documentation tests, run by rustdoc
Area: Documentation tests, run by rustdoc
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Status: Open.
#133886
In rust-lang/rust;
·
kornelski
opened
on Dec 5, 2024
You can’t perform that action at this time.