| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -20970/+0 | |
| 2023-01-10 | Auto merge of #106607 - ↵ | bors | -17/+55 | |
| compiler-errors:be-more-accurate-abt-method-suggestions, r=oli-obk Consider return type when giving various method suggestions 1. Fix a bug in method probe where we weren't normalizing `xform_ret_ty` for non-`impl` method candidates. This shouldn't affect happy-path code, since we only use `xform_ret_ty` when probing methods for diagnostics (I think). 2. Pass the return type expectation down to `lookup_probe`/`probe_for_name` usages in diagnostics. Added a few UI tests to gate against bad suggestions. 3. Make a `FnCtxt::lookup_probe_for_diagnostic` which properly passes down `IsSuggestion(true)`. Should help suppress other weird notes in some corner cases. | ||||
| 2023-01-09 | Consider method return type for various method suggestions | Michael Goulet | -17/+55 | |
| 2023-01-09 | Rollup merge of #105655 - RedDocMD:bug-105645, r=oli-obk | fee1-dead | -0/+26 | |
| Remove invalid case for mutable borrow suggestion If we have a call such as `foo(&mut buf)` and after reference collapsing the type is inferred as `&T` where-as the required type is `&mut T`, don't suggest `foo(&mut mut buf)`. This is wrong syntactically and the issue lies elsewhere, not in the borrow. Fixes #105645 | ||||
| 2023-01-08 | Rollup merge of #106497 - chenyukang:yukang/fix-106443-sugg-clone, r=estebank | Michael Goulet | -0/+107 | |
| Suggest using clone when we have &T and T implemented Clone Fixes #106443 | ||||
| 2023-01-08 | Rollup merge of #106363 - estebank:mutability-mismatch-arg, r=Nilstrieb | Michael Goulet | -5/+5 | |
| Structured suggestion for `&mut dyn Iterator` when possible Fix #37914. | ||||
| 2023-01-08 | Remove extra space | Yukang | -1/+1 | |
| 2023-01-07 | use type_implements_trait to check Param clone | yukang | -2/+2 | |
| 2023-01-06 | Change wording to avoid being misleading | Esteban Küber | -5/+2 | |
| 2023-01-06 | Structured suggestion for `&mut dyn Iterator` when possible | Esteban Küber | -1/+4 | |
| Fix #37914. | ||||
| 2023-01-07 | Suggest possible clone when we have &T | yukang | -0/+107 | |
| 2023-01-05 | Correct detection of elided lifetimes in impl-trait. | Camille GILLOT | -0/+5 | |
| 2023-01-05 | Tweak wording of fn call with wrong number of args | Esteban Küber | -22/+22 | |
| 2022-12-31 | Auto merge of #106245 - estebank:mutability-suggestions, r=jyn514 | bors | -18/+31 | |
| Use verbose suggestions for mutability errors | ||||
| 2022-12-29 | Rollup merge of #106190 - estebank:multiline-start-tweak, r=jackh726 | Matthias Krüger | -4/+1 | |
| Account for multiple multiline spans with empty padding Instead of ``` LL | fn oom( | __^ | | _| | || LL | || ) { | ||_- LL | | } | |__^ ``` emit ``` LL | // fn oom( LL | || ) { | ||_- LL | | } | |__^ ``` | ||||
| 2022-12-29 | Account for multiple multiline spans with empty padding | Esteban Küber | -4/+1 | |
| Instead of ``` LL | fn oom( | __^ | | _| | || LL | || ) { | ||_- LL | | } | |__^ ``` emit ``` LL | // fn oom( LL | || ) { | ||_- LL | | } | |__^ ``` | ||||
| 2022-12-28 | Use verbose suggestions for mutability errors | Esteban Küber | -18/+31 | |
| 2022-12-28 | Rollup merge of #106199 - estebank:quiet-type-err-in-binding, r=compiler-errors | Matthias Krüger | -20/+24 | |
| Silence knock-down errors on `[type error]` bindings Fix #56036, fix #76589. | ||||
| 2022-12-28 | Rollup merge of #106172 - estebank:suggest-impl-trait, r=compiler-errors | Matthias Krüger | -2/+2 | |
| Suggest `impl Iterator` when possible for `_` return type Address #106096. | ||||
| 2022-12-27 | Silence knock-down errors on `[type error]` bindings | Esteban Küber | -20/+24 | |
| Fix #56036, fix #76589. | ||||
| 2022-12-27 | Shorten type in note | Esteban Küber | -2/+2 | |
| 2022-12-27 | Rollup merge of #105852 - compiler-errors:hex-float-lit, r=cjgillot | Michael Goulet | -0/+61 | |
| Suggest rewriting a malformed hex literal if we expect a float Fixes #104706 | ||||
| 2022-12-27 | Rollup merge of #105765 - estebank:range-typo, r=compiler-errors | Michael Goulet | -0/+78 | |
| Detect likely `.` -> `..` typo in method calls Fix #65015. | ||||
| 2022-12-27 | Make resolve suggestion more generic | Esteban Küber | -1/+1 | |
| 2022-12-27 | review comments: make suggestion more accurate | Esteban Küber | -20/+31 | |
| 2022-12-27 | Suggest rewriting a malformed hex literal if we expect a float | Michael Goulet | -0/+61 | |
| 2022-12-27 | Auto merge of #106177 - matthiaskrgr:rollup-oe7z8ix, r=matthiaskrgr | bors | -0/+94 | |
| Rollup of 4 pull requests Successful merges: - #105515 (Account for macros in const generics) - #106146 (Readme: update section on how to run `x.py`) - #106150 (Detect when method call on LHS might be shadowed) - #106174 (Remove unused empty CSS rules in ayu theme) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup | ||||
| 2022-12-27 | Auto merge of #106095 - estebank:pin-mut-reborrow, r=compiler-errors | bors | -0/+8 | |
| Suggest `Pin::as_mut` when encountering borrow error Fix #65409 for `Pin<&mut T>`. | ||||
| 2022-12-26 | Detect likely `.` -> `..` typo in method calls | Esteban Küber | -0/+67 | |
| Fix #65015. | ||||
| 2022-12-26 | Fix suggestion when there are arguments in the method | Esteban Küber | -0/+48 | |
| 2022-12-26 | Tweak wording | Esteban Küber | -2/+5 | |
| 2022-12-26 | Detect when method call on LHS might be shadowed | Esteban Küber | -0/+43 | |
| Address #39232. | ||||
| 2022-12-25 | Create new inference context | Esteban Küber | -0/+8 | |
| 2022-12-24 | Rollup merge of #105872 - chenyukang:yukang/fix-105494-remove-method-call, ↵ | Matthias Krüger | -0/+76 | |
| r=eholk Suggest remove last method call when type coerce with expected type Fixes #105494 | ||||
| 2022-12-22 | Deduplicate check_expr in builtin calls with error | Michael Goulet | -0/+52 | |
| 2022-12-22 | fix #105494, Suggest remove last method call when type coerce with expected | yukang | -0/+76 | |
| 2022-12-22 | Suggest associated const on capitalization error | Michael Goulet | -0/+72 | |
| 2022-12-18 | Don't ICE in closure arg borrow suggestion | Michael Goulet | -0/+32 | |
| 2022-12-16 | Auto merge of #104334 - compiler-errors:ufcs-sugg-wrong-def-id, r=estebank | bors | -0/+58 | |
| Use impl's def id when calculating type to specify in UFCS Fixes #104327 Fixes #104328 Also addresses https://github.com/rust-lang/rust/pull/102670#discussion_r987381197 | ||||
| 2022-12-15 | Rollup merge of #105679 - estebank:suggest-clone, r=compiler-errors | Matthias Krüger | -0/+74 | |
| Suggest constraining type parameter with `Clone` Fix #34896. | ||||
| 2022-12-15 | Trim paths in E0599 | Esteban Küber | -2/+2 | |
| 2022-12-15 | Suggest `#[derive(Clone)]` | Esteban Küber | -1/+34 | |
| 2022-12-15 | Suggest constraining type parameter with `Clone` | Esteban Küber | -0/+41 | |
| Fix #34896. | ||||
| 2022-12-14 | Use impl's def id when calculating type to specify UFCS | Michael Goulet | -0/+58 | |
| 2022-12-13 | Rollup merge of #105500 - oli-obk:unhide_unknown_spans, r=estebank | Matthias Krüger | -156/+26 | |
| Make some diagnostics not depend on the source of what they reference being available r? `@estebank` follow up to https://github.com/rust-lang/rust/pull/104449 | ||||
| 2022-12-13 | Account for dereference expressions | Esteban Küber | -44/+55 | |
| 2022-12-13 | Fix span for `&mut ` removal suggestion | Esteban Küber | -26/+26 | |
| 2022-12-13 | Suggest `ref` for some patterns as a fallback | Esteban Küber | -23/+99 | |
| 2022-12-13 | Do not suggest borrowing binding in pattern in let else | Esteban Küber | -8/+5 | |
| Fix #104838. | ||||
| 2022-12-13 | Change pattern borrowing suggestions to be verbose | Esteban Küber | -505/+815 | |
| Synthesize a more accurate span and use verbose suggestion output to make the message clearer. | ||||
