| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-09-14 | Auto merge of #54088 - matthewjasper:use-reason-in-dlle-errors, r=pnkfelix | bors | -0/+2 | |
| [NLL] Suggest let binding Closes #49821 Also adds an alternative to `explain_why_borrow_contains_point` that allows changing error messages based on the reason that will be given. This will also be useful for #51026, #51169 and maybe further changes to does not live long enough messages. | ||||
| 2018-09-10 | add FIXME related to `ref x` bindings | Niko Matsakis | -13/+2 | |
| 2018-09-10 | propagate user-ascribes types down onto resulting bindings | Niko Matsakis | -18/+79 | |
| But only in very simple cases. | ||||
| 2018-09-10 | expand the patterns test with a bunch more scenarios | Niko Matsakis | -5/+172 | |
| 2018-09-10 | optimize `let x: T = ..` to avoid a temporary | Niko Matsakis | -14/+16 | |
| For some weird reason this fixes `intrinsic-move-val`. It also affects various test heuristics. I removed one test (`reborrow_basic`) that didn't seem to really be testing anything in particular anymore, compared to all the other tests we've got. | ||||
| 2018-09-10 | fix SCCs containing mixture of universes | Niko Matsakis | -0/+31 | |
| And add a test showing a universe violation getting caught. | ||||
| 2018-09-10 | insert `AscribeUserType` for ascriptions | Niko Matsakis | -1/+55 | |
| 2018-09-10 | now that we can handle subtyping, fix higher-ranked equality | Niko Matsakis | -12/+1 | |
| 2018-09-10 | add a test for variables used twice | Niko Matsakis | -0/+52 | |
| 2018-09-09 | Suggest a let binding to extend temporary lifetimes with NLL | Matthew Jasper | -0/+2 | |
| 2018-09-07 | print less info to stabilize tests | Niko Matsakis | -22/+24 | |
| 2018-09-07 | avoid propagating outlives obligations on locals if we can | Niko Matsakis | -0/+46 | |
| 2018-09-07 | move `annotate` onto a method of `UniversalRegions` | Niko Matsakis | -0/+22 | |
| This allows it to print out the "late-bound regions" from the closure context more easily. Besides, all the state that is being printed it is private to the `UniversalRegions`. | ||||
| 2018-09-06 | Fix tests | Wesley Wiser | -65/+91 | |
| 2018-09-01 | Update tests | Basile Desloges | -486/+130 | |
| 2018-08-28 | Auto merge of #53493 - matthewjasper:hair-spans, r=nikomatsakis | bors | -13/+8 | |
| Use smaller span for adjustments on block expressions When returning a mutable reference don't use the entire body of the function as the span for the adjustments at the end. The error [in this case](https://github.com/rust-lang/rust/compare/master...matthewjasper:hair-spans?expand=1#diff-ecef8b1f15622fb48a803c9b61605c78) is worse, but neither error message is really what we want. I have some ideas on how to get a better error message that will have to wait for a future PR. | ||||
| 2018-08-27 | implement liveness tracing, remove old liveness system | Niko Matsakis | -4/+2 | |
| 2018-08-25 | Use smaller span for adjustments on block expressions | Matthew Jasper | -13/+8 | |
| 2018-08-24 | address pnkfelix nits | Niko Matsakis | -4/+9 | |
| 2018-08-24 | pacify the mercilous tidy: adt-nullary-enums test | Niko Matsakis | -17/+32 | |
| 2018-08-24 | ufcs with annot in position 1 and 2 | Niko Matsakis | -0/+240 | |
| 2018-08-24 | rename test case | Niko Matsakis | -5/+5 | |
| the 3 is because the type arguments are in the 3rd position | ||||
| 2018-08-24 | add test for method ufcs notation | Niko Matsakis | -0/+122 | |
| 2018-08-24 | support user-given types in adts | Niko Matsakis | -0/+556 | |
| 2018-08-24 | support user annotations in fns, methods | Niko Matsakis | -0/+223 | |
| 2018-08-24 | add a `user_substs` table and store the annotations in there | Niko Matsakis | -0/+80 | |
| 2018-08-18 | Auto merge of #53175 - matthewjasper:more-return-stuff, r=nikomatsakis | bors | -15/+16 | |
| [NLL] Returns are interesting for free regions Based on #53088 - creating now to get feedback. Closes #51175 * Make assigning to the return type interesting. * Use "returning this value" instead of "return" in error messages. * Prefer one of the explanations that we have a name for to a generic interesting cause in some cases. * Treat causes that involve the destination of a call like assignments. | ||||
| 2018-08-17 | Rollup merge of #53349 - memoryruins:nll-tests, r=nikomatsakis | Corey Farwell | -0/+76 | |
| [nll] add tests for #48697 and #30104 Adds tests for the following issues: - #48697 ``[NLL] ICE: unexpected region for local data with reference to closure`` - #30104 ``Destructuring boxes into multiple mutable references seems broken`` r? @nikomatsakis | ||||
| 2018-08-17 | Rollup merge of #53326 - memoryruins:issue-27868-test, r=nikomatsakis | Corey Farwell | -0/+58 | |
| [nll] add regression test for issue #27868 Adds a test for #27868 ``Inconsistent evaluation order for assignment operations`` apart of #47366 ``tracking issue for bugs fixed by the MIR borrow checker or NLL`` r? @nikomatsakis | ||||
| 2018-08-15 | Bless UI tests | ashtneoi | -38/+74 | |
| 2018-08-14 | Update tests | Matthew Jasper | -15/+16 | |
| 2018-08-14 | Improved how upvars are detected when presenting errors using prefixes. | David Wood | -0/+34 | |
| 2018-08-14 | Add regression test for issue #30104 | memoryruins | -0/+52 | |
| #30104 | ||||
| 2018-08-14 | Add regression test for issue #48697 | memoryruins | -0/+24 | |
| #48697 | ||||
| 2018-08-14 | Merged migrated compile-fail tests and ui tests. Fixes #46841. | David Wood | -0/+863 | |
| 2018-08-13 | [nll] add regression test for issue #27868 | memoryruins | -0/+58 | |
| 2018-08-10 | Auto merge of #53177 - ↵ | bors | -16/+31 | |
| nikomatsakis:nll-redundant-borrows-and-escaping-values, r=pnkfelix optimize redundant borrows and escaping paths in NLL This builds on https://github.com/rust-lang/rust/pull/53168 and adds a commit that addresses https://github.com/rust-lang/rust/issues/53176 -- or at least I think it does. I marked this as WIP because I want to see the test results (and measure the performance). I also want to double check we're not adding in any unsoundness here. | ||||
| 2018-08-09 | Updated tests after rebase. | David Wood | -1/+2 | |
| 2018-08-09 | Fallback to 'has type' error messages rather than 'lifetime appears in type'. | David Wood | -1/+1 | |
| 2018-08-09 | Correctly identify named early bound regions. | David Wood | -0/+42 | |
| 2018-08-08 | Auto merge of #53186 - mikhail-m1:master, r=nikomatsakis | bors | -0/+35 | |
| Fixes #53119. Fixes #53119. I minimized sample little bit more, but I checked the sample from issue too. r? @nikomatsakis | ||||
| 2018-08-08 | Auto merge of #53088 - matthewjasper:closure-region-spans, r=nikomatsakis | bors | -5/+6 | |
| [NLL] Use span of the closure args in free region errors Also adds a note when one of the free regions is BrEnv. In a future PR I'll change these messages to say "return requires", which should improve them a bit more. r? @nikomatsakis | ||||
| 2018-08-08 | Fixes #53119. | Mikhail Modin | -0/+35 | |
| 2018-08-07 | avoid computing liveness when a variable doesn't need it | Niko Matsakis | -16/+31 | |
| In particular, we skip computing liveness for a variable X if all the regions in its type are known to outlive free regions. | ||||
| 2018-08-07 | Auto merge of #53109 - nikomatsakis:nll-escaping-into-return-revert, ↵ | bors | -31/+16 | |
| r=nikomatsakis revert #52991 Reverts https://github.com/rust-lang/rust/pull/52991 which is flawed. I have an idea how to fix it but might as well revert first since it is so wildly flawed. That's what I get for opening PRs while on PTO =) r? @pnkfelix | ||||
| 2018-08-07 | Auto merge of #52450 - PramodBisht:issue/52413, r=estebank | bors | -4/+6 | |
| Closes #52413: Provide structured suggestion instead of label Provide structured suggestion instead of label r? @estebank | ||||
| 2018-08-06 | Name return type in free region messages | Matthew Jasper | -2/+2 | |
| 2018-08-06 | Disable some nice region errors in NLL mode. | David Wood | -51/+49 | |
| 2018-08-06 | #52413: addressed @estebank's Nit | Pramod Bisht | -4/+6 | |
| 2018-08-06 | revert #52991 | Niko Matsakis | -31/+16 | |
