about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-11-23 05:53:08 +0000
committerbors <bors@rust-lang.org>2017-11-23 05:53:08 +0000
commita6031a2ccf803037247da91732973e9e5a5a0c31 (patch)
tree5a2bf5a0a186c3d4c826e4f0b9f6c9f06502d7ac /src/libstd/sys/unix/stack_overflow.rs
parent10ef344d8c56563570a7647aa81e1586164f812b (diff)
parentb450aff18689ea0d0695b4f5a59bb360ae549f87 (diff)
downloadrust-a6031a2ccf803037247da91732973e9e5a5a0c31.tar.gz
rust-a6031a2ccf803037247da91732973e9e5a5a0c31.zip
Auto merge of #46024 - estebank:no-variant, r=petrochenkov
Use the proper term when using non-existing variant

When using a non-existing variant, function or associated item, refer to
the proper term, instead of defaulting to "associated item" in
diagnostics.

Fix #28972.

```
error[E0599]: no variant named `Quux` found for type `Foo` in the current scope
 --> file.rs:7:9
  |
7 |         Foo::Quux(..) =>(),
  |         ^^^^^^^^^^^^^
```
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions