summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src/diagnostics
AgeCommit message (Expand)AuthorLines
2024-04-25review comment: rename methodEsteban Küber-2/+2
2024-04-25Check equivalence of indices in more casesEsteban Küber-1/+7
2024-04-25Don't suggest `split_at_mut` when the multiple borrows have the same indexEsteban Küber-2/+6
2024-04-25Mention `split_at_mut` when mixing mutability in indexing opsEsteban Küber-2/+17
2024-04-25Only suggest `split_at_mut` on indexing borrowck errors for std typesEsteban Küber-8/+22
2024-04-25Detect borrow error involving sub-slices and suggest `split_at_mut`Esteban Küber-16/+25
2024-04-25Auto merge of #119650 - chenyukang:yukang-fix-118596-ref-mut, r=wesleywiserbors-1/+16
2024-04-24Suggest cloning captured binding in `move` closureEsteban Küber-8/+136
2024-04-24Mention when type parameter could be `Clone`Esteban Küber-8/+51
2024-04-24Modify `find_expr` from `Span` to better account for closuresEsteban Küber-4/+4
2024-04-25Suggest ref mut for pattern matching assignmentyukang-1/+16
2024-04-23Rollup merge of #122598 - Nadrieril:full-derefpats, r=matthewjasperLeón Orell Valerian Liehr-11/+20
2024-04-20Add a non-shallow fake borrowNadrieril-11/+20
2024-04-19Stop taking ParamTy/ParamConst/EarlyParamRegion/AliasTy by refMichael Goulet-2/+2
2024-04-17Rename `BindingAnnotation` to `BindingMode`Jules Bertholet-8/+8
2024-04-15Make suggest_deref_closure_return more idiomatic/easier to understandMichael Goulet-73/+64
2024-04-16Rollup merge of #123989 - compiler-errors:type-dependent-def-id, r=oli-obkLeón Orell Valerian Liehr-26/+20
2024-04-16Rollup merge of #123016 - compiler-errors:no-type-var-origin, r=lcnrLeón Orell Valerian Liehr-5/+4
2024-04-15Rebase falloutMichael Goulet-5/+4
2024-04-15Just use type_dependent_def_id to figure out what the method is for an exprMichael Goulet-26/+20
2024-04-14Consolidate two copies of ty_kind_suggestionMichael Goulet-63/+2
2024-04-13Auto merge of #122603 - estebank:clone-o-rama, r=lcnrbors-62/+481
2024-04-12review commentsEsteban Küber-8/+36
2024-04-12Better account for more cases involving closuresEsteban Küber-14/+36
2024-04-12Fix rebaseEsteban Küber-2/+2
2024-04-12Rollup merge of #123599 - matthiaskrgr:rm, r=cjgillotMatthias Krüger-1/+1
2024-04-11Rollup merge of #123523 - estebank:issue-123414, r=BoxyUwUMatthias Krüger-35/+54
2024-04-11remove some things that do not need to beMatthias Krüger-1/+1
2024-04-11Mention when the type of the moved value doesn't implement `Clone`Esteban Küber-2/+13
2024-04-11Account for move error in the spread operator on struct literalsEsteban Küber-11/+107
2024-04-11Better account for `FnOnce` in move errorsEsteban Küber-7/+72
2024-04-11Account for assign binops in clone suggestionsEsteban Küber-2/+32
2024-04-11When possible, suggest cloning the result of a call instead of an argumentEsteban Küber-13/+92
2024-04-11Do not recomment cloning explicit `&mut` expressionsEsteban Küber-0/+5
2024-04-11Fix accuracy of `T: Clone` check in suggestionEsteban Küber-0/+1
2024-04-11Remove unnecessary argument from `suggest_cloning`Esteban Küber-21/+9
2024-04-11Silence redundant clone suggestionEsteban Küber-0/+5
2024-04-11More move error suggestions to cloneEsteban Küber-0/+4
2024-04-11Suggest `.clone()` in some move errorsEsteban Küber-0/+10
2024-04-11Account for unops when suggesting cloningEsteban Küber-19/+24
2024-04-11Suggest `.clone()` when moved while borrowedEsteban Küber-17/+56
2024-04-11Account for `.clone()` when suggesting `<T as Clone>::clone`Esteban Küber-2/+33
2024-04-11Rollup merge of #123704 - estebank:diag-changes, r=compiler-errorsMatthias Krüger-26/+70
2024-04-10Handle more cases of "values to suggest" given a typeEsteban Küber-3/+16
2024-04-10Handle more cases of value suggestionsEsteban Küber-18/+51
2024-04-10Use trait solver to answer questions instead of manually writing a trait solverOli Scherer-79/+22
2024-04-09Tweak value suggestions in `borrowck` and `hir_analysis`Esteban Küber-10/+8
2024-04-06Account for trait/impl difference when suggesting changing argument from ref ...Esteban Küber-35/+54
2024-04-05Provide suggestion to dereference closure tail if appropriateEsteban Küber-4/+210
2024-03-30Stop calling visitors VMichael Goulet-3/+12