about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-11-29 18:11:57 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-11-29 18:11:57 +0000
commit4be07075b3651a69f05b9b9f16312fe3a8cf21fd (patch)
tree9845fbdaeb599b2b08807201c7dc54101dc57ccf /compiler/rustc_llvm/llvm-wrapper
parentabe34e9ab14c0a194152b4f9acc3dcbb000f3e98 (diff)
downloadrust-4be07075b3651a69f05b9b9f16312fe3a8cf21fd.tar.gz
rust-4be07075b3651a69f05b9b9f16312fe3a8cf21fd.zip
Tweak message on ADT with private fields building
When trying to create an inaccessible ADT due to private fields, handle
the case when no fields were passed.

```
error: cannot construct `Foo` with struct literal syntax due to private fields
  --> $DIR/issue-76077.rs:8:5
   |
LL |     foo::Foo {};
   |     ^^^^^^^^
   |
   = note: private field `you_cant_use_this_field` that was not provided
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions