about summary refs log tree commit diff
path: root/tests/ui/traits/object
AgeCommit message (Collapse)AuthorLines
2023-11-24Show number in error message even for one errorNilstrieb-8/+8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-05Use the actual computed crate name for -Zprint-vtable-sizesbjorn3-11/+11
2023-10-30Auto merge of #116405 - estebank:issue-103155, r=davidtwcobors-4/+29
Detect object safety errors when assoc type is missing When an associated type with GATs isn't specified in a `dyn Trait`, emit an object safety error instead of only complaining about the missing associated type, as it will lead the user down a path of three different errors before letting them know that what they were trying to do is impossible to begin with. Fix #103155.
2023-10-30Add testEsteban Küber-0/+25
2023-10-30Detect object safety errors when assoc type is missingEsteban Küber-4/+4
When an associated type with GATs isn't specified in a `dyn Trait`, emit an object safety error instead of only complaining about the missing associated type, as it will lead the user down a path of three different errors before letting them know that what they were trying to do is impossible to begin with. Fix #103155.
2023-10-29On object safety error, mention new enum as alternativeEsteban Küber-0/+2
When we encounter a `dyn Trait` that isn't object safe, look for its implementors. If there's one, mention using it directly If there are less than 9, mention the possibility of creating a new enum and using that instead. Account for object unsafe `impl Trait on dyn Trait {}`. Make a distinction between public and sealed traits. Fix #80194.
2023-09-07Ensure that dyn trait bounds stay sortedMichael Goulet-2/+2
2023-07-19Don't emit useless vptrs for marker traitsMaybe Waffle-3/+4
2023-06-13Add a test for `-Zprint-vtable-sizes`Maybe Waffle-0/+72
2023-05-12Note base types of coercionMichael Goulet-2/+1
2023-02-23diagnostics: remove inconsistent English article "this" from E0107Michael Howell-4/+4
Consider `tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`, the error message where it gives additional notes about where the associated type is defined, and how the dead code lint doesn't have an article, like in `tests/ui/lint/dead-code/issue-85255.stderr`. They don't have articles, so it seems unnecessary to have one here.
2023-02-21Specify what 'this' actually isMichael Goulet-1/+1
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1015