Skip to content

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

@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 lintsA-edition-2018Area: The 2018 editionA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`D-papercutDiagnostics: An error or lint that needs small tweaks.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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions