diff options
| author | bors <bors@rust-lang.org> | 2023-09-11 15:02:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-11 15:02:59 +0000 |
| commit | 3ebb5629d1a39345d37c4838d31dc7280384ea94 (patch) | |
| tree | 742f985f86a66379b353a23074a13284b9ecf772 /compiler/rustc_interface/src | |
| parent | 68c2f5ba0ffb6f7f0724dd62c7562daa634caaec (diff) | |
| parent | a8f3c7684df5ac15c770ef92d58436aa3386cfcf (diff) | |
| download | rust-3ebb5629d1a39345d37c4838d31dc7280384ea94.tar.gz rust-3ebb5629d1a39345d37c4838d31dc7280384ea94.zip | |
Auto merge of #115595 - surechen:114896, r=davidtwco
Fix incorrect mutable suggestion information for binding in ref pattern like: `let &b = a;`
fixes #114896
I find we have to get pat_span but not local_decl.source_info.span for suggestion. In `let &b = a;` pat_span is &b. I think check `let &b = a` in hir to make sure it is hir::Node::Local(hir::Local {pat: hir::Pat{kind: hir::PatKind::Ref(....... can distinguish it from other situation, but I'm not sure.
If my processing method is not accurate, please guide me to modify it, thank you.
r? `@davidtwco`
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
