rust/compiler/rustc_parse/src
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
..
lexer Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
parser Rollup merge of #133151 - tyrone-wu:trim-fn-ptr-whitespace, r=compiler-errors 2025-01-28 14:23:20 +01:00
errors.rs Rollup merge of #133151 - tyrone-wu:trim-fn-ptr-whitespace, r=compiler-errors 2025-01-28 14:23:20 +01:00
lib.rs Point at invalid utf-8 span on user's source code 2025-01-22 00:52:27 +00:00
validate_attr.rs Properly record metavar spans for other expansions other than TT 2024-12-21 20:37:27 +00:00