diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-06-22 07:37:56 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-22 07:37:56 +0900 |
| commit | 4495ce75d975136173dbd4c139f00d1f508a6994 (patch) | |
| tree | 879bd98b662303415d3f267432ae4e92f6fe4e12 /library/std/src/sys/unix/thread.rs | |
| parent | fdb1daa00cf73b4f9793bfdc0355d084c7d67b0c (diff) | |
| parent | b8a7bfb9f15b26b81f071d8eb1a039489ffce446 (diff) | |
| download | rust-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
