about summary refs log tree commit diff
path: root/src/test/ui/unsized-locals
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-859/+0
2022-12-28On unsized locals with explicit types suggest `&`Esteban Küber-0/+71
Fix #72742.
2022-12-13Clarify what "this" meansOli Scherer-2/+2
2022-11-23review comments: inline bindings and fix typoEsteban Küber-2/+2
2022-11-23Fix wordingEsteban Küber-2/+2
2022-11-23Remove logic duplicationEsteban Küber-2/+2
2022-11-23Suggest `.clone()` or `ref binding` on E0382Esteban Küber-0/+21
2022-10-01bless ui testsMaybe Waffle-5/+5
2022-08-21Rework point-at-argMichael Goulet-3/+1
2022-08-03Warn about dead tuple struct fieldsFabian Wolff-1/+1
2021-10-25fix(rustc_typeck): report function argument errors on matching typeMichael Howell-1/+1
Fixes #90101
2021-09-16Point at call span that introduced obligation for the argEsteban Kuber-1/+3
2021-09-16Refactor `FulfillmentError` to track less dataEsteban Kuber-1/+1
Move the information about pointing at the call argument expression in an unmet obligation span from the `FulfillmentError` to a new `ObligationCauseCode`.
2021-04-06Point at `impl` and type defs introducing requirements on E0277Esteban Küber-3/+15
2021-01-08Change wording of noteAaron Hill-2/+2
2020-10-27Merge unsized locals pat testsSantiago Pastorino-39/+29
2020-10-27Bless tests againSantiago Pastorino-3/+3
2020-10-27Add comment explaining why in these tests unsized locals are not acceptedSantiago Pastorino-0/+4
2020-10-27Do not use unsized_fn_params in patternsSantiago Pastorino-1/+35
2020-10-27Test that unsized locals fail when turning unsized_fn_params feature flag onSantiago Pastorino-0/+20
2020-10-27Better test unsized_fn_paramsSantiago Pastorino-8/+8
2020-10-27unsized_locals feature is not needed in this testSantiago Pastorino-1/+1
2020-10-27Using unsized_local feature is not needed in these testsSantiago Pastorino-30/+9
2020-10-27Make tidy happySantiago Pastorino-7/+7
2020-10-27Add unsized_locals to INCOMPLETE_FEATURES listSantiago Pastorino-33/+110
2020-10-27Add unsized_fn_params featureSantiago Pastorino-27/+25
2020-09-02pretty: trim paths of unique symbolsDan Aloni-12/+12
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-08-08Be consistent when describing a move as a 'partial' in diagnosticsAaron Hill-4/+4
When an error occurs due to a partial move, we would use the world "partial" in some parts of the error message, but not in others. This commit ensures that we use the word 'partial' in either all or none of the diagnostic messages. Additionally, we no longer describe a move out of a `Box` via `*` as a 'partial move'. This was a pre-existing issue, but became more noticable when the word 'partial' is used in more places.
2020-07-14Remove `Sized` `on_unimplemented` noteEsteban Küber-8/+0
2020-06-26Explain move errors that occur due to method calls involving `self`Aaron Hill-2/+14
This is a re-attempt of #72389 (which was reverted in #73594) Instead of using `ExpnKind::Desugaring` to represent operators, this PR checks the lang item directly.
2020-06-22Revert "Rollup merge of #72389 - Aaron1011:feature/move-fn-self-msg, ↵Aaron Hill-14/+2
r=nikomatsakis" This reverts commit 372cb9b69c76a042d0b9d4b48ff6084f64c84a2c, reversing changes made to 5c61a8dc34c3e2fc6d7f02cb288c350f0233f944.
2020-06-11Use `fn_span` to point to the actual method callAaron Hill-2/+2
2020-06-11Explain move errors that occur due to method calls involving `self`Aaron Hill-2/+14
2020-04-30Test for zero-sized function items not ICEingJubilee Young-0/+40
2020-04-18Make Box<dyn FnOnce> respect self alignmentSantiago Pastorino-12/+12
2020-03-31update testsBastian Kauschke-2/+1
2020-02-02Point at `Sized` requirementsEsteban Küber-0/+3
Make #47990 easier to understand
2019-07-27tests: Move run-pass tests with naming conflicts to uiVadim Petrochenkov-0/+63
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+111
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-06-03Update tests for changes to cannot move errorsMatthew Jasper-1/+4
2019-04-22update tests for migrate mode by defaultMatthew Jasper-172/+43
2019-04-17add a test for unsized indexAleksey Kladov-0/+23
2019-03-11Update NLL testsVadim Petrochenkov-6/+6
2019-03-11Update testsVadim Petrochenkov-6/+6
2019-02-20./x.py test src/test/ui --stage 1 --bless -i --compare-mode=nllClint Frederickson-4/+4
2019-01-24Fix --compare-mode=nll testsEsteban Küber-10/+10
2019-01-01Fix broken links to second edition TRPL.Corey Farwell-6/+6
Fixes https://github.com/rust-lang/rust/issues/57104.
2018-12-29add non-copy note to stderrcsmoe-0/+14
2018-11-21Add tests for unsized-locals functions stability.Masaki Hara-0/+27