Skip to content

Commit d1a5656

Browse files
Fixed variable name replaces with the value in suggestion
Co-authored-by: waffle <[email protected]>
1 parent 11a6b40 commit d1a5656

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+1
-1
lines changed

compiler/rustc_hir_typeck/src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3290,7 +3290,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
32903290
format!("`{val}` is a raw pointer; try dereferencing it"),
32913291
vec![
32923292
(base.span.shrink_to_lo(), "(*".into()),
3293-
(base.span.to(field.span.shrink_to_lo()), format!("{val}).")),
3293+
(base.span.between(field.span), format!(").")),
32943294
],
32953295
Applicability::MaybeIncorrect,
32963296
);

0 commit comments

Comments
 (0)