Skip to content

when suggesting to remove a crate, we leave a blank line #51176

Open
@nikomatsakis

Description

@nikomatsakis

As of #51015, the rustfix result for:

#![warn(unused_crates)]
extern crate foo;
fn main() { }

is

#![warn(unused_crates)]

fn main() { }

but not

#![warn(unused_crates)]
fn main() { }

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-help-wantedCall for participation: Help is requested to fix this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-epochWorking group: Epoch (2018) management

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions