about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-01 09:55:29 +0200
committerGitHub <noreply@github.com>2019-10-01 09:55:29 +0200
commitf45de9a69048a5900f5de9c1816f9464f00782b3 (patch)
treea29037b94795f346af12c993f18a63c6a4bb9235 /src/test/debuginfo/enum-thinlto.rs
parent3bd34e04e3cea94603969be0e88222ef7dc50913 (diff)
parent3eba6c18d435fbbdbb46ebd1b2f9bd565daa190c (diff)
downloadrust-f45de9a69048a5900f5de9c1816f9464f00782b3.tar.gz
rust-f45de9a69048a5900f5de9c1816f9464f00782b3.zip
Rollup merge of #64887 - Centril:recover-trailing-vert, r=estebank
syntax: recover trailing `|` in or-patterns

Fixes https://github.com/rust-lang/rust/issues/64879.

For example (this also shows that we are sensitive to the typo `||`):

```
error: a trailing `|` is not allowed in an or-pattern
  --> $DIR/remove-leading-vert.rs:33:11
   |
LL |         A || => {}
   |         - ^^ help: remove the `||`
   |         |
   |         while parsing this or-pattern starting here
   |
   = note: alternatives in or-patterns are separated with `|`, not `||`
```

r? @estebank
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions