about summary refs log tree commit diff
path: root/tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-24 07:46:09 +0000
committerbors <bors@rust-lang.org>2024-04-24 07:46:09 +0000
commit5a315da949c157b96070c0c57fbab04087c1a801 (patch)
tree529cf8c5bce5de306e45639aa066c2f65f213770 /tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
parentafa2a898a4859f406afb5d49f6f69451e37bcfd2 (diff)
parent9e212e05230160d1001c918a74e02b4227b9ca74 (diff)
downloadrust-5a315da949c157b96070c0c57fbab04087c1a801.tar.gz
rust-5a315da949c157b96070c0c57fbab04087c1a801.zip
Auto merge of #17131 - bzy-debug:issue-17107, r=lnicola
different error code of "no such field" error based on variant type

fix #17107

Pass variant information down to diagnostic, so that we can get different error code based on variant type.

After fix:

- structure

  <img width="868" alt="Screenshot 2024-04-23 at 21 03 27" src="https://github.com/rust-lang/rust-analyzer/assets/71200607/c2d1e389-5b62-4e9a-a133-9ae41f80615f">

- enum's structure variant

  <img width="937" alt="Screenshot 2024-04-23 at 21 04 41" src="https://github.com/rust-lang/rust-analyzer/assets/71200607/ad8558a7-d809-4968-b290-2f6bbb8d6b8c">
Diffstat (limited to 'tests/ui/patchable-function-entry/patchable-function-entry-flags.rs')
0 files changed, 0 insertions, 0 deletions