about summary refs log tree commit diff
path: root/src/test/ui/pattern/move-ref-patterns
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-1119/+0
2022-12-28Use verbose suggestions for mutability errorsEsteban Küber-6/+10
2022-12-13Suggest `ref` for some patterns as a fallbackEsteban Küber-13/+46
2022-11-23Suggest `.clone()` or `ref binding` on E0382Esteban Küber-0/+4
2022-09-06Shrink span for bindings with subpatterns.Camille GILLOT-3/+3
2022-08-21Note closure kind mismatch causeMichael Goulet-3/+27
2022-08-21Rework point-at-argMichael Goulet-3/+3
2021-07-27Auto merge of #85305 - MarcusDunn:master, r=pnkfelixbors-2/+0
Stabilize bindings_after_at attempting to stabilze bindings_after_at [#65490](https://github.com/rust-lang/rust/issues/65490), im pretty new to the whole thing so any pointers are greatly appreciated.
2021-07-02Improve error reporting for modifications behind `&` referencesFabian Wolff-4/+4
2021-06-04removed more uses of feature gatemarcusdunn-2/+0
2021-04-12Compiler error messages: reduce assertiveness of message E0384James Addison-2/+2
This message is emitted as guidance by the compiler when a developer attempts to reassign a value to an immutable variable. Following the message will always currently work, but it may not always be the best course of action; following the 'consider ...' messaging pattern provides a hint to the developer that it could be wise to explore other alternatives.
2020-09-15Stabilize move_ref_patternAmjad Alsharafi-156/+50
2020-09-02pretty: trim paths of unique symbolsDan Aloni-31/+31
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-02-09--bless --compare-mode=nllMatthias Prechtl-4/+4
2020-02-02move_ref_pattern: test captures inside closureMazdak Farrokhzad-0/+526
2020-02-02move_ref_pattern: don't ICE on unreachable 2xby-move conflictsMazdak Farrokhzad-0/+15
2020-02-02move_ref_patterns: introduce testsMazdak Farrokhzad-0/+621
bindings_after_at: harden tests