Skip to content

some kind of #[cfg] story for rustfix #51208

Closed
@nikomatsakis

Description

@nikomatsakis

I think we need to be able to handle multiple #[cfg] settings for rustfix — at minimum, using #[cfg(test)] code is super common. We obviously can't handle all cfg's at once, but perhaps we should include some way to run rustfix more than once, with distinct cfg settings? (And the default could run for both no cfg and #[cfg(test)]?)

cc @alexcrichton @killercup @zackmdavis

Metadata

Metadata

Assignees

Labels

A-edition-2018Area: The 2018 editionA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.F-rust_2018_preview`#![feature(rust_2018_preview)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.WG-epochWorking group: Epoch (2018) management

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions