| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-12-13 | Mention implementations that satisfy the trait | Esteban Küber | -1/+21 | |
| 2022-12-13 | Remove unnecessary code and account for turbofish suggestion | Esteban Küber | -8/+8 | |
| Remove previously existing fallback that tried to give a good turbofish suggestion, `need_type_info` is already good enough. Special case `::<Vec<_>` suggestion for `Iterator::collect`. | ||||
| 2022-12-13 | Suggest `collect`ing into `Vec<_>` | Esteban Küber | -23/+23 | |
| 2022-12-13 | Account for dereference expressions | Esteban Küber | -133/+186 | |
| 2022-12-13 | Fix span for `&mut ` removal suggestion | Esteban Küber | -29/+29 | |
| 2022-12-13 | Suggest `ref` for some patterns as a fallback | Esteban Küber | -53/+460 | |
| 2022-12-13 | Do not suggest borrowing binding in pattern in let else | Esteban Küber | -13/+14 | |
| Fix #104838. | ||||
| 2022-12-13 | Change pattern borrowing suggestions to be verbose | Esteban Küber | -737/+1274 | |
| Synthesize a more accurate span and use verbose suggestion output to make the message clearer. | ||||
| 2022-12-13 | fix tests | akida31 | -8/+0 | |
| 2022-12-13 | Rename `assert_uninit_valid` intrinsic | Nilstrieb | -3/+3 | |
| It's not about "uninit" anymore but about "filling with 0x01 bytes" so the name should at least try to reflect that. | ||||
| 2022-12-13 | reduce to single suggestion for all arguments | akida31 | -76/+42 | |
| 2022-12-13 | change error message | akida31 | -20/+24 | |
| 2022-12-13 | Remove `hint` from help message | akida31 | -20/+20 | |
| 2022-12-13 | Fix stderr of tests which have improved diagnostics | akida31 | -0/+80 | |
| 2022-12-13 | Remove invalid case for mutable borrow suggestion | Deep Majumder | -0/+26 | |
| 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 | ||||
| 2022-12-13 | Use a label instead of a note for the drop site to create denser diagnostics | Oli Scherer | -35/+15 | |
| 2022-12-13 | Stop pointing to operators if their libcore method source is not available | Oli Scherer | -64/+15 | |
| 2022-12-13 | Avoid rendering empty annotations | Oli Scherer | -158/+50 | |
| 2022-12-13 | Don't emit empty notes | Oli Scherer | -29/+1 | |
| 2022-12-13 | Clarify what "this" means | Oli Scherer | -33/+33 | |
| 2022-12-13 | Inform the user which trait is meant in the diagnostic itself instead of ↵ | Oli Scherer | -22/+22 | |
| relying on the span making it obvious | ||||
| 2022-12-13 | Make some diagnostics not depend on the source of what they reference being ↵ | Oli Scherer | -1479/+384 | |
| available | ||||
| 2022-12-13 | Auto merge of #105350 - compiler-errors:faster-binder-relate, r=oli-obk | bors | -0/+38 | |
| Fast-path some binder relations A simpler approach than #104598 Fixes #104583 r? types | ||||
| 2022-12-12 | Refine when invalid prefix case error arises | Cassaundra Smith | -0/+84 | |
| Fix cases where the "invalid base prefix for number literal" error arises with suffixes that look erroneously capitalized but which are in fact invalid. | ||||
| 2022-12-13 | Fast path some binder relations | Michael Goulet | -0/+38 | |
| 2022-12-13 | Add tests (currently broken) for unsafe + inline const pat | Gary Guo | -0/+39 | |
| 2022-12-13 | Add tests | Gary Guo | -0/+80 | |
| 2022-12-13 | Rollup merge of #105332 - estebank:iterator-chains, r=oli-obk | Matthias Krüger | -122/+319 | |
| Point out the type of associated types in every method call of iterator chains Partially address #105184 by pointing out the type of associated types in every method call of iterator chains: ``` note: the expression is of type `Map<std::slice::Iter<'_, {integer}>, [closure@src/test/ui/iterators/invalid-iterator-chain.rs:12:18: 12:21]>` --> src/test/ui/iterators/invalid-iterator-chain.rs:12:14 | 10 | vec![0, 1] | ---------- this expression has type `Vec<{integer}>` 11 | .iter() | ------ associated type `std::iter::Iterator::Item` is `&{integer}` here 12 | .map(|x| { x; }) | ^^^^^^^^^^^^^^^ associated type `std::iter::Iterator::Item` is `()` here ``` We also reduce the number of impls we mention when any of the candidates is an "exact match". This benefits the output of cases with numerics greatly. Outstanding work would be to provide a structured suggestion for appropriate changes, like in this case detecting the spurious `;` in the closure. | ||||
| 2022-12-13 | Rollup merge of #104864 - chenyukang:yukang/fix-104700-binding, r=estebank | Matthias Krüger | -0/+32 | |
| Account for item-local in inner scope for E0425 Fixes #104700 | ||||
| 2022-12-12 | Rollup merge of #105561 - TaKO8Ki:fix-105449, r=fee1-dead | Matthias Krüger | -0/+59 | |
| Normalize receiver substs and erase the regions Fixes #105449 | ||||
| 2022-12-12 | Properly calculate best failure in macro matching | Nilstrieb | -0/+32 | |
| Previously, we used spans. This was not good. Sometimes, the span of the token that failed to match may come from a position later in the file which has been transcribed into a token stream way earlier in the file. If precisely this token fails to match, we think that it was the best match because its span is so high, even though other arms might have gotten further in the token stream. We now try to properly use the location in the token stream. | ||||
| 2022-12-12 | what is `unstable_features` lol | Boxy | -1/+1 | |
| 2022-12-12 | fold instead of obliterating args | Boxy | -0/+29 | |
| 2022-12-12 | normalize receiver substs and erase the regions | Takayuki Maeda | -0/+59 | |
| use a smaller example | ||||
| 2022-12-12 | Rollup merge of #104997 - c410-f3r:moar-errors, r=petrochenkov | Matthias Krüger | -18/+0 | |
| Move tests r? `@petrochenkov` | ||||
| 2022-12-11 | Point at method call when it is the source of the bound error | Esteban Küber | -163/+81 | |
| 2022-12-11 | Move tests | Caio | -18/+0 | |
| 2022-12-11 | Rollup merge of #105369 - chenyukang:yukang/fix-105226, r=TaKO8Ki | Matthias Krüger | -0/+53 | |
| Detect spurious ; before assoc fn body Fixes #105226 r? ``@TaKO8Ki`` | ||||
| 2022-12-11 | Rollup merge of #105283 - compiler-errors:ty-var-in-hir-wfcheck, r=nagisa | Matthias Krüger | -0/+50 | |
| Don't call `diagnostic_hir_wf_check` query if we have infer variables Fixes #105260 | ||||
| 2022-12-11 | Use `with_forced_trimmed_paths` | Esteban Küber | -36/+36 | |
| 2022-12-11 | fix rebase | Esteban Küber | -10/+29 | |
| 2022-12-11 | Only point at methods that might be relevant | Esteban Küber | -17/+64 | |
| 2022-12-11 | Add label to method chains where assoc type remains the same | Esteban Küber | -5/+5 | |
| 2022-12-11 | Remove mention of "assoc type" in label as it is already in the `note` message | Esteban Küber | -16/+16 | |
| 2022-12-11 | Account for method call chains split across multiple bindings | Esteban Küber | -11/+57 | |
| 2022-12-11 | Mention only assoc types changes | Esteban Küber | -25/+23 | |
| 2022-12-11 | Expand iterator chain test | Esteban Küber | -7/+26 | |
| 2022-12-11 | Provide associated type information in method chains | Michael Goulet | -0/+150 | |
| When encountering an unmet obligation that affects a method chain, like in iterator chains where one of the links has the wrong associated type, we point at every method call and mention their evaluated associated type at that point to give context to the user of where expectations diverged from the code as written. ``` note: the expression is of type `Map<std::slice::Iter<'_, {integer}>, [closure@$DIR/invalid-iterator-chain.rs:12:18: 12:21]>` --> $DIR/invalid-iterator-chain.rs:12:14 | LL | vec![0, 1] | ---------- this expression has type `Vec<{integer}>` LL | .iter() | ------ associated type `std::iter::Iterator::Item` is `&{integer}` here LL | .map(|x| { x; }) | ^^^^^^^^^^^^^^^ associated type `std::iter::Iterator::Item` is `()` here ``` | ||||
| 2022-12-11 | Rollup merge of #105547 - JohnTitor:issue-104582, r=compiler-errors | Matthias Krüger | -0/+30 | |
| Add regression test for #104582 Closes #104582 r? `@compiler-errors` Signed-off-by: Yuki Okushi <jtitor@2k36.org> | ||||
| 2022-12-11 | Rollup merge of #105546 - JohnTitor:issue-44454, r=compiler-errors | Matthias Krüger | -0/+115 | |
| Add some regression tests for #44454 Closes #44454 r? ``@compiler-errors`` Signed-off-by: Yuki Okushi <jtitor@2k36.org> | ||||
