diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2025-04-28 09:45:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-28 09:45:04 +0000 |
| commit | bb906cc06f2a0d3a316d4a95076bcdc55c880b99 (patch) | |
| tree | d8862994708f8fdf2f4051d57a230f49c2a4820e /src/tools/rust-analyzer/crates/hir-expand | |
| parent | 36ed4aaa2ea3f410bd44df63addaea98b0a678a4 (diff) | |
| parent | 7e064c3072adff6e97581a34393ca6abedd4a335 (diff) | |
| download | rust-bb906cc06f2a0d3a316d4a95076bcdc55c880b99.tar.gz rust-bb906cc06f2a0d3a316d4a95076bcdc55c880b99.zip | |
Merge pull request #19704 from Veykril/push-wrvznvvpvtvp
Add expression fill mode variant for filling with underscore expressions
Diffstat (limited to 'src/tools/rust-analyzer/crates/hir-expand')
| -rw-r--r-- | src/tools/rust-analyzer/crates/hir-expand/src/db.rs | 3 | ||||
| -rw-r--r-- | src/tools/rust-analyzer/crates/hir-expand/src/lib.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-expand/src/db.rs b/src/tools/rust-analyzer/crates/hir-expand/src/db.rs index 29b7b33fd0f..2219a55a84b 100644 --- a/src/tools/rust-analyzer/crates/hir-expand/src/db.rs +++ b/src/tools/rust-analyzer/crates/hir-expand/src/db.rs @@ -752,8 +752,7 @@ fn check_tt_count(tt: &tt::TopSubtree) -> Result<(), ExpandResult<()>> { err: Some(ExpandError::other( tt.delimiter.open, format!( - "macro invocation exceeds token limit: produced {} tokens, limit is {}", - count, TOKEN_LIMIT, + "macro invocation exceeds token limit: produced {count} tokens, limit is {TOKEN_LIMIT}", ), )), }) diff --git a/src/tools/rust-analyzer/crates/hir-expand/src/lib.rs b/src/tools/rust-analyzer/crates/hir-expand/src/lib.rs index f0a9a2ad52c..ad35f7000a1 100644 --- a/src/tools/rust-analyzer/crates/hir-expand/src/lib.rs +++ b/src/tools/rust-analyzer/crates/hir-expand/src/lib.rs @@ -206,8 +206,7 @@ impl ExpandErrorKind { }, None => RenderedExpandError { message: format!( - "internal error: proc-macro map is missing error entry for crate {:?}", - def_crate + "internal error: proc-macro map is missing error entry for crate {def_crate:?}" ), error: true, kind: RenderedExpandError::GENERAL_KIND, |
