rust/compiler/rustc_trait_selection/src
Matthias Krüger 94e8a2448f
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}"`
2025-06-12 20:03:36 +02:00
..
error_reporting Rollup merge of #141474 - mejrs:diagnostic_mode, r=compiler-errors 2025-06-12 20:03:36 +02:00
errors Move eager translation to a method on Diag 2025-04-16 21:38:59 -04:00
solve Apply nested goals certainty to InspectGoals for normalizes-to 2025-06-09 17:02:09 +00:00
traits Rollup merge of #142040 - jswrenn:transmute-ty-region-generic, r=compiler-errors 2025-06-12 03:14:49 +02:00
errors.rs Make E0621 missing lifetime suggestion verbose 2025-06-09 19:55:00 +00:00
infer.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
lib.rs Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
opaque_types.rs Rename unpack to kind 2025-05-27 11:14:45 +00:00
regions.rs Only use implied bounds hack if bevy, and use deeply normalize in implied bounds hack 2025-03-04 18:18:48 +00:00
solve.rs confusings 2025-04-29 18:55:21 +01:00