about summary refs log tree commit diff
path: root/src/test/ui/borrowck/borrowck-move-out-from-array.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-143/+0
2022-11-23Suggest `.clone()` or `ref binding` on E0382Esteban Küber-0/+40
2022-09-06Shrink span for bindings with subpatterns.Camille GILLOT-8/+8
2020-09-02pretty: trim paths of unique symbolsDan Aloni-10/+10
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-18/+18
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-01-18slice_patterns: remove gates in testsMazdak Farrokhzad-10/+10
2019-12-09Add more tests for borrowck and dropck slice pattern handlingMatthew Jasper-10/+90
2019-07-28--bless tests due to new subslice syntax.Mazdak Farrokhzad-2/+2
2019-04-22update tests for migrate mode by defaultMatthew Jasper-0/+23