about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2023-05-18 10:33:35 +0200
committerest31 <MTest31@outlook.com>2023-05-18 11:16:57 +0200
commitef38662d044714f55c87a12571bd30da51c199aa (patch)
treed9811c3a7ff6036b8e1b59b0a25ad4c4a85766bb /tests/rustdoc-js-std/parser-errors.js
parent83a4b0987f54afbfaad8fed61882231a6632bc71 (diff)
downloadrust-ef38662d044714f55c87a12571bd30da51c199aa.tar.gz
rust-ef38662d044714f55c87a12571bd30da51c199aa.zip
Some improvements to the manual_let_else lint suggestions
* Replace variables inside | patterns in the if let: let v = if let V::A(v) | V::B(v) = v { v } else ...
* Support nested patterns: let v = if let Ok(Ok(Ok(v))) = v { v } else ...
* Support tuple structs with more than one arg: let v = V::W(v, _) = v { v } else ...
* Correctly handle .. in tuple struct patterns: let v = V::X(v, ..) = v { v } else ...
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions