about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <dawagner@gmail.com>2025-08-14 00:53:34 +0100
committerDaniel Wagner-Hall <dawagner@gmail.com>2025-08-14 00:53:34 +0100
commit0170d6cecd1e8592774ccd94dd2a5bf30ff2495a (patch)
treea95b4cad9062af953f368e107ce11a63641c823a /tests/rustdoc-js-std/parser-errors.js
parentb3faf62b288709f76c45459bff9110bbea37694b (diff)
downloadrust-0170d6cecd1e8592774ccd94dd2a5bf30ff2495a.tar.gz
rust-0170d6cecd1e8592774ccd94dd2a5bf30ff2495a.zip
or_then_unwrap suggestion preserves macro calls
Before this change, the suggestion for
`Option.or(Some(vec![])).unwrap()` expanded the `vec!` macro which broke
the code, both in terms of readability, and because the expansion
references `$crate` which cannot be inlined.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions