about summary refs log tree commit diff
path: root/tests/ui/reachable
AgeCommit message (Collapse)AuthorLines
2023-11-24Show number in error message even for one errorNilstrieb-11/+11
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-23Update `since` stability attributes in testsDavid Tolnay-2/+2
2023-06-22Tweak privacy errors to account for reachable itemsEsteban Küber-1/+1
Suggest publicly accessible paths for items in private mod: When encountering a path in non-import situations that are not reachable due to privacy constraints, search for any public re-exports that the user could use instead. Track whether an import suggestion is offering a re-export. When encountering a path with private segments, mention if the item at the final path segment is not publicly accessible at all. Add item visibility metadata to privacy errors from imports: On unreachable imports, record the item that was being imported in order to suggest publicly available re-exports or to be explicit that the item is not available publicly from any path. In order to allow this, we add a mode to `resolve_path` that will not add new privacy errors, nor return early if it encounters one. This way we can get the `Res` corresponding to the final item in the import, which is used in the privacy error machinery.
2023-06-12Adjust UI tests for `unit_bindings`许杰友 Jieyou Xu (Joe)-7/+7
- Either explicitly annotate `let x: () = expr;` where `x` has unit type, or remove the unit binding to leave only `expr;` instead. - Fix disjoint-capture-in-same-closure test
2023-05-09Rollup merge of #111021 - c410-f3r:dqewdas, r=petrochenkovMatthias Krüger-0/+15
Move some tests r? ``@petrochenkov``
2023-05-08test for reachable private implMichael Goulet-0/+33
2023-05-08Move testsCaio-0/+15
2023-04-02Move some UI tests into subdirectoriesjyn-0/+16
to avoid going over the existing limit now that the ui-fulldeps tests have been moved to ui.
2023-03-12Remove uses of `box_syntax` in rustc and toolsclubby789-25/+0
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1372