about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/module.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-10 08:13:22 +0200
committerGitHub <noreply@github.com>2019-08-10 08:13:22 +0200
commit9e613c74be901b86860aa2f6987228e6328e7a18 (patch)
tree0ef9fcd21d37b54db2b07b855e8dcba28880616e /src/libsyntax/parse/parser/module.rs
parent5ed195baaa7d8753053c13a8bb932385becf64a6 (diff)
parent75c5ad2e827a077c3738dee11d9e0dc99962f384 (diff)
downloadrust-9e613c74be901b86860aa2f6987228e6328e7a18.tar.gz
rust-9e613c74be901b86860aa2f6987228e6328e7a18.zip
Rollup merge of #63399 - estebank:vec-in-pat, r=Centril
More explicit diagnostic when using a `vec![]` in a pattern

```
error: unexpected `(` after qualified path
  --> $DIR/vec-macro-in-pattern.rs:3:14
   |
LL |         Some(vec![x]) => (),
   |              ^^^^^^^
   |              |
   |              unexpected `(` after qualified path
   |              in this macro invocation
   |              use a slice pattern here instead
   |
   = help: for more information, see https://doc.rust-lang.org/edition-guide/rust-2018/slice-patterns.html
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
```

Fix #61933.
Diffstat (limited to 'src/libsyntax/parse/parser/module.rs')
0 files changed, 0 insertions, 0 deletions