summary refs log tree commit diff
path: root/src/test/ui/self
AgeCommit message (Collapse)AuthorLines
2019-12-13parser: recover on `&'lifetime mut $pat`.Mazdak Farrokhzad-1/+1
2019-11-29remove get_named_spanMark Mansi-50/+28
2019-11-29improve lifetime errors with implicit trait object lifetimesMark Mansi-77/+78
2019-11-26Stabilize nested self receiversTaylor Cramer-288/+166
Previously, only Self, &Self, &mut Self, Arc<Self>, Rc<Self>, and Box<Self> were available as stable method receivers. This commit stabilizes nested uses of all the above types. However, nested receivers remain non-object-safe.
2019-11-21Rollup merge of #65730 - csmoe:return-lifetime, r=nikomatsakisMazdak Farrokhzad-4/+0
Suggest to add lifetime constraint at explicit ouput of functions Closes #62097
2019-11-13update suggestion ui testcsmoe-4/+0
2019-11-07Update ui testsGuillaume Gomez-0/+12
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-8/+8
Point at the span for the definition of ADTs internal to the current crate. Look at the leading char of the ident to determine whether we're expecting a likely fn or any of a fn, a tuple struct or a tuple variant. Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+3
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-10-23Auto merge of #57545 - bovinebuddha:object_safe_for_dispatch, r=nikomatsakisbors-2/+45
Object safe for dispatch cc #43561
2019-10-22RFC 2027: "first draft" of implementationMathias Blikstad-2/+45
These are a squashed series of commits.
2019-10-21Rollup merge of #62330 - SimonSapin:no-drop-in-union-fields, r=RalfJungMazdak Farrokhzad-1/+10
Change untagged_unions to not allow union fields with drop This is a rebase of #56440, massaged to solve merge conflicts and make the test suite pass. Change untagged_unions to not allow union fields with drop Union fields may now never have a type with attached destructor. This for example allows unions to use arbitrary field types only by wrapping them in `ManuallyDrop` (or similar). The stable rule remains, that union fields must be `Copy`. We use the new rule for the `untagged_union` feature. Tracking issue: https://github.com/rust-lang/rust/issues/55149
2019-10-11Remove most uses of `allow(unions_with_drop_fields)` in testsSimon Sapin-1/+10
2019-10-11Print lifetimes with backticksYuki Okushi-2/+2
2019-10-03Rollup merge of #65057 - mathstuf:fix-warning-typo, r=CentrilTyler Mandry-1/+1
typo: fix typo in E0392 See #64931. --- Cc: @Centril @estebank
2019-10-03typo: fix typo in E0392Ben Boeckel-1/+1
See #64931.
2019-10-03Auto merge of #64999 - nikomatsakis:issue-60424-async-return-inference, ↵bors-447/+443
r=cramertj extract expected return type for async fn generators Fixes #60424 cc @Centril, I know you've been eager to see this fixed. r? @cramertj
2019-10-03./x.py test --bless --compare-mode=nllNiko Matsakis-288/+258
2019-10-02review commentEsteban Küber-1/+1
2019-10-02WIP fix testsNiko Matsakis-159/+185
2019-09-30Reword E0392 slightlyEsteban Küber-1/+1
Make it clearer that a type or lifetime argument not being used can be fixed by referencing it in a struct's fields, not just using `PhathomData`.
2019-09-28Auto merge of #64455 - GuillaumeGomez:long-error-explanation-E0531, r=Centrilbors-2/+4
Add Long error explanation for E0531 Part of #61137.
2019-09-25update ui testsGuillaume Gomez-2/+4
2019-09-15resolve: Remove `!` from "cannot find" diagnostics for macrosVadim Petrochenkov-2/+2
2019-09-08Give method not found a primary span labelEsteban Küber-2/+2
2019-09-05Rollup merge of #64110 - estebank:receiver-type, r=CentrilMazdak Farrokhzad-3/+6
Refer to "`self` type" instead of "receiver type" Fix https://github.com/rust-lang/rust/issues/42603.
2019-09-03review commentsEsteban Küber-2/+2
2019-09-02On object safety violation, point at source when possibleEsteban Küber-3/+6
2019-09-01Account for arbitrary self types in E0599Esteban Küber-0/+52
2019-08-27Improve 'mut ' diagnostic.Mazdak Farrokhzad-3/+5
2019-08-27recover on 'mut ' and improve recovery for keywords.Mazdak Farrokhzad-11/+22
2019-08-20--bless post no async_await gates in tests.Mazdak Farrokhzad-100/+100
2019-08-20Remove async_await gates from tests.Mazdak Farrokhzad-41/+0
2019-08-16bless you nllEduard-Mihai Burtescu-31/+31
2019-08-13bless tests with compare-mode=nllNiko Matsakis-136/+503
2019-08-12bless testsNiko Matsakis-146/+27
2019-08-12fix README.mdNiko Matsakis-5/+5
2019-08-12revamp how we handle elision in async fnNiko Matsakis-1512/+215
We now always make fresh lifetimne parameters for all elided lifetimes, whether they are in the inputs or outputs. But then we generate `'_` in the case of elided lifetimes from the outputs. Example: ```rust async fn foo<'a>(x: &'a u32) -> &u32 { .. } ``` becomes ```rust type Foo<'a, 'b> = impl Future<Output = &'b u32>; fn foo<'a>(x: &'a u32) -> Foo<'a, '_> ```
2019-08-08Add async versions of arbitrary_self_types_pin_lifetime tests.Mazdak Farrokhzad-0/+230
2019-08-08Add async version of self_lifetime.rs test.Mazdak Farrokhzad-0/+70
2019-08-08lifetime elision: document conformance of 'async fn' to 'fn'.Mazdak Farrokhzad-0/+31
2019-08-08lifetime elision: add non-conforming-to-fn tests.Mazdak Farrokhzad-0/+2195
2019-08-08lifetime elision: add conforming-to-fn tests.Mazdak Farrokhzad-0/+341
2019-07-27arbitrary_self_types lifetime elision: --bless --compare-mode=nllTaiki Endo-0/+342
2019-07-27Fix typoTaiki Endo-1/+1
2019-07-27Add tests for `self: (&)AssocType`Taiki Endo-0/+124
2019-07-27Add test for multiple ref-selfTaiki Endo-7/+73
2019-07-27Minor clean upTaiki Endo-36/+27
2019-07-27Add main functions and check-pass annotationsTaiki Endo-22/+16
2019-07-27Update src/test/ui/self/elision/README.mdTaiki Endo-1/+1
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>