diff options
| author | llogiq <bogusandre@gmail.com> | 2025-08-24 09:06:17 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-24 09:06:17 +0000 |
| commit | 7b611d4ff4bbcb5369bdbe937c49dbfbdc095679 (patch) | |
| tree | 6f72d44494aaf36890a7d3db41e1ce0cfa7d6ffa /tests/rustdoc-js-std/parser-errors.js | |
| parent | f6c77868b8929ecb9f9e52290943b39d8b3f5737 (diff) | |
| parent | 0170d6cecd1e8592774ccd94dd2a5bf30ff2495a (diff) | |
| download | rust-7b611d4ff4bbcb5369bdbe937c49dbfbdc095679.tar.gz rust-7b611d4ff4bbcb5369bdbe937c49dbfbdc095679.zip | |
fix `or_then_unwrap`: suggestion preserves macro calls (#15483)
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. changelog: [`or_then_unwrap`]: Preserve macro calls rather than expanding them Relates to rust-lang/rust-clippy#6851
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
