rust/compiler/rustc_parse
Matthias Krüger c0005f1560
Rollup merge of #133151 - tyrone-wu:trim-fn-ptr-whitespace, r=compiler-errors
Trim extra whitespace in fn ptr suggestion span

Trim extra whitespace when suggesting removal of invalid qualifiers when parsing function pointer type.

Fixes: #133083

---

I made a comment about the format of the diagnostic error message in https://github.com/rust-lang/rust/issues/133083#issuecomment-2480047875. I think the `.label` may be a little redundant if the diagnostic only highlights the bad qualifier instead of the entire `TyKind::BareFn` span. If it makes sense, I can include it in this PR.
2025-01-28 14:23:20 +01:00
..
src Rollup merge of #133151 - tyrone-wu:trim-fn-ptr-whitespace, r=compiler-errors 2025-01-28 14:23:20 +01:00
Cargo.toml Update unicode-width to 0.2.0 2024-10-12 21:57:50 +00:00
messages.ftl Introduce default_field_values feature 2024-12-09 21:55:01 +00:00