diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-06-30 20:43:45 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-06-30 21:03:39 +0200 |
| commit | 8ceb91e1c7f3d644ca26f45ae63dac2216f98a4e (patch) | |
| tree | 0163185ca34e343412c8f442b2c71e3b9a7f693b /tests/rustdoc-js-std/parser-slice-array.js | |
| parent | b57bf6b64d60b4ac925c07b9a46694a8259ba01e (diff) | |
| download | rust-8ceb91e1c7f3d644ca26f45ae63dac2216f98a4e.tar.gz rust-8ceb91e1c7f3d644ca26f45ae63dac2216f98a4e.zip | |
Do not remove `as` if it changes the type
While `expr as T` can be removed as a statement if `expr` has no side-effect, the `as T` part alone cannot be removed if the type of `expr` would be ambiguous without the cast.
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions
