rust/compiler/rustc_borrowck/src/diagnostics
bors 3ebb5629d1 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`
2023-09-11 15:02:59 +00:00
..
bound_region_errors.rs Rename tcx.mk_re_* => Region::new_* 2023-05-29 17:54:53 +00:00
conflict_errors.rs Remove the unhelpful let binding diag comes from FormatArguments 2023-08-23 12:35:00 +08:00
explain_borrow.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
find_all_local_uses.rs rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
find_use.rs Remove ToRegionVid. 2023-04-13 12:20:41 +10:00
mod.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
move_errors.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
mutability_errors.rs Auto merge of #115595 - surechen:114896, r=davidtwco 2023-09-11 15:02:59 +00:00
outlives_suggestion.rs Use is_some_and/is_ok_and in less obvious spots 2023-05-24 14:33:43 +00:00
region_errors.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
region_name.rs Store the laziness of type aliases in the DefKind 2023-08-07 15:54:31 +02:00
var_name.rs Use upvar_tys in more places, make it a list 2023-08-01 23:19:31 +00:00