diff options
| author | bors <bors@rust-lang.org> | 2017-10-28 03:02:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-28 03:02:17 +0000 |
| commit | c1a0b6d9eb888ded9a7204db0d67d62b1cdc9944 (patch) | |
| tree | 0e5481df011f16a6a64164344cdd089227f6dab6 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | d9f124965551e8fb9403def6a715e13dfd5e9c95 (diff) | |
| parent | ae6a9e6fd2a7138d04c03e2a30458d7ebcc68627 (diff) | |
| download | rust-c1a0b6d9eb888ded9a7204db0d67d62b1cdc9944.tar.gz rust-c1a0b6d9eb888ded9a7204db0d67d62b1cdc9944.zip | |
Auto merge of #45503 - thombles:tk/i44339-v5, r=petrochenkov
Improve diagnostics when list of tokens has incorrect separators
Make `parse_seq_to_before_tokens` more resilient to error conditions. Where possible it is better if it can consume up to the final bracket before returning. This change improves the diagnostics in a couple of situations:
```
struct S(pub () ()); // omitted separator
use std::{foo. bar}; // used a similar but wrong separator
```
Fixes #44339
r? @petrochenkov
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
