about summary refs log tree commit diff
path: root/src/test/ui/traits/trait-alias
AgeCommit message (Collapse)AuthorLines
2021-02-09Organize trait test filesBram van den Heuvel-1814/+0
2020-10-20review commentsEsteban Küber-2/+2
2020-10-20Tweak "object unsafe" errorsEsteban Küber-3/+4
Fix #77598.
2020-10-18Add test for issue-75983Yuki Okushi-0/+17
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-14Tweak output of E0225Esteban Küber-50/+185
When encountering multiple non-auto trait bounds suggest creating a new trait and explain what auto-traits are.
2020-07-27mv std libs to library/mark-1/+1
2020-05-24Fix trait alias inherent impl resolutionMatthew McAllister-0/+33
Fixes #60021 and #72415.
2020-04-08Small tweaks to required bound spanEsteban Küber-3/+3
2020-04-08Use `PredicateObligation`s instead of `Predicate`sEsteban Küber-1/+1
Keep more information about trait binding failures.
2020-04-02tests: remove ignore directives from tests that mention core/alloc/std spans.Eduard-Mihai Burtescu-7/+2
2020-03-29Tweak `suggest_constraining_type_param`Esteban Küber-4/+3
Some of the bound restriction structured suggestions were incorrect while others had subpar output.
2020-03-21Add explanation message for E0224Nixon Enraght-Moony-0/+1
2020-02-09Improve reporting errors and suggestions for trait boundsPatryk Wychowaniec-3/+7
2020-02-02Deal with spans showing `std` libEsteban Küber-2/+7
Address #53081
2020-02-02Point at reason in object unsafe trait with `Self` in supertraits or ↵Esteban Küber-1/+4
`where`-clause
2020-02-02Wording changes to object unsafe trait errorsEsteban Küber-1/+1
Stemming from the thread at https://twitter.com/indygreg/status/1223279056398929920
2020-02-02Use more accurate failed predicate spansEsteban Küber-5/+4
2019-12-24Tweak errors for missing associated types and type parametersEsteban Küber-3/+3
2019-10-24syntax: reject `trait Foo: Bar = Baz;`.Mazdak Farrokhzad-5/+20
Add test for rejecting `trait A: B1 = B2;`. Also test rejection of `trait A: = B;`.
2019-10-15Consider trait aliasesEsteban Küber-3/+4
2019-09-22Point at type param when it's cause of unfulfilled obligationEsteban Küber-4/+4
2019-09-22On obligation errors point at the unfulfilled binding when possibleEsteban Küber-2/+2
2019-09-08Update test stderr with results of enabling unused lintsMark Rousskov-1/+1
2019-08-31Use span label instead of note for cause in E0631Esteban Küber-15/+8
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-06-22adding in these files that didn't get added in previous commitAndrew-2/+2
2019-06-21changed expected output in tests so it now passes with changed outputAndrew-2/+2
2019-05-29Update ui test suite to use dynmemoryruins-13/+13
2019-05-20Addressed more points raised in review.Alexander Regueiro-93/+335
2019-05-20Addressed points raised in review.Alexander Regueiro-27/+65
2019-05-20Update tests.Alexander Regueiro-0/+1333