Skip to content

x fmt tries to format non-rust files #106261

Closed
@Noratrieb

Description

@Noratrieb
formatting modified file compiler/rustc_error_messages/locales/en-US/borrowck.ftl
error: unknown start of token: `
 --> /home/nilsh/projects/rust/compiler/rustc_error_messages/locales/en-US/borrowck.ftl:2:33
  |
2 |     cannot move a value of type `{$ty}`
  |                                 ^
  |
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
  |
2 |     cannot move a value of type '{$ty}`
  |                                 ~

error: unknown start of token: `

When there was a change in a .ftl or other non-rust file, bootstrap tries to format it, which makes rustfmt very sad.

cc @albertlarsan68 and @jyn514 who broke this in #105702

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-highHigh priorityT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)regression-untriagedUntriaged performance or correctness regression.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions