about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-06-12 20:03:36 +0200
committerGitHub <noreply@github.com>2025-06-12 20:03:36 +0200
commit94e8a2448f8aa9e9715fef0f7253a1e5a0a2c423 (patch)
tree967e93ecd08fcf16facbc103284edd4251fba430 /compiler/rustc_codegen_gcc/src/errors.rs
parent25914399abdeed9d53e260e63d4f129d7df8b475 (diff)
parentba1c650a2cf3f72cd7c1b55ccf191e56bff3f47d (diff)
downloadrust-94e8a2448f8aa9e9715fef0f7253a1e5a0a2c423.tar.gz
rust-94e8a2448f8aa9e9715fef0f7253a1e5a0a2c423.zip
Rollup merge of #141474 - mejrs:diagnostic_mode, r=compiler-errors
Add `ParseMode::Diagnostic` and fix multiline spans in diagnostic attribute lints

Best viewed commit by commit.

The first commit is a test, the commits following that are small refactors to `rustc_parse_format`. Originally I wanted to do a much larger change (doing these smaller fixes first would have that made easier to review), but ended up doing something else instead.

An observable change from this is that the diagnostic attribute no longer tries to parse align/fill/width/etc parameters. For an example (see also test changes), a string like `"{Self:!}"` no longer says "missing '}'", instead it says that format parameters are not allowed. It'll now also format the string as if the user wrote just `"{Self}"`
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions