]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_parse/src/parser/ty.rs
Rollup merge of #107493 - clubby789:range-fat-arrow-followup, r=estebank
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 2 Feb 2023 16:14:05 +0000 (17:14 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Feb 2023 16:14:05 +0000 (17:14 +0100)
commite9c4e291c400314d331b977c80dcf456cd6f7977
tree9a36177a9ab41f6d7b17da8a56af0aac5374152e
parent8f47954742364b452716daff72bba976e18288e5
parent4ab75de934935f59f243ab64a641e28aa89e6fcd
Rollup merge of #107493 - clubby789:range-fat-arrow-followup, r=estebank

Improve diagnostic for missing space in range pattern

Improves the diagnostic in #107425 by turning it into a note explaining the parsing issue.

r? `@compiler-errors`
compiler/rustc_error_messages/locales/en-US/parse.ftl
compiler/rustc_parse/src/errors.rs
compiler/rustc_parse/src/parser/pat.rs