summary refs log tree commit diff
path: root/src/test/ui/associated-const
AgeCommit message (Collapse)AuthorLines
2019-12-10Deduplicate logicEsteban Küber-6/+10
2019-11-18Surround types with backticks in type errorsEsteban Küber-2/+2
2019-11-18Remove E0308 note when primary label has all infoEsteban Küber-1/+1
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-4/+4
2019-10-22Add test for issue-63496Yuki Okushi-0/+30
2019-10-15Use structured suggestion for restricting boundsEsteban Küber-4/+4
When a trait bound is not met and restricting a type parameter would make the restriction hold, use a structured suggestion pointing at an appropriate place (type param in param list or `where` clause). Account for opaque parameters where instead of suggesting extending the `where` clause, we suggest appending the new restriction: `fn foo(impl Trait + UnmetTrait)`.
2019-10-11Print lifetimes with backticksYuki Okushi-1/+1
2019-09-18Add explanation to type mismatch involving type params and assoc typesEsteban Küber-0/+2
2019-09-02On object safety violation, point at source when possibleEsteban Küber-2/+3
2019-08-31Use span label instead of note for cause in E0631Esteban Küber-16/+9
2019-07-24Adjust tests for method disambiguation helpIlija Tovilo-0/+2
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-05-29Update ui test suite to use dynmemoryruins-3/+3
2019-03-23Tweak spans for E0599Esteban Küber-3/+1
2019-03-13Rollup merge of #59083 - kyren:master, r=varkorMazdak Farrokhzad-6/+31
Fix #54822 and associated faulty tests Type checking associated constants can require trait bounds, but an empty parameter environment was provided to the trait solver. Providing an appropriate parameter environment seems to fix #54822 and also make one of the cases in src/test/ui/nll/trait-associated-constant.rs that should compile successfully do so. It also (slightly) improves the error message in src/test/ui/associated-const/associated-const-generic-obligations.rs
2019-03-11Update testsVadim Petrochenkov-1/+1
2019-03-10Fix #54822 and associated faulty testskyren-6/+31
Type checking associated constants can require trait bounds, but an empty parameter environment was provided to the trait solver. Providing an appropriate parameter environment seems to fix #54822 and also make one of the cases in src/test/ui/nll/trait-associated-constant.rs that should compile successfully do so. It also (slightly) improves the error message in src/test/ui/associated-const/associated-const-generic-obligations.rs
2019-01-08improve non_upper_case_globals diagnosticsAndy Russell-25/+0
Use a structured suggestion and tighten the span to just the identifier.
2018-12-26Fixed more tests.Alexander Regueiro-2/+4
2018-12-25Remove licensesMark Rousskov-163/+23
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+529