about summary refs log tree commit diff
path: root/src/test/ui/generics
AgeCommit message (Collapse)AuthorLines
2021-02-09Add a regression test for #32498Bram van den Heuvel-0/+16
2021-02-06path trimming: ignore type aliasesDan Aloni-2/+2
2021-01-16Move some tests to more reasonable directories - 2Caio-0/+31
Address comments Update limits
2021-01-13Auto merge of #77524 - Patryk27:fixes/66228, r=estebankbors-25/+699
Rework diagnostics for wrong number of generic args (fixes #66228 and #71924) This PR reworks the `wrong number of {} arguments` message, so that it provides more details and contextual hints.
2021-01-13Update code to account for extern ABI requirementMark Rousskov-4/+4
2021-01-13Update tests for extern block lintingMark Rousskov-24/+24
2021-01-10Rework diagnostics for wrong number of generic argsPatryk Wychowaniec-25/+699
2020-12-26update testsBastian Kauschke-3/+6
2020-11-13lessen restriction in `check_kind_count`Bastian Kauschke-4/+4
2020-10-15Migrate from `generic` to `generics`Yuki Okushi-0/+492
2020-09-02pretty: trim paths of unique symbolsDan Aloni-1/+1
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-14Remove `Sized` `on_unimplemented` noteEsteban Küber-1/+0
2020-04-22fix testEsteban Küber-1/+1
2020-04-22Tweak wordingEsteban Küber-1/+13
2020-04-22Tweak `'static` suggestion codeEsteban Küber-4/+9
Fix #71196.
2020-04-18Do not emit note for projected derived obligationsEsteban Küber-1/+0
2020-04-18Maintain chain of derived obligationsEsteban Küber-0/+4
When evaluating the derived obligations from super traits, maintain a reference to the original obligation in order to give more actionable context in the output.
2020-02-07performed --bless of 15 ui tests affectedJosh White-1/+2
2019-10-15Slides path lifetime to the lifetime resolverphosphorus-0/+35
add test to for the fix add descriptive text for the fix simplified code logics update descriptive comments update to cope with the tidyness requirement merged commit suggestions Co-Authored-By: varkor <github@varkor.com> truncated redundant comments update to cope with tidy-check
2019-10-03Regression tests.Felix S. Klock II-0/+116
Update: incorporate review feedback.
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+380