Skip to content

Wrong part colored in diagnostic suggestions after tabs #87972

Closed
@m-ou-se

Description

@m-ou-se
trait T {
	const A: &u8;
}

(The second line starts with a tab, not with spaces!)

This results in:
Screenshot 2021-08-12 at 16 48 04

It suggests to add a 'a after the &, but the green color is not applied to the 'a part, but instead to A: &, shifted a bit to the left.

cc @estebank

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`C-bugCategory: This is a bug.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