about summary refs log tree commit diff
path: root/src/test/ui/pattern/bindings-after-at
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-3474/+0
2023-01-01Verbose suggestionsEsteban Küber-6/+10
2022-11-23Account for `x @ y` and suggest `ref x @ ref y`Esteban Küber-16/+181
2022-11-23Suggest `.clone()` or `ref binding` on E0382Esteban Küber-4/+92
2022-09-13Rebase fallout.Camille GILLOT-12/+8
2022-09-06Shrink span for bindings with subpatterns.Camille GILLOT-151/+100
2021-10-11Edit explanation of test for nested type ascriptionspierwill-1/+1
Closes #88233
2021-08-11Modify structured suggestion outputEsteban Küber-4/+4
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-06-04updated line #'s on ui tests and removed feature flag testmarcusdunn-217/+202
2021-06-04removed uses of feature gatemarcusdunn-40/+0
2021-03-19update testsmark-14/+10
2021-02-06path trimming: ignore type aliasesDan Aloni-4/+4
2020-11-03review commentsVishnunarayan K I-1/+4
2020-11-03add testsVishnunarayan K I-0/+49
2020-11-03preserve bindings order for SomeVishnunarayan K I-201/+159
2020-11-02new fix method and update testsVishnunarayan K I-56/+56
2020-11-02reverse binding order in matches ...Vishnunarayan K I-708/+627
... to allow the subbinding of copyable fields in bindings after `@` Fixes #69971
2020-09-15Stabilize move_ref_patternAmjad Alsharafi-208/+196
2020-09-02pretty: trim paths of unique symbolsDan Aloni-75/+75
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-07-31Rename HAIR to THIR (Typed HIR).Valentin Lazureanu-1/+1
2020-06-24Provide suggestions for some moved value errorsEsteban Küber-0/+24
When encountering an used moved value where the previous move happened in a `match` or `if let` pattern, suggest using `ref`. Fix #63988. When encountering a `&mut` value that is used in multiple iterations of a loop, suggest reborrowing it with `&mut *`. Fix #62112.
2020-03-25borrowck: prefer "value" over "`_`".Mazdak Farrokhzad-41/+41
2020-03-04test(pattern): harden tests for or-patterns with slice-patternsMatthew Kuo-2/+15
Some of the nested OR paths were being missed
2020-03-04test(pattern): add tests for combinations of pattern featuresMatthew Kuo-0/+204
Reference issue #67311 Tests combinations of the following pattern features: - bindings_after_at - or_patterns - slice_patterns - box_patterns
2020-02-21Fix error messageLeSeulArtichaut-33/+33
Bless tests
2020-02-11Auto merge of #68929 - matprec:consistent-issue-references, r=Dylan-DPCbors-1/+1
Make issue references consistent Fixes https://github.com/rust-lang/rust/issues/62976 cc https://github.com/rust-lang/rust/pull/63008 r? @varkor because you reviewed the original pr
2020-02-09--bless --compare-mode=nllMatthias Prechtl-1/+1
2020-02-09Don't parse `mut a @ b` as `mut a @ mut b`Matthew Jasper-0/+75
2020-02-09Auto merge of #68376 - Centril:move-ref-patterns, r=matthewjasperbors-635/+1523
Initial implementation of `#![feature(move_ref_pattern)]` Following up on #45600, under the gate `#![feature(move_ref_pattern)]`, `(ref x, mut y)` is allowed subject to restrictions necessary for soundness. The match checking implementation and tests for `#![feature(bindings_after_at)]` is also adjusted as necessary. Closes #45600. Tracking issue: #68354. r? @matthewjasper
2020-02-02move_ref_pattern: change pov in diagnostics & add binding namesMazdak Farrokhzad-457/+457
2020-02-02move_ref_patterns: introduce testsMazdak Farrokhzad-400/+1288
bindings_after_at: harden tests
2020-02-01Remove or_patterns from INCOMPLETE_FEATURESMatthew Jasper-19/+10
2020-01-18slice_patterns: remove gates in testsMazdak Farrokhzad-124/+117
2020-01-09Update testsVadim Petrochenkov-12/+30
2019-12-23Remove `bindings_after_at` from `INCOMPLETE_FEATURES`.Mazdak Farrokhzad-284/+151
2019-12-23Test that nested type ascription is banned.Mazdak Farrokhzad-0/+69
2019-12-23Test that `_ @ subpat` is syntactically rejected.Mazdak Farrokhzad-0/+59
2019-12-23harden & split borrowck-pat-at-and-boxMazdak Farrokhzad-62/+139
2019-12-23enhance borrowck-pat-by-copy-bindings-in-atMazdak Farrokhzad-0/+7
2019-12-23clarify bind-by-move-neither-can-livee..Mazdak Farrokhzad-4/+72
2019-12-23bindings_after_at: harden tests wrt. contexts & slice_patternsMazdak Farrokhzad-108/+477
2019-12-23bindings_after_at: harden tests wrt. promotionMazdak Farrokhzad-93/+235
2019-12-23--bless bindings-after-at testsMazdak Farrokhzad-66/+497
2019-12-23check_legality_of_move_bindings: generalize diagnostics & add commentsMazdak Farrokhzad-12/+13
2019-12-23Introduce `#![feature(bindings_after_at)]`.Mazdak Farrokhzad-0/+1118
Under the gate, `x @ Some(y)` is allowed. This is subject to various restrictions for soundness.