about summary refs log tree commit diff
path: root/library/std/src/sys/unix/thread.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-06-22 07:37:56 +0900
committerGitHub <noreply@github.com>2021-06-22 07:37:56 +0900
commit4495ce75d975136173dbd4c139f00d1f508a6994 (patch)
tree879bd98b662303415d3f267432ae4e92f6fe4e12 /library/std/src/sys/unix/thread.rs
parentfdb1daa00cf73b4f9793bfdc0355d084c7d67b0c (diff)
parentb8a7bfb9f15b26b81f071d8eb1a039489ffce446 (diff)
downloadrust-4495ce75d975136173dbd4c139f00d1f508a6994.tar.gz
rust-4495ce75d975136173dbd4c139f00d1f508a6994.zip
Rollup merge of #86493 - Smittyvb:ctor-typeck-error, r=davidtwco
Say "this enum variant takes"/"this struct takes" instead of "this function takes"

This makes error messages for functions with incorrect argument counts adapt if they refer to a struct or enum variant:
```
error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
  --> $DIR/struct-enum-wrong-args.rs:7:13
   |
LL |     let _ = Ok();
   |             ^^-- supplied 0 arguments
   |             |
   |             expected 1 argument

error[E0061]: this struct takes 1 argument but 0 arguments were supplied
  --> $DIR/struct-enum-wrong-args.rs:8:13
   |
LL |     let _ = Wrapper();
   |             ^^^^^^^-- supplied 0 arguments
   |             |
   |             expected 1 argument
```

Fixes #86481.
Diffstat (limited to 'library/std/src/sys/unix/thread.rs')
0 files changed, 0 insertions, 0 deletions