diff options
| author | Daniel Wagner-Hall <dawagner@gmail.com> | 2025-08-14 00:53:34 +0100 |
|---|---|---|
| committer | Daniel Wagner-Hall <dawagner@gmail.com> | 2025-08-14 00:53:34 +0100 |
| commit | 0170d6cecd1e8592774ccd94dd2a5bf30ff2495a (patch) | |
| tree | a95b4cad9062af953f368e107ce11a63641c823a /tests/rustdoc-js-std/parser-errors.js | |
| parent | b3faf62b288709f76c45459bff9110bbea37694b (diff) | |
| download | rust-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
