about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-slice-array.js
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-04-15 22:34:46 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-06-18 06:41:40 +0200
commit15fc993775703c2151d4aa62bb484840aa560202 (patch)
tree4d0c59c2b4442f182da5b8b6d3e4c72f1138a948 /tests/rustdoc-js-std/parser-slice-array.js
parentd66e4f6a662346c17fd9461126704f096c2b6a3d (diff)
downloadrust-15fc993775703c2151d4aa62bb484840aa560202.tar.gz
rust-15fc993775703c2151d4aa62bb484840aa560202.zip
Refactor `range_plus_one` and `range_minus_one` lints
Those lints share the detection logic structure, but differed, probably
because of an oversight, in lint emission: only one of them would take
care of emitting parentheses around the suggestion if required.

Factor the code into one function which checks for the right condition
and emits the lint in an identical way.
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions