about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-22 16:13:29 +0100
committerGitHub <noreply@github.com>2024-01-22 16:13:29 +0100
commit2346647daf532de8dcf7e002375c2ff65cb9046e (patch)
treead0285b7f77ca3f9df9a51106ffbf07d806166e9 /compiler/rustc_pattern_analysis/src
parent9e896f42bd34ece60eec7c460bd9169cca98308a (diff)
parent1c77f8738fdb33412bbd6ae83c16fe9cc6356815 (diff)
downloadrust-2346647daf532de8dcf7e002375c2ff65cb9046e.tar.gz
rust-2346647daf532de8dcf7e002375c2ff65cb9046e.zip
Rollup merge of #120152 - rowan-sl:help-message-for-range-pattern, r=oli-obk
add help message for `exclusive_range_pattern` error

Fixes #120047

this error
```
error[E0658]: exclusive range pattern syntax is experimental
 --> src/lib.rs:3:9
  |
3 |         0..42 => {},
  |         ^^^^^
  |
  = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
  = help: use an inclusive range pattern, like N..=M
  ```
now includes a help message

Not sure of proper procedure here but this seemed like a good help message (used the one suggested in the original issue), if you have a idea for one that is better or something I missed please comment!
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions