about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-11 14:58:00 +0000
committerbors <bors@rust-lang.org>2023-11-11 14:58:00 +0000
commitd487579efd3c6b7766f820bbe4b6be0f6d420dad (patch)
tree068c94f84adb74e8573606b64e1b62cbb39e8467 /tests/rustdoc-js-std/parser-errors.js
parent4a0c36d648b8442698e5c7b6bfc3bb42eeffdbd2 (diff)
parentb2cf8f7a24d33914a51fcb0048bfaba11868f471 (diff)
downloadrust-d487579efd3c6b7766f820bbe4b6be0f6d420dad.tar.gz
rust-d487579efd3c6b7766f820bbe4b6be0f6d420dad.zip
Auto merge of #11792 - y21:issue11764, r=llogiq
[`map_identity`]: respect match ergonomics

Fixes #11764

Note: the original tests before this were slightly wrong themselves already and had to be changed. They were calling `map` on an iterator of `&(i32, i32)`s, so this PR would stop linting there, but they were meant to test something else unrelated to binding modes, so I just changed them to remove the references so that it iterates over owned values and they all bind by value. This way they continue to test what they checked for before: the identity function for tuple patterns.

changelog: [`map_identity`]: respect match ergonomics
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions