| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-08-14 | Update former compile-fail tests | Matthew Jasper | -3/+3 | |
| 2018-08-14 | Merged migrated compile-fail tests and ui tests. Fixes #46841. | David Wood | -0/+931 | |
| 2018-08-02 | Explicitly label any named lifetimes mentioned in error messages. | David Wood | -0/+2 | |
| 2018-07-27 | Auto merge of #52648 - davidtwco:issue-52533, r=nikomatsakis | bors | -7/+5 | |
| [nll] improve the "fully elaborated type" case in region errors Fixes #52533. r? @nikomatsakis | ||||
| 2018-07-27 | Region inference error messages no longer start with 'free region' | David Wood | -2/+2 | |
| 2018-07-27 | Change label from closure to function where appropriate. | David Wood | -7/+5 | |
| 2018-07-27 | Auto merge of #52650 - oli-obk:associated_existential_types, r=nikomatsakis | bors | -0/+104 | |
| Implement associated existential types r? @nikomatsakis no idea if these work with generic traits. I'm going home for the day :rofl: | ||||
| 2018-07-26 | Auto merge of #52488 - nikomatsakis:nll-issue-48071-universe-and-sub, r=pnkfelix | bors | -5/+7 | |
| introduce universes to NLL type check This branch aims to fix #48071 and also advance chalk integration a bit at the same time. It re-implements the subtyping/type-equating check so that NLL doesn't "piggy back" on the subtyping code of the old type checker. This new code uses the "universe-based" approach to handling higher-ranked lifetimes, which sidesteps some of the limitations of the current "leak-based" scheme. This avoids the ICE in #48071. At the same time, I aim for this to potentially be a kind of optimization. This NLL code is (currently) not cached, but it also generates constraints without doing as much instantiation, substitution, and folding. Right now, though, it still piggy backs on the `relate_tys` trait, which is a bit unfortunate -- it means we are doing more hashing and things than we have to. I want to measure the see the perf. Refactoring that trait is something I'd prefer to leave for follow-up work. r? @pnkfelix -- but I want to measure perf etc first | ||||
| 2018-07-25 | improve heuristics for what makes an interesting constraint | Niko Matsakis | -5/+7 | |
| 2018-07-25 | Fix associated existentials for generic traits | Oliver Schneider | -0/+40 | |
| 2018-07-24 | Allow declaring existential types inside blocks | Oliver Schneider | -0/+22 | |
| 2018-07-23 | Implement associated existential types | Oliver Schneider | -0/+64 | |
| 2018-07-18 | Move some tests around | Oliver Schneider | -36/+0 | |
| 2018-07-18 | Add test for using existential types in associated types | Oliver Schneider | -0/+36 | |
| 2018-07-18 | Typeck existential types properly | Oliver Schneider | -9/+49 | |
| 2018-07-13 | Use the correct visibility | Oliver Schneider | -0/+35 | |
| 2018-07-09 | find and highlight the `&` or `'_` in `region_name` | Niko Matsakis | -1/+1 | |
| 2018-07-04 | write code to extract region names and emit new style message | Niko Matsakis | -4/+6 | |
| 2018-06-30 | Auto merge of #51862 - estebank:lifetime-spans, r=nikomatsakis | bors | -13/+8 | |
| Point to lifetime spans on lifetime errors | ||||
| 2018-06-30 | Auto merge of #51806 - oli-obk:lowering_cleanups1, r=cramertj | bors | -2/+2 | |
| Lowering cleanups [1/N] | ||||
| 2018-06-28 | Fix rebase | Esteban Küber | -4/+4 | |
| 2018-06-28 | Point to lifetime in fn definition on lifetime error note | Esteban Küber | -9/+4 | |
| 2018-06-28 | Auto merge of #51444 - estebank:impl-static, r=nikomatsakis | bors | -0/+96 | |
| Suggestion for 'static impl Trait return When encountering a named or anonymous sup requirement (for example, `&'a self`) and a `'static` impl Trait return type, suggest adding the `'_` lifetime constraing to the return type. Fix #43719, #51282. ``` error: cannot infer an appropriate lifetime --> $DIR/static-return-lifetime-infered.rs:17:16 | LL | fn iter_values_anon(&self) -> impl Iterator<Item=u32> { | ----------------------- this return type evaluates to the `'static` lifetime... LL | self.x.iter().map(|a| a.0) | ------ ^^^^ | | | ...but this borrow... | note: ...can't outlive the anonymous lifetime #1 defined on the method body at 16:5 --> $DIR/static-return-lifetime-infered.rs:16:5 | LL | / fn iter_values_anon(&self) -> impl Iterator<Item=u32> { LL | | self.x.iter().map(|a| a.0) LL | | } | |_____^ help: you can add a constraint to the return type to make it last less than `'static` and match the anonymous lifetime #1 defined on the method body at 16:5 | LL | fn iter_values_anon(&self) -> impl Iterator<Item=u32> + '_ { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` | ||||
| 2018-06-27 | Update ui tests | Oliver Schneider | -43/+5 | |
| 2018-06-27 | fixup | Oliver Schneider | -6/+44 | |
| 2018-06-26 | Don't inspect the generated existential type items | Oliver Schneider | -49/+9 | |
| 2018-06-20 | Use lifetime name if available | Esteban Küber | -1/+1 | |
| 2018-06-19 | Add message to `rustc_on_unimplemented` attributes in core | Esteban Küber | -6/+6 | |
| 2018-06-18 | Auto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelix | bors | -111/+211 | |
| Add existential type definitions Note: this does not allow creating named existential types, it just desugars `impl Trait` to a less (but still very) hacky version of actual `existential type` items. r? @nikomatsakis | ||||
| 2018-06-10 | Fix error codes | Guillaume Gomez | -4/+4 | |
| 2018-06-08 | Add nll test output | Esteban Küber | -0/+26 | |
| 2018-06-08 | Remove primary label for more readable output | Esteban Küber | -6/+6 | |
| 2018-06-08 | Suggestion for 'static impl Trait return | Esteban Küber | -0/+70 | |
| When encountering a named or anonymous sup requirement (for example, `&'a self`) and a `'static` impl Trait return type, suggest adding the `'_` lifetime constraing to the return type. | ||||
| 2018-06-07 | Add existential type definitons | Oliver Schneider | -111/+211 | |
| 2018-05-26 | Rollup merge of #50987 - estebank:underline-multiple-suggestions, r=petrochencov | kennytm | -7/+3 | |
| Underline multiple suggested replacements in the same line <img width="685" alt="screen shot 2018-05-22 at 21 06 48" src="https://user-images.githubusercontent.com/1606434/40403051-174f3180-5e04-11e8-86b6-261630c5ff80.png"> Follow up to #50943. Fix #50977. | ||||
| 2018-05-24 | prohibit turbofish in `impl Trait` methods | Niko Matsakis | -0/+36 | |
| 2018-05-24 | Fix impl Trait suggestion | Esteban Küber | -6/+2 | |
| 2018-05-24 | Account for negative offsets in suggestions | Esteban Küber | -1/+1 | |
| When suggesting code that has a shorter span than the current code, account for this by keeping the offset as a signed value. | ||||
| 2018-05-22 | Prevent local paths into libstd from leaking into ui tests | Oliver Schneider | -1/+1 | |
| 2018-05-21 | Improve the diagnostic around impl Trait <-> generic param mismatch | Oliver Schneider | -6/+18 | |
| 2018-05-21 | Move a test to ui tests so we can observe the output changes better | Oliver Schneider | -0/+74 | |
| 2018-05-21 | Typo caused the wrong "cannot find" error | Oliver Schneider | -11/+4 | |
| 2018-04-26 | Port existing callers of `evaluate_obligation` to the new canonical trait query | Aravind Gollakota | -0/+2 | |
| Except the one in coherence, which needs support for intercrate mode. | ||||
| 2018-04-21 | Make the unstable StrExt and SliceExt traits private to libcore in not(stage0) | Simon Sapin | -3/+1 | |
| `Float` still needs to be public for libcore unit tests. | ||||
| 2018-04-16 | Update tests | John Kåre Alsaker | -15/+10 | |
| 2018-04-05 | Auto merge of #48709 - tinaun:issue48703, r=nikomatsakis | bors | -0/+28 | |
| remove erroneous error message when checking impl trait params fixes #48703 | ||||
| 2018-03-28 | added test | tinaun | -0/+28 | |
| 2018-03-26 | Stabilize conservative_impl_trait | Taylor Cramer | -20/+15 | |
| 2018-03-26 | Stabilize universal_impl_trait | Taylor Cramer | -11/+5 | |
| 2018-03-25 | Rollup merge of #49046 - Zoxc:error-summary, r=michaelwoerister | kennytm | -1/+3 | |
| Always print `aborting due to n previous error(s)` r? @michaelwoerister | ||||
