about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-28 05:38:00 +0200
committerGitHub <noreply@github.com>2019-09-28 05:38:00 +0200
commit017944c5a7236bcc3ed553d49dd1f43e73733966 (patch)
treeab96a1cde1bbd285fa578cdd476bc4e30fec5fad /src/libstd/sys/unix/stack_overflow.rs
parentf1a5bc57aad3c74ca0e0db15bbedbf87eeb4b693 (diff)
parentaa03f1f5e3791f1ff07d414ba003f395ad6538d8 (diff)
downloadrust-017944c5a7236bcc3ed553d49dd1f43e73733966.tar.gz
rust-017944c5a7236bcc3ed553d49dd1f43e73733966.zip
Rollup merge of #64859 - Centril:const-def-here-new-var, r=estebank
check_match: improve diagnostics for `let A = 2;` with `const A: i32 = 3`

For example:

```
error[E0005]: refutable pattern in local binding: `std::i32::MIN..=1i32` and `3i32..=std::i32::MAX` not covered
  --> $DIR/const-pat-non-exaustive-let-new-var.rs:2:9
   |
LL |     let A = 3;
   |         ^
   |         |
   |         interpreted as a constant pattern, not a new variable
   |         help: introduce a variable instead: `a_var`
...
LL |     const A: i32 = 2;
   |     ----------------- constant defined here
```

r? @estebank
cc @matthiaskrgr @rpjohnst
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions