| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-09-06 | Shrink span for bindings with subpatterns. | Camille GILLOT | -61/+61 | |
| 2022-09-05 | Don't suggest reborrow if usage is inside a closure | Michael Goulet | -0/+31 | |
| 2022-09-01 | do not suggest adding `move` to closure when `move` is already used | Takayuki Maeda | -0/+26 | |
| 2022-08-31 | Fix a bunch of typo | Dezhi Wu | -3/+3 | |
| This PR will fix some typos detected by [typos]. I only picked the ones I was sure were spelling errors to fix, mostly in the comments. [typos]: https://github.com/crate-ci/typos | ||||
| 2022-08-25 | Provide structured suggestion for `hashmap[idx] = val` | Esteban Küber | -7/+16 | |
| 2022-08-23 | Suggest alternatives when trying to mutate a `HashMap`/`BTreeMap` via indexing | Chayim Refael Friedman | -0/+3 | |
| The error can be quite confusing to newcomers. | ||||
| 2022-08-20 | Rollup merge of #100507 - cameron1024:suggest-lazy, r=compiler-errors | Matthias Krüger | -0/+1 | |
| suggest `once_cell::Lazy` for non-const statics Addresses https://github.com/rust-lang/rust/issues/100410 Some questions: - removing the `if` seems to include too many cases (e.g. calls to non-const functions inside a `const fn`), but this code excludes the following case: ```rust const FOO: Foo = non_const_fn(); ``` Should we suggest `once_cell` in this case as well? - The original issue mentions suggesting `AtomicI32` instead of `Mutex<i32>`, should this PR address that as well? | ||||
| 2022-08-20 | Rollup merge of #100186 - compiler-errors:or-as_mut, r=fee1-dead | Matthias Krüger | -4/+1 | |
| Mention `as_mut` alongside `as_ref` in borrowck error message Kinda fixes #99426 but I guess that really might be better staying open to see if we could make it suggest `as_mut` in a structured way. Not sure how to change borrowck to know that info tho. | ||||
| 2022-08-16 | Make as_ref suggestion a note | Michael Goulet | -4/+1 | |
| 2022-08-15 | Fix #95079 by adding help and suggestion for missing move in nested closure | Yan Chen | -0/+59 | |
| 2022-08-14 | suggest lazy-static for non-const statics | cameron | -0/+1 | |
| 2022-08-14 | Suggest as_ref or as_mut | Michael Goulet | -1/+1 | |
| 2022-08-03 | fix trailing whitespace in error message | klensy | -1/+1 | |
| 2022-07-31 | Improve `cannot move out of` error message | Obei Sideg | -2/+2 | |
| 2022-07-19 | Mention first and last macro in backtrace | Michael Goulet | -12/+12 | |
| 2022-07-15 | Move tests to fit in limit | Esteban Küber | -0/+89 | |
| 2022-07-15 | Provide structured suggestion for dropped temp value | Esteban Küber | -6/+22 | |
| 2022-07-13 | remove untagged_union feature gate | Ralf Jung | -25/+23 | |
| 2022-07-08 | Auto merge of #98482 - cjgillot:short-struct-span-closure, r=estebank | bors | -199/+152 | |
| Shorten def_span of closures to just their header Continuation of https://github.com/rust-lang/rust/pull/93967. | ||||
| 2022-07-07 | Wording tweak | Esteban Küber | -9/+11 | |
| 2022-07-07 | Fix label on uninit binding field assignment | Esteban Küber | -2/+2 | |
| 2022-07-07 | Add test for `for` loop maybe initializing binding | Esteban Küber | -0/+20 | |
| 2022-07-07 | Review comments: wording | Esteban Küber | -17/+18 | |
| 2022-07-07 | Tweak wording and spans | Esteban Küber | -173/+173 | |
| 2022-07-07 | On partial uninit error point at where we need init | Esteban Küber | -187/+391 | |
| When a binding is declared without a value, borrowck verifies that all codepaths have *one* assignment to them to initialize them fully. If there are any cases where a condition can be met that leaves the binding uninitialized or we attempt to initialize a field of an unitialized binding, we emit E0381. We now look at all the statements that initialize the binding, and use them to explore branching code paths that *don't* and point at them. If we find *no* potential places where an assignment to the binding might be missing, we display the spans of all the existing initializers to provide some context. | ||||
| 2022-07-07 | Fix borrowck closure span. | Camille GILLOT | -22/+48 | |
| 2022-07-07 | Shorten span for closures. | Camille GILLOT | -187/+114 | |
| 2022-07-01 | Shorten def_span for more items. | Camille GILLOT | -26/+14 | |
| 2022-06-29 | Make RPIT and TAIT work exactly the same | Oli Scherer | -4/+15 | |
| 2022-06-28 | Do not use a suggestion to change a binding's name to a type | Michael Goulet | -12/+13 | |
| 2022-06-28 | Remove redundant logic to suggest `as_ref` | Michael Goulet | -0/+47 | |
| 2022-06-25 | bless after rebase | Ralf Jung | -0/+39 | |
| 2022-06-24 | Auto merge of #98109 - nikomatsakis:issue-98095, r=jackh726 | bors | -68/+5 | |
| fix universes in the NLL type tests In the NLL code, we were not accommodating universes in the `type_test` logic. Fixes #98095. r? `@compiler-errors` This breaks some tests, however, so the purpose of this branch is more explanatory and perhaps to do a crater run. | ||||
| 2022-06-21 | Move some tests to more reasonable directories | Caio | -147/+0 | |
| 2022-06-16 | fix one more case of trailing space | klensy | -23/+23 | |
| 2022-06-16 | diagnostics: fix trailing space | klensy | -3/+3 | |
| 2022-06-15 | generalize the outlives obligation code | Niko Matsakis | -68/+5 | |
| The code now accepts `Binder<OutlivesPredicate>` instead of just `OutlivesPredicate` and thus exercises the new, generalized `IfEqBound` codepaths. Note though that we never *produce* Binder<OutlivesPredicate>, so we are only testing a subset of those codepaths that excludes actual higher-ranked outlives bounds. | ||||
| 2022-06-14 | implement valtrees as the type-system representation for constant values | b-naber | -9/+51 | |
| 2022-06-03 | Fully stabilize NLL | Jack Huey | -448/+99 | |
| 2022-06-01 | Add regression test for #71546 | Yuki Okushi | -0/+39 | |
| 2022-05-28 | Add regression test for #81899 | Yuki Okushi | -0/+30 | |
| 2022-05-22 | Use revisions for NLL in borrowck | Jack Huey | -26/+121 | |
| 2022-05-08 | Move some tests to more reasonable places | Caio | -0/+25 | |
| 2022-05-06 | Resolve vars in note_type_err | Jack Huey | -22/+0 | |
| 2022-04-20 | Remove mutable_borrow_reservation_conflict lint | Jack Huey | -241/+72 | |
| 2022-04-08 | suggest adding a local for vector to fix borrowck errors | Takayuki Maeda | -0/+78 | |
| 2022-03-09 | Auto merge of #94515 - estebank:tweak-move-error, r=davidtwco | bors | -15/+26 | |
| Tweak move error Point at method definition that causes type to be consumed. Fix #94056. | ||||
| 2022-03-07 | Update tests after feature stabilization | Eric Holk | -10/+8 | |
| 2022-03-06 | Erase regions when checking for missing Copy predicates | Michael Goulet | -0/+31 | |
| 2022-03-03 | Tweak move error | Esteban Kuber | -15/+26 | |
| Point at method definition that causes type to be consumed. Fix #94056. | ||||
