diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-17 12:57:29 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-17 12:57:29 +0100 |
commit | 0262c9b9c0f5091106606e959d85b1dc0cdb7e0d (patch) | |
tree | 82882f5ae58b65f9d866ca444a2c3b73f3f68661 /crates/ra_hir_def/src/body | |
parent | bd6b532224753c6e56e322158b12cd1079b03f67 (diff) | |
parent | 146f6f5a45a4bfd98ab0eb54bb30610d784433c9 (diff) |
Merge #4010
4010: Fix handling of ranges in diagnostics r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/body')
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 79abe55ce..10a1ba714 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -320,7 +320,8 @@ impl ExprCollector<'_> { | |||
320 | 320 | ||
321 | let res = self.alloc_expr(record_lit, syntax_ptr); | 321 | let res = self.alloc_expr(record_lit, syntax_ptr); |
322 | for (i, ptr) in field_ptrs.into_iter().enumerate() { | 322 | for (i, ptr) in field_ptrs.into_iter().enumerate() { |
323 | self.source_map.field_map.insert((res, i), ptr); | 323 | let src = self.expander.to_source(ptr); |
324 | self.source_map.field_map.insert((res, i), src); | ||
324 | } | 325 | } |
325 | res | 326 | res |
326 | } | 327 | } |