about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-05-08 01:06:22 +0200
committerGitHub <noreply@github.com>2021-05-08 01:06:22 +0200
commiteb36bc666a4e1e8b6f54f50f275ae10a4c22c77f (patch)
treec5f0802f19737d8c278cee99cf8ba8be804bb26c /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff
parent770792ff8d1ec542e78e77876ac936f43ffb8e05 (diff)
parent6717f81b96aca75f5b811104ae75620274dad35d (diff)
downloadrust-eb36bc666a4e1e8b6f54f50f275ae10a4c22c77f.tar.gz
rust-eb36bc666a4e1e8b6f54f50f275ae10a4c22c77f.zip
Rollup merge of #76808 - LeSeulArtichaut:diagnose-functions-struct, r=jackh726
Improve diagnostics for functions in `struct` definitions

Tries to implement #76421.
This is probably going to need unit tests, but I wanted to hear from review all the cases tests should cover.

I'd like to follow up with the "mechanically applicable suggestion here that adds an impl block" step, but I'd need guidance. My idea for now would be to try to parse a function, and if that succeeds, create a dummy `ast::Item` impl block to then format it using `pprust`. Would that be a viable approach? Is there a better alternative?

r? `@matklad` cc `@estebank`
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions