about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-07-05 08:25:47 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-07-09 09:02:49 +1000
commit32c9ffb9ccb1dae15d473c8c4462eb80b4d35fc7 (patch)
treec7837d6da26f1dc5d6b177ffec4746ef6bbe1884 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parent052495d0017e2b18b781bcf0469a048e5051f5c0 (diff)
downloadrust-32c9ffb9ccb1dae15d473c8c4462eb80b4d35fc7.tar.gz
rust-32c9ffb9ccb1dae15d473c8c4462eb80b4d35fc7.zip
Clarify args terminology.
The deriving code has inconsistent terminology to describe args.

In some places it distinguishes between:
- the `&self` arg (if present), versus
- all other args.

In other places it distinguishes between:
- the `&self` arg (if present) and any other arguments with the same
  type (in practice there is at most one, e.g. in `PartialEq::eq`),
  versus
- all other args.

The terms "self_args" and "nonself_args" are sometimes used for the
former distinction, and sometimes for the latter. "args" is also
sometimes used for "all other args".

This commit makes the code consistently uses "self_args"/"nonself_args"
for the former and "selflike_args"/"nonselflike_args" for the latter.
This change makes the code easier to read.

The commit also adds a panic on an impossible path (the `Self_` case) in
`extract_arg_details`.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions